Burn It With Fire: How to Eliminate an Industry-Wide Supply Chain Vulnerability
Many Java build tools and artifact repositories resolved dependencies over plain HTTP, allowing a man-in-the-middle attacker to inject malicious code into builds. The author coordinated fixes across hosts and tools, including blocking HTTP downloads and changing defaults.
Published on infosecwriteups.com
In 2019, while debugging one of my own builds, I noticed something odd. The build was resolving dependencies over http:// instead of https://.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the root cause was that build tools and artifact repositories allowed dependency downloads over unencrypted HTTP without integrity checks, often due to insecure defaults or typos.
Impact
An attacker who could intercept network traffic could inject malicious code into Java builds, affecting many projects and organisations.
What the attacker needed
Ability to intercept network traffic; build uses HTTP for dependencies
The fix
The issue was fixed by blocking HTTP-based artifact downloads at repositories and changing build tool defaults to require explicit opt-in or verification for HTTP.
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 write-up has not been written yet. The Original tab links to the source.
When building software, tools download other pieces of code from the internet. If those downloads use an unencrypted connection (HTTP), someone who can intercept the network traffic could swap in malicious code. This article describes how the author worked with many organisations to stop this from happening.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.