T09 · Insecure Skill Coding Practices
- Location
bin/run.mjs:20- Finding
API Token Exposed Through URL Query Parameters and Command-Line Arguments
- Content
View full analysis
"}' ``` ### Technical Analysis The helper accepts the JustOneAPI authentication token through `--token` and stores it in `params.token`. Because the operation metadata marks `token` as a query parameter, `applyQueryParams` appends the credential to the request URL before `fetch` is called. HTTPS encrypts the request in transit, so passive network observers cannot normally read the token. However, placing credentials in URLs remains unsafe because complete URLs may be retained by reverse proxies, API gateways, web-server access logs, monitoring systems, tracing plat ...[truncated 2397 chars]- Remediation
View remediation
