T09 · Insecure Skill Coding Practices
- Location
bin/run.mjs:22- Finding
API Token Exposed Through Command-Line Arguments and URL Query Parameters
- Content
View full analysis
parameter.name === "token"); if (!tokenParam || params.token !== undefined) { return; } if (!cliToken) { fail("--token is required for this operation.", { operationId: operation.operationId, }); } params.token = cliToken; } ``` The documented invocation also passes the expanded secret as a command-line argument: ```bash node {baseDir}/bin/run.mjs --operation "getUserDetailV2" --token "$JUST_ONE_API_TOKEN" --params-json '{"uid":""}' ``` ### Technical Analysis The Skill legitimately requires an API credential to invoke its declared JustOneAPI endpoint. However, the chosen credential transport introduces two avoidable exposure channels. First, passing the token through `--token` places the expanded secret in the process argument vector. Depending on host configuration, command-line arguments can be ...[truncated 2500 chars]- Remediation
View remediation
