T09 · Insecure Skill Coding Practices
- Location
scripts/collect_note.py:11- Finding
Unrestricted Navigation in an Authenticated Browser Context
- Content
View full analysis
- Remediation
View remediation
str: parsed = urlparse(value) if parsed.scheme != "https": raise ValueError("Only HTTPS URLs are permitted") if parsed.hostname != "www.xiaohongshu.com": raise ValueError("Only approved Xiaohongshu URLs are permitted") if not parsed.path.startswith("/explore/"): raise ValueError("Unsupported Xiaohongshu path") if parsed.username or parsed.password or parsed.port not in (None, 443): raise ValueError("Credentials and unexpected ports are prohibited") return value ``` ]]>
