T09 · Insecure Skill Coding Practices
- Location
scripts/transcribe.sh:102- Finding
Unrestricted API Base URL Enables Credential and Audio Exfiltration
- Content
View full analysis
"$out" ``` ### Technical Analysis The script permits the API destination to be changed through either the `SPEECHMATICS_BASE_URL` environment variable or the `--base-url` command-line option. It does not validate the URL scheme, hostname, port, or resolved network address before transmitting sensitive data. The submission request sends both of the following to the configured destination: - The Speechmatics API key in an `Authorization: Bearer` header. - The complete user-selected audio file as multipart form data. Consequently, an attacker who can influence script arguments or the execution environment can redirect the request to an attacker-controlled server. The script also permits cleartext HTTP destinations, allowing credentials and audio content to be exposed to network observers. Because arbitrary destinations are accepted, the functionality may also be used to send requests to services reachable from the host running the Skill. This creates an SSRF-like capability, although interaction is constrained to the request formats generated by ...[truncated 1382 chars]- Remediation
View remediation
