T09 · Insecure Skill Coding Practices
- Location
scripts/vendor/shared-image-generation/scripts/main.ts:197- Finding
API bearer token may be disclosed to an arbitrary task-result URL
- Content
View full analysis
``` Consequently, a URL controlled through a compromised or malicious gateway response can cause the WeryAI API key to be transmitted to an unrelated origin. This behavior exceeds the declared network scope of the Skill, which states that it communicates with `https://api.weryai.com`. The absence of an HTTPS requirement for task-result URLs also means that the bearer token could potentially be transmitted over an unencrypted HTTP connection if such a URL is returned. ### Attack Path 1. An attacker compromises or manipulates the gateway, a model backend, or the task-result response. 2. The task response includes an attacker-controlled image URL such as `https://attac ...[truncated 849 chars]- Remediation
View remediation
