T09 · Insecure Skill Coding Practices
- Location
logodesigngenerator.js:3- Finding
API Token Exposed Through Command-Line Arguments
- Content
View full analysis
"your prompt" --token YOUR_TOKEN ``` ### Technical Analysis The application requires the Neta API token to be supplied directly through the `--token` command-line argument. Command-line arguments are not an appropriate transport for secrets because they can be exposed through: - Shell history files. - Process-listing and system-monitoring interfaces. - Terminal session logs. - CI/CD job logs and command tracing. - Wrapper scripts or orchestration systems that record executed commands. The token is subsequently sent to the expected HTTPS API as the `x-token` request header. No evidence indicates that the application intentionally transmits it to an unrelated destination. The vulnerability is specifically the local exposure created by accepting and documenting the token as a command-line argument. ### Attack Path 1. A user follows the documented command and supplies a valid token using `--token`. 2. The complete command is retained in shell history, captured by automation logs, or temporarily exposed through process inspection. 3. Another local user, compromised process, log reader, or CI/CD operator obtains the token. 4. The a ...[truncated 613 chars]- Remediation
View remediation
