T09 · Insecure Skill Coding Practices
- Location
scripts/halo_api.py:12- Finding
Halo credentials can be transmitted to an arbitrary endpoint without transport security
- Content
View full analysis
- Remediation
View remediation
`. 2. Require HTTPS for every non-loopback endpoint. 3. Parse `HALO_URL` with `urllib.parse.urlparse` and reject: - Unsupported schemes. - Embedded URL credentials. - Unexpected hosts. - Non-loopback hosts unless explicitly approved. 4. Maintain an explicit allowlist of trusted Halo origins rather than accepting an unrestricted destination. 5. Prevent authorization headers from being forwarded if a request is redirected to a different origin. 6. Avoid long-lived account passwords and use a narrowly scoped, revocable Halo token. 7. Add tests confirming that credentials are never sent to an unapproved host or across plaintext non-loopback transport. ]]>
