T09 · Insecure Skill Coding Practices
- Location
fetch.py:133- Finding
Server-Side Request Forgery Through Article-Controlled Media URLs
- Content
View full analysis
100: with open(local_path, 'wb') as f: f.write(img_response.content) ``` ```python video_pattern = r' 100: with open(local_cover, 'wb') as f: f.write(resp.content) ``` ### Technical Analysis Media URLs are extracted from remotely retrieved article HTML and passed directly to `requests.get`. The code does not validate: - The URL scheme. - The destination hostname. - Resolved IP addresses. - Loopback, private, link-local, multicast, or reserved address ranges. - Redirect destinations. ...[truncated 1752 chars]- Remediation
View remediation
