T09 · Insecure Skill Coding Practices
- Location
scripts/unraid_common.sh:14- Finding
API credentials can be transmitted over plaintext HTTP
- Content
View full analysis
"$err_file" ``` ### Technical Analysis The base URL validation explicitly accepts both `http://` and `https://`. When HTTP is selected, the script sends the Unraid API key and, if configured, the CSRF token and session cookie without transport encryption. The headers are transmitted on every GraphQL request. HTTP provides neither confidentiality nor server authentication, allowing an attacker with a network observation or interception position to recover or modify the request. ### Attack Path 1. The operator configures `UNRAID_BASE_URL` with an `http://` URL. 2. A manual check or scheduled monitoring execution invokes `graphql_post`. 3. The script includes the API key and optional session credentials in HTTP headers. 4. An attacker on the same network segment, compromised router, proxy, or Wi-Fi access point captures the plaintext request. 5. The attacker reuses the recovered credentials against the Unraid API. ### Impact Assessment An attacker can obtain the configured API key, CSRF token, or session cookie. The resulting access is limited by the permissions assigned to those credentials, but may include visibility into sensitive server, array, disk, and container information. If an overly privileged API key is used, the compromise could extend beyond the read-only op ...[truncated 41 chars]- Remediation
View remediation
