T09 · Insecure Skill Coding Practices
- Location
scripts/comfy_client.py:18- Finding
Hardcoded Default Bearer Credential Transmitted over Plaintext HTTP
- Content
View full analysis
- Remediation
View remediation
`. - Instruct users to generate a unique, high-entropy credential for each deployment. - Store credentials in a protected secret manager or environment variable rather than source-controlled files. 3. Enforce secure transport: - Require HTTPS for all non-loopback endpoints. - Permit HTTP only for verified loopback addresses such as `127.0.0.1`, `::1`, or `localhost`. - Reject remote plaintext URLs rather than merely warning about them. 4. Attach authentication conditionally: - Do not add an `Authorization` header when no genuine credential is configured. - Ensure credentials are sent only to an explicitly trusted origin. - Avoid forwarding authorization headers across redirects to a different host. 5. Harden HTTP behavior: - Disable or carefully validate redirects for authenticated requests. - Validate the configured scheme and hostname before creating the session. - Use correctly configured TLS certificate verification for HTTPS endpoints. 6. Rotate the documented/default credential anywhere it has already been used and review exposed ComfyUI instances for unauthorized activity. ]]>
