T09 · Insecure Skill Coding Practices
- Location
scripts/notion_mvp.sh:19- Finding
Notion Integration Token Exposed Through Process Arguments
- Content
View full analysis
/cmdline`, subject to the operating system's process-visibility controls. Environment-variable storage alone does not prevent this issue because the shell expansion copies the secret into curl's argument vector. The exposure occurs for every Notion API request made by the script. ### Attack Path 1. A user configures a valid Notion integration token and invokes the Skill. 2. The `request` function expands the token into the curl process's arguments. 3. A local attacker capable of observing the user's process arguments monitors process creation or repeatedly inspects the relevant process table. 4. The attacker captures the `Authorization: Bearer ...` argument while curl is active. 5. The attacker submits independent requests to the Notion API using the stolen bearer token. 6. The attacker can access or modify resources available to the compromised Notion integration. This path requires local process-observation capability and is affected by operating-system restrictions on cross-process inspection. ### Impact Asses ...[truncated 592 chars]- Remediation
View remediation
