T09 · Insecure Skill Coding Practices
- Location
scripts/local_file_step1_apply_upload_url.sh:27- Finding
Unvalidated API Base URL Can Redirect Bearer Credentials to an Attacker-Controlled Server
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 ;; esac ``` 3. Require HTTPS and reject embedded credentials, unexpected ports, fragments, and malformed hosts. Use a proper URL parser where possible rather than a permissive shell regular expression. 4. Use separate credentials for custom or test endpoints. Never send the production MinerU token to an endpoint merely because it was supplied through an environment variable. 5. Add `curl` hardening such as `--proto '=https' --fail-with-body --show-error` and reasonable connection and request timeouts. 6. Document that overriding an authenticated service endpoint is security-sensitive, and avoid inheriting the variable from untrusted job or wrapper environments. ]]>
