T09 · Insecure Skill Coding Practices
- Location
scripts/upload.py:191- Finding
Access Token Exposed Through the curl Process Command Line
- Content
View full analysis
/cmdline`, process-monitoring software, endpoint telemetry, diagnostic tools, or audit logs. Access controls around process arguments vary by operating system and deployment configuration, but the implementation unnecessarily expands local exposure of a reusable credential. Sending the access token to the documented Baidu endpoint is necessary for the declared upload function. Exposing it through a child process command line is not necessary and exceeds the minimum credential exposure required to perform the upload. ### Attack Path 1. A victim starts an upload using a valid Baidu Pan access token. 2. The script launches `curl` with the access token embedded in its URL argument. 3. A local user, monitoring agent, or process-inspection tool c ...[truncated 653 chars]- Remediation
View remediation
