T09 · Insecure Skill Coding Practices
- Location
bin/run.mjs:236- Finding
API Token Exposed Through Command-Line Arguments and URL Query Parameters
- 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 passes the secret through a command-line argument: ```bash node {baseDir}/bin/run.mjs --operation "titleCountriesOfOrigin" --token "$JUST_ONE_API_TOKEN" --params-json '{"id":""}' ``` ### Technical Analysis Sending ...[truncated 3297 chars]- Remediation
View remediation
