Skip to content
Access control Write-up Intermediate

Minecraft Migrated Account Session Vulnerability Security Advisory

The authentication server accepted any valid session key from a migrated account for any other migrated account, so an attacker could log in as any migrated user. This could let an attacker access players' accounts or privileged server accounts, potentially leading to further compromise of the server machine.

gist.github.com

Published on gist.github.com

Clone this repository at <script src="https://gist.github.com/ajvpot/3115176.js"></script> - Save ajvpot/3115176 to your computer and use it in GitHub Desktop.

The author, on gist.github.com

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 authentication server failed to verify that the session ID matched the username for migrated accounts.

Impact

An attacker could gain access to players' accounts and potentially privileged server accounts, which could lead to access to the operating system or damage to data on the machine.

What the attacker needed

A migrated Minecraft account; a Minecraft server using Mojang authentication

The fix

The vulnerability should be fixed on the authentication level by Mojang Specifications; it cannot be resolved on a server locally.

How it was found

  1. Log in to Minecraft with a migrated account.
  2. Store the session key.
  3. Connect to a Minecraft server with a different migrated account's username and the stored session key.

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 log in to Minecraft, the game checks with Mojang's servers that your session is valid. This report found that the check did not confirm that the session belonged to the username being used, so any valid session could be used for any account. That means an attacker could pretend to be another player.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.