Using plain git protocol (vulnerable to MITM)
A CI configuration cloned a dependency over the unauthenticated git protocol, so the server is not verified. A man-in-the-middle attacker could return different content than expected, since the last commit is not checked against a known one.
- Disclosed after under an hour
Using plain git protocol (git://domain) is insecure as the server is not verified (MITM attacker can return different content if last commit not checked against known one) more information about this issue (Protocols to choose from when cloning): https://gist.github.com/grawity/4392747 vcs-field-uses-insecure-uri check details: https://lintian.debian.org/tags/vcs-field-uses-insecure-uri.html
in: https://github.com/paragonie/airship/blob/master/.travis.yml#L12
- git clone git://github.com/jedisct1/libsodium.git
fix:
- use https protocol instead of git. (https:// vs git://)
- implement verification of last commit/tag if possible (known commit/tag is fetched instead of master), more details about possible implementations in report: "Missing GIT tag/commit verification in Docker"
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the build pipeline fetched a dependency over an unauthenticated transport and did not pin or verify the commit, so the content could be substituted in transit.
Impact
An attacker in a position to intercept traffic could supply altered dependency content to the build, though the text does not show this being exploited.
What the attacker needed
Attacker can intercept network traffic
The fix
The build should fetch over HTTPS and, where possible, verify a known commit or tag instead of tracking the default branch.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When software is downloaded, it should come from a source you can verify. The plain git protocol does not prove the server is genuine, so someone sitting between the machine and the server could swap the content. Because the build did not check the exact commit, it would accept whatever arrived.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.