T09 · Insecure Skill Coding Practices
- Location
bin/run.mjs:220- Finding
API Token Exposed Through URL Query Parameters and Process Arguments
- Content
View full analysis
item.location === "query")) { const value = params[parameter.name]; if (value === undefined) { continue; } appendValue(url.searchParams, parameter.name, value); } } ``` The documented invocation also supplies the secret through a command-line argument: ```bash node {baseDir}/bin/run.mjs --operation "renderedHtmlV1" --token "$JUST_ONE_API_TOKEN" --params-json '{"url":""}' ``` ### Technical Analysis The authentication token is added to the final request URL as `token=`. Although HTTPS encrypts the URL while it is in transit, query strings can still be recorded by the API server, reverse proxies, gateways, network-observability products, debugging tools, and error-monitoring systems. Systems that ...[truncated 2610 chars]- Remediation
View remediation
