Skip to content
Account takeover Write-up Intermediate

Hacking Millions of companies around the world with 10$: A Massive Software Supply Chain Attack

A GitHub contributor's account had an expired email domain still linked as a secondary email, allowing an attacker to buy the domain and reset the password. This gave access to internal source code, and a similar risk was found for an npm maintainer whose packages have millions of downloads.

RONI CARTA | LUPIN Follow

Published on depi.security

With modern software development relying heavily on open-source dependencies, protecting the software supply chain has become crucial. Each dependency carries risks, not only within its code but also from those maintaining it.

RONI CARTA | LUPIN, on depi.security

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

Impact

The attacker could access internal source code, and a similar issue on an npm maintainer's account could have allowed supply chain compromise affecting millions of downloads.

What the attacker needed

Expired email domain linked to account; ability to purchase the domain; explicit authorization from target

The fix

The issue was fixed by removing the expired email from the account, and the report suggests monitoring maintainer email domains to prevent similar takeovers.

How it was found

  1. Gather email addresses of the company’s GitHub contributors.
  2. Scan for expired domains among those emails.
  3. Find a contributor with an expired email domain still active on the account.
  4. Ask the company for explicit authorization to take over the account.
  5. Buy the expired domain.
  6. Trigger a password reset and use the received link to reset the password and log in.

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 you forget your password, a website sends a reset link to your email. If the email address uses a domain (like example.com) that has expired, someone else can buy that domain and receive the reset link. This report shows how that can let an attacker take over a GitHub account and then access private code.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by RONI CARTA | LUPIN

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.