T09 · Insecure Skill Coding Practices
- Location
bin/run.mjs:20- Finding
API Token Exposed Through Process 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; } ``` ### Technical Analysis The documented invocation passes `JUST_ONE_API_TOKEN` through the `--token` command-line argument. Depending on the operating system and execution environment, command-line arguments may be visible through process inspection facilities, shell tracing, job-control systems, audit telemetry, or orchestration logs. The operation metadata declares the token as a query parameter. After `injectToken` places the secret in `params.token`, `applyQueryParams` appends it to the request URL. Although the request uses HTTPS and the destination is fixed to the declared `api.justoneapi.com` service, HTTPS does not prevent q ...[truncated 1961 chars]- Remediation
View remediation
