T03 · Remote Payload Retrieval and Execution
- Location
scripts/install_mediainfo_local.sh:10- Finding
Remote source archive is downloaded and executed without integrity verification
- Content
View full analysis
/dev/null bash ./CLI_Compile.sh ``` ### Technical Analysis The installation script downloads a source archive and executes the archive-provided `CLI_Compile.sh` without first verifying a cryptographic checksum or trusted digital signature. HTTPS protects the connection in transit under normal conditions, but it does not establish that the downloaded artifact is the exact dependency reviewed and approved by the project. The effective payload is mutable because both `MEDIAINFO_VERSION` and `MEDIAINFO_URL` can be supplied through environment variables. The use of `curl -L` also permits redirects. In addition, if an archive already exists at the calculated cache path, the script skips downloading it and trusts the local file without validation. After extraction, the script explicitly invokes the downloaded build script with Bash. Therefore, a malicious archive can run arbitrary shell commands rather than merely supplying compiled dependency source. ### Attack Path 1. An attacker controls the `MEDIAINFO_URL` environme ...[truncated 1359 chars]- Remediation
View remediation
