T09 · Insecure Skill Coding Practices
- Location
scripts/publish_via_api.sh:17- Finding
OAuth Token and Unpublished Article Disclosure Through an Unrestricted API Endpoint Override
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 ;; esac ``` 3. Reject non-HTTPS URLs, embedded credentials, unexpected ports, IP-address forms, subdomain lookalikes, and trailing path components. 4. Configure `curl` to fail safely and avoid cross-origin credential forwarding. Do not enable unrestricted redirect following. If redirects are required, verify that every redirect remains on the approved HTTPS origin. 5. Use narrowly scoped, short-lived OAuth tokens and document the minimum scopes required for article publication. 6. Avoid inheriting security-sensitive endpoint variables from untrusted wrappers or service configurations. Clear or explicitly set the execution environment before invoking the script. 7. Revoke and rotate any token suspected of having been exposed. ]]>
