T09 · Insecure Skill Coding Practices
- Location
scripts/push.js:29- Finding
Arbitrary Remote Host Allows Plaintext Disclosure of Tree Data and Authentication Tokens
- Content
View full analysis
{ const wsUrl = `ws://${host}:${port}`; // Connection timeout const connectTimer = setTimeout(() => { ws.close(); reject(new Error(`Connection timeout - is TreeListy running with MCP bridge on port ${port}?`)); }, CONNECT_TIMEOUT); const ws = new WebSocket(wsUrl); ws.on('open', () => { clearTimeout(connectTimer); // Send handshake with token if provided const handshake = { type: 'handshake', source: 'openclaw-skill', version: '1.0.0', token: token }; ws.send(JSON.stringify(handshake)); }); ``` After the hands ...[truncated 2641 chars]- Remediation
View remediation
