T09 · Insecure Skill Coding Practices
- Location
scripts/techsnif-cli.cjs:3556- Finding
Arbitrary and Insecure API Endpoint Override
- Content
View full analysis
", "Override the TechSnif API base URL", getDefaultApiUrl()); return command; } ``` ### Technical Analysis The CLI permits the API base URL to be replaced through either the `TECHSNIF_API_URL` environment variable or the `--api-url` command-line option. Validation only checks whether the scheme is HTTP or HTTPS; it does not restrict the destination host, reject private or loopback addresses, or require encrypted transport. Consequently, an attacker who can influence the execution environment or generated CLI arguments can redirect requests to: - An attacker-controlled server that returns forged article data. - A plaintext HTTP endpoint vulnerable to interception and response modification. - Internal, loopback, or link-local ...[truncated 2328 chars]- Remediation
View remediation
