T09 · Insecure Skill Coding Practices
- Location
scripts/data_sources.py:127- Finding
Unauthenticated Plaintext HTTP Used for Financial Market Data
- Content
View full analysis
dict: url = f"http://fundgz.1234567.com.cn/js/{fund_code}.js" ``` ```python # scripts/data_sources.py:207-208 url = f"http://hq.sinajs.cn/list={code}" ok, text, err = http_get( url, headers={"Referer": "http://finance.sina.com.cn"}, encoding="gbk" ) ``` ```python # scripts/data_sources.py:245-270 url = ( f"http://stock.finance.sina.com.cn/fundInfo/api/openapi.php" f"/CaihuiFundInfoService.getNav?symbol={fund_code}" f"&datefrom=2026-05-01&dateto=2026-06-03" ) ok, text, err = http_get(url) # ... url = ( f"http://money.finance.sina.com.cn/quotes_service/api/json_v2.php" f"/CN_MarketData.getKLineData?symbol={code}" f"&scale=240&ma=no&datalen={days}" ) ``` ```python # scripts/data_sources.py:301 url = f"http://qt.gtimg.cn/q={code}" ``` ```python # scripts/premium_history.py:32-35 url = ( f"http://api.fund.eastmoney.com/f10/lsjz" f"?fundCode={fund_code}&pageIndex=1&pageSize ...[truncated 2924 chars]- Remediation
View remediation
