T09 · Insecure Skill Coding Practices
- Location
bin/run.mjs:196- Finding
API Access Token Exposed Through URL Query String 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 token through a command-line argument: ```bash node {baseDir}/bin/run.mjs --operation "getYoutubeVideoDetailV1" --token "$JUST_ONE_API_TOKEN" --params-json '{"videoId":""}' ``` ### Technical Analysis The Skill sends requests only to the fixed, declared HTTPS endpoint at `https://api.justoneapi.com`, and transmitting an authentication credential to that service is necessary for the declared functionality. No evidence of covert exfiltration or transmission to an unrelated host was found. However, embedding the access token in the URL is an insecure credential-handling practice. Even when HTTPS protects the URL in transit, complete URLs may be recorded by the destination ...[truncated 1754 chars]- Remediation
View remediation
