Full account takeover vulnerability in Minecraft
The staging environment of Minecraft used a separate database, allowing an attacker to register with a victim's email and obtain a remember_me cookie that was accepted by the production site. This enabled full account takeover on the main website.
Published on amakki.me
Today, i’m going to share how i found Account takeover vulnerabilityin Minecraft and reported it to them.
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 staging and production environments shared the same cookie signing key or authentication mechanism, and the staging database allowed duplicate email registrations, enabling an attacker to obtain a valid remember_me cookie for any email.
Impact
An attacker could take over any Minecraft account by registering on the staging site with the victim's email and using the resulting cookie on the main site.
What the attacker needed
Victim has an account on minecraft.net; attacker can access staging.minecraft.net; attacker knows victim's email
How it was found
- Go to the staging page (staging.minecraft.net).
- Sign up with the victim's email (already registered on minecraft.net).
- Sign in on the staging page and check the remember me box.
- Take the remember_me cookie value from staging and send it to the main domain (minecraft.net).
- Refresh the page on minecraft.net and you will be logged in as the victim.
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 staging site is a test version of a website. The researcher found that the test site let you create an account with an email that already existed on the real site. The test site gave a special cookie (a small piece of data) that the real site also accepted, so by copying that cookie, the attacker could log in as the victim on the real site.
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.