T09 · Insecure Skill Coding Practices
- Location
scripts/vendor/shared-image-generation/scripts/main.ts:202- Finding
WeryAI API Key Disclosed to Unvalidated Image Result URLs
- Content
View full analysis
``` This behavior is not required for normal public CDN image retrieval and violates credential-scoping principles. The primary WeryAI API credential must only be transmitted to trusted WeryAI API origins. The issue can be exploited if an attacker can influence the image URL returned by the API, compromise an upstream service, manipulate a response, or cause a trusted result URL to redirect to an attacker-controlled host. The code does not demonstrate an origin allowlist or redirect-origin validation before attaching the credential. ### Attack Path 1. The user starts an image-generation operation. 2. The task response supplies an attacker-controlled or compromised URL in ...[truncated 932 chars]- Remediation
View remediation
