T09 · Insecure Skill Coding Practices
- Location
scripts/buffer_graphql.py:51- Finding
Buffer API key exposure through command-line arguments
- Content
View full analysis
/cmdline`. - Shell command history. - CI/CD job output and orchestration metadata. - Agent tool-call logs, terminal recording, and execution telemetry. - Process monitoring or endpoint-management software. The script does not print the key itself, but accepting it as a command-line argument undermines that protection because the operating environment may record the complete invocation before the script starts. Sending the API key in the HTTPS `Authorization` header to the fixed official Buffer endpoint is necessary for the declared functionality. The vulnerability is the optional command-line secret transport mechanism, not the authenticated network request. ### Attack Path 1. A user or agent follows the documented example and invokes the helper with `--key `. 2. The operating system, shell, CI system, or agent runtime records or exposes the process command line. 3. Another local user, monitoring service, log reader, or compromised process obtains the API key. 4. The attacker submits authenticated requests to the Buffer GraphQL API using the stolen key. 5. The attacker performs any accou ...[truncated 844 chars]- Remediation
View remediation
