T09 · Insecure Skill Coding Practices
- Location
scripts/setup.py:54- Finding
Proxy credentials may be disclosed through console output
- Content
View full analysis
- Remediation
View remediation
str: if not value: return "(not configured)" try: parsed = urlsplit(value) host = parsed.hostname or "" port = f":{parsed.port}" if parsed.port else "" return urlunsplit((parsed.scheme, host + port, "", "", "")) except (TypeError, ValueError): return "(configured; value hidden)" proxy = ( os.environ.get("HTTPS_PROXY") or os.environ.get("https_proxy") or os.environ.get("HTTP_PROXY") ) print(f"Proxy: {mask_proxy(proxy)}") ``` ]]>
