T09 · Insecure Skill Coding Practices
- Location
scripts/oneabc.js:3- Finding
API credentials and user prompts can be transmitted to an unrestricted configurable endpoint
- Content
View full analysis
m.id).join('\n')); break; } ``` ### Technical Analysis The script selects `ONEABC_API_KEY` but automatically falls back to `OPENAI_API_KEY`. It then places the selected credential directly in the `Authorization` header of requests sent to the destination controlled by `ONEABC_BASE_URL`. The request to `/v1/models` is necessary for the declared model-listing functionality when it uses a genuine OneABC credential and the trusted OneABC endpoint. Likewise, prompt transmission is intrinsic to the declared generation features. However, two implementation choices weaken the trust boundary: 1. A credential associated with another provider can be reused automatically. 2. The destination receiving that credential and user content is unrestricted and controlled through an environment variable. C ...[truncated 2371 chars]- Remediation
View remediation
` rather than an unqualified credential. ]]>
