Subdomain Takeover: How a Misconfigured DNS Record Could Lead to a Huge Supply Chain Attack
The subdomain assets.npmjs.com pointed to an unclaimed S3 bucket, allowing an attacker to claim it and host malicious content. This could enable a supply chain attack by serving malicious packages from a trusted-looking domain.
In this blog post, we will discuss how the S3 Bucket takeover on assets.npmjs.com could lead to a supply chain attack and how to prevent it.
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
An attacker could host malicious content on the subdomain, potentially leading to a supply chain attack affecting millions of users, though the report does not confirm any actual exploitation.
What the attacker needed
DNS record points to unclaimed S3 bucket; attacker can claim the bucket
The fix
The DNS record pointing to the unclaimed S3 bucket should be removed, and the report states the issue was resolved by GitHub.
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.
A subdomain is a part of a website address, like blog.example.com. If that subdomain points to a cloud storage bucket that no longer exists, anyone can create a bucket with the same name and take control of the subdomain. Here, the subdomain assets.npmjs.com pointed to an unclaimed S3 bucket, so an attacker could claim it and host harmful files.
What is Subdomain takeover?
A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.