T09 · Insecure Skill Coding Practices
- Location
bin/run.mjs:25- Finding
Reusable API Token Exposed in URL Query String
- Content
View full analysis
item.location === "query")) { const value = params[parameter.name]; if (value === undefined) { continue; } appendValue(url.searchParams, parameter.name, value); } } function appendValue(searchParams, name, value) { if (Array.isArray(value)) { for (const item of value) { appendValue(searchParams, name, item); } return; } if (value && typeof value === "object") { searchParams.append(name, JSON.stringify(value)); return; } searchParams.append(name, String(value)); } ``` ### Technical Analysis The helper stores the reusable JustOneAPI authentication token in `params.token`. Because the manifest declares this field as having the `query` location, `applyQueryParams()` appends the credential to the URL before the request is sent. Al ...[truncated 2997 chars]- Remediation
View remediation
