T09 · Insecure Skill Coding Practices
- Location
scripts/install.sh:14- Finding
Hardcoded Repository Credentials Transmitted over Unencrypted HTTP
- Content
View full analysis
&2 PIP_INDEX_URL="$DEFAULT_PYPI_INDEX" fi export PIP_TRUSTED_HOST PIP_INDEX_URL ``` ### Technical Analysis The installer embeds the username and password `avlab:avlab123` directly in the repository URL. Anyone with access to the project can recover and attempt to reuse these credentials. The repository uses plain HTTP rather than HTTPS. HTTP Basic credentials embedded in a URL are encoded for transport but are not encrypted. A party capable of observing the connection can recover the credentials and inspect or modify repository traffic. Setting `PIP_TRUSTED_HOST` also instructs pip to accept the host without normal TLS-based authenticity guarantees. This creates both a credential-exposure vulnerability and a package supply-chain vulnerability. An attacker positioned on the network may be able to return a modified package or package metadata while the installer believes it is communicating with the intended repository. ### Attack Path 1. A user or Agent runs `scripts/install.sh`. 2. The script exports an HTTP repository URL containing the hardcoded credentials. ...[truncated 1042 chars]- Remediation
View remediation
