# Some build dependencies are downloaded over an insecure channel (without subsequent integrity checks)

OpenVPN Travis CI jobs fetched tap-windows and lzo build dependencies over plain HTTP with no integrity check, allowing a MITM to inject malicious code into build artifacts.

- Payout: $100
- Severity: high
- Program: Internet Bug Bounty
- Found by: jub0bs
- Disclosed: 2020-12-04
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1039504
- Library page: https://bugbountylibrary.com/r/h1%3A1039504
- Tags: area:oss domain:oss impact:integrity kind:bounty platform:hackerone sev:high tech:ci-cd technique:source-review vuln:misconfiguration

**Target:** OpenVPN CI build pipeline (.travis.yml / .travis/build-deps.sh) fetching third-party dependencies
**Root cause:** build-deps.sh uses wget over http:// for tap-windows zip and lzo tarball and performs no checksum/signature verification after download.
**Steps:**
1. Read .travis.yml install phase: unconditionally runs .travis/build-deps.sh
2. Confirm conditions: OS != windows, SSLLIB=openssl, CHOST set — only true for mingw64|openssl-1.1.1d and mingw32|openssl-1.0.2u jobs
3. In build-deps.sh, download_tap_windows runs `wget -P download-cache/ "http://build.openvpn.net/downloads/releases/tap-windows-${TAP_WINDOWS_VERSION}.zip"`
4. download_lzo runs `wget -P download-cache/ "http://www.oberhumer.com/opensource/lzo/download/lzo-${LZO_VERSION}.tar.gz"`
5. Both use http:// despite HTTPS being available with valid certs; no hash/signature check follows
**How found:** Code review of the CI config and build-deps.sh: noticed wget URLs use http:// rather than https:// and that no checksum verification follows the downloads, then traced which build jobs actually execute those functions.
**Exploitation:** A person-in-the-middle on the network path between Travis CI build servers and build.openvpn.net / www.oberhumer.com intercepts the plaintext HTTP responses and substitutes malicious archives; since no integrity check runs, the tampered code is compiled into the produced OpenVPN artifacts.
**Insight:** Audit CI scripts for plaintext-HTTP dependency fetches and missing checksum/signature verification — build pipelines are a supply-chain MITM surface even when the upstream host supports HTTPS.

## Proof of concept (copied exactly from the original report)

**Insecure wget download of tap-windows and lzo**

```
download_tap_windows () {
    if [ ! -f "download-cache/tap-windows-${TAP_WINDOWS_VERSION}.zip" ]; then
       wget -P download-cache/ \
           "http://build.openvpn.net/downloads/releases/tap-windows-${TAP_WINDOWS_VERSION}.zip"
    fi
}

download_lzo () {
    if [ ! -f "download-cache/lzo-${LZO_VERSION}.tar.gz" ]; then
        wget -P download-cache/ \
            "http://www.oberhumer.com/opensource/lzo/download/lzo-${LZO_VERSION}.tar.gz"
    fi
}
```

