T09 · Insecure Skill Coding Practices
- Location
scripts/imgbb.py:73- Finding
Insecure API Key Handling Through Process Arguments and Plaintext Configuration
- Content
View full analysis
~/.imgbb_api_key python imgbb.py image.jpg --key YOUR_KEY ``` ### Technical Analysis The `--key` and `--set-key` options accept an API credential directly as a process argument. Command-line arguments can be exposed through shell history, process inspection utilities, terminal logging, monitoring software, diagnostic collection, and audit infrastructure. This makes process arguments unsuitable for transmitting persistent secrets. The `--set-key` implementation writes the credential to `~/.imgbb_api_key` as plaintext without explicitly applying owner-only permissions. The resul ...[truncated 1834 chars]- Remediation
View remediation
