T09 · Insecure Skill Coding Practices
- Location
scripts/upload_youtube.py:321- Finding
Proxy Credentials Exposed Through Diagnostic Logging
- Content
View full analysis
- Remediation
View remediation
str: parsed = urlsplit(value) host = parsed.hostname or "" port = f":{parsed.port}" if parsed.port else "" return f"{parsed.scheme}://{host}{port}" if proxies: print(f"[proxy] enabled: {redacted_proxy(proxies['https'])}", file=sys.stderr) ``` - Add an automated test using a value such as `https://user:secret@example.test:8443` and assert that neither `user` nor `secret` appears in output. - Review existing execution logs and rotate proxy credentials if credential-bearing proxy URLs may already have been recorded. ]]>
