T09 · Insecure Skill Coding Practices
- Location
src/request.js:16- Finding
Credentials Can Be Transmitted to Arbitrary or Plaintext HTTP Destinations
- Content
View full analysis
"); await performRequest(state, config, { method: state.method, path: requestPath, body: state.data, }); } export async function runCommand(state, config) { const [command] = state.commandArgs; if (!command) { return false; } if (command.startsWith("/") || /^https?:\/\//i.test(command)) { await handleGenericRequest(state, config, state.commandArgs); return true; } ``` ### Technical Analysis The request destination can be controlled through `--base-url`, `APITWEET_BASE_URL`, a saved application profile, or an absolute URL passed to the generic request interface. The implementation accepts both HTTP and HTTPS destinations and performs no origin allowlisting or destination validation. `performRequest` then adds the config ...[truncated 1916 chars]- Remediation
View remediation
