Tainted flow: 'share_url' from requests.get (line 106, network input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
raise ValueError("未找到有效的分享链接") share_url = urls[0] share_response = requests.get(share_url, headers=HEADERS) video_id = share_response.url.split("?")[0].strip("/").split("/")[-1] share_url = f'https://www.iesdouyin.com/share/video/{video_id}'- Confidence
- 88% confidence
- Finding
- The script extracts the first URL from arbitrary share text and fetches it without validating the hostname or allowed scheme beyond a regex match. An attacker could supply a crafted link that causes server-side requests to unintended external destinations, enabling SSRF-like behavior or internal network probing when this tool runs in a trusted environment.
