RCE via npm misconfig -- installing internal libraries from the public registry
The hacker found that Uber's internal Node.js libraries were referenced by name but not claimed on the public npm registry. By claiming those package names and publishing their own code, they could run a proof-of-concept on Uber's systems.
Originally disclosed on HackerOne
- Triaged in 7 hours
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 4 months
Summary by the program
The hacker spotted some orphaned references to Uber-branded Node.js library packages and claimed them on the public NPM registry to run their own proof-of-concept code.
Summary by the researcher
Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies
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
Impact
The attacker could run their own proof-of-concept code on Uber's systems.
What the attacker needed
Knowledge of internal package names; ability to publish to public npm
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 built, it often downloads other pieces of code called packages from a public library. If a company uses a private package name that nobody has registered publicly, an attacker can register that name and upload their own malicious code. Then, when the company's build system looks for the package, it might download the attacker's version instead of the intended private one.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.