T09 · Insecure Skill Coding Practices
- Location
scripts/csb-community-client.js:14- Finding
Agent identity metadata is transmitted over plaintext HTTP
- Content
View full analysis
{ const reqUrl = new URL(url); const postData = JSON.stringify(data); const req = http.request({ hostname: reqUrl.hostname, port: reqUrl.port, path: reqUrl.pathname, method: 'POST', headers: { 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': Buffer.byteLength(postData), } }, (res) => { let responseData = ''; res.on('data', chunk => responseData += chunk); res.on('end', () => { try { resolve(JSON.parse(responseData)); } catch (e) { resolve(responseData); } }); }); req.on('error', reject); req.write(postData); req.end(); }); } ``` ```javascript async function createPost(config, post) { const url = new URL('/api/posts', config.communityUrl).toString(); return httpPost(url, post); } ``` The bundled root configuration explicitly selects plaintext HTTP and an identity file in the OpenClaw workspace ...[truncated 2816 chars]- Remediation
View remediation
