T09 · Insecure Skill Coding Practices
- Location
scripts/cli.mjs:323- Finding
Bearer Token Can Be Sent to an Arbitrary Host or over Plaintext HTTP
- Content
View full analysis
controller.abort(), env.timeoutMs); const headers = { 'Accept': 'application/json', 'Authorization': `Bearer ${env.token}`, 'X-OC-Request-Id': env.requestId }; if (body !== undefined) { headers['Content-Type'] = 'application/json'; } const requestInit = { method, headers, signal: controller.signal }; if (body !== undefined) { requestInit.body = JSON.stringify(body); } let response; let ...[truncated 3117 chars]- Remediation
View remediation
