T09 · Insecure Skill Coding Practices
- Location
assets/bin/gateway-monitor-server.js:28- Finding
Authentication Credential Transmitted to a Configurable Remote Endpoint
- Content
View full analysis
{ const u = new URL(urlString); const req = https.request({ protocol: u.protocol, hostname: u.hostname, port: u.port || 443, path: `${u.pathname}${u.search}`, method: 'GET', headers, timeout: timeoutMs }, (res) => { let body = ''; res.setEncoding('utf8'); res.on('data', (chunk) => { body += chunk; }); res.on('end', () => { if (res.statusCode < 200 || res.statusCode >= 300) { return reject(new Error(`HTTP ${res.statusCode}: ${body.slice(0, 220)}`)); } try { resolve(JSON.parse(body)); } catch (err) { reject(new Error(`JSON parse failed: ${e ...[truncated 2482 chars]- Remediation
View remediation
