T09 · Insecure Skill Coding Practices
- Location
scripts/feishu_image.py:109- Finding
Arbitrary Image URL Fetching Enables Server-Side Request Forgery and Data Disclosure
- Content
View full analysis
{image_key}", file=sys.stderr) except Exception as e: print(f"[feishu_image] upload failed: {e}", file=sys.stderr) ``` ### Technical Analysis Markdown image URLs are extracted from model-generated search output and passed directly to `urllib.request.urlopen`. The implementation does not validate: - The URL scheme. - The destination hostname or resolved IP address. - Whether the address belongs to a loopback, private, link-local, reserved, or cloud metadata range. - Redirect targets. - The response MIME type. - The response size. - Whether the response is actually an image. Consequently, ...[truncated 1780 chars]- Remediation
View remediation
