T09 · Insecure Skill Coding Practices
- Location
scripts/submit_minimax_music_2_6.sh:12- Finding
PoYo API Key Exposed in Process Arguments
- Content
View full analysis
/cmdline` on applicable systems. The script correctly avoids hardcoding the key and requires it through an environment variable, but interpolating it into a command-line option undermines part of that protection. Exploitation requires local access and sufficient permission to inspect the process, so this is not a direct remote vulnerability. ### Attack Path 1. A user sets `POYO_API_KEY` and invokes `scripts/submit_minimax_music_2_6.sh`. 2. The shell expands the environment variable into the `--header` argument. 3. The resulting `curl` process contains `Authorization: Bearer ` in its argument vector. 4. A concurrent local attacker or monitoring component inspects the process command line while the request is active. 5. The attacker extracts the Bearer token. 6. The attacker submits requests directly to the PoYo API using the compromised credential. ### Impact Assessment Successful exploitation exposes the privileges associated with the affected PoYo API key. An attacker could submit unauthorized generation jobs, consume account qu ...[truncated 396 chars]- Remediation
View remediation
