T09 · Insecure Skill Coding Practices
- Location
scripts/download_wechat_articles.py:387- Finding
Unrestricted article and image URL fetching enables server-side request forgery
- Content
View full analysis
= min_size: with open(save_path, "wb") as f: f.write(resp.content) return True ``` A second unrestricted request is issued to the image URL when determining its content type: ```python try: resp_head = requests.head(img_url, headers=HEADERS, timeout=10) ct = resp_head.headers.get("Content-Type", "") correct_ext = extract_image_extension(img_url, ct) ``` ### Technical Analysis The Skill is documented as a downloader for articles hosted on `mp.weixin.qq.com`, ...[truncated 3565 chars]- Remediation
View remediation
