Skip to content
Account takeover Disclosed report Intermediate

' Full Account Takeover ' at █████

The login endpoint trusted a client-side response and a cookie to decide whether authentication succeeded, so an attacker could intercept the login request, alter the response to show success, and set a cookie containing the victim's user ID. This allowed unauthorised access to any user account, resulting in full account takeover without knowing the victim's email or password.

0xs4m Follow

Originally disclosed on HackerOne

Critical View original
  • Disclosed after 2 months

Summary by the program

A severe vulnerability is identified in the login functionality of a website belonging to Mars. An unauthorized actor can manipulate the server's response from the █████████████ endpoint to gain unauthorized access to any user account on the platform, leading to a full account takeover. The attacker can achieve this by intercepting the login request, modifying the server's response to indicate a successful login, and setting a cookie with the target user's ID. This exploit does not require knowledge of the victim's email address or password.

The original report as published on HackerOne, by 0xs4m. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Root cause

Likely the application made an authentication decision based on a client-controlled response and a user-ID cookie rather than validating credentials and issuing a server-side session.

Impact

An unauthorised actor could gain access to any user account on the platform, leading to a full account takeover.

What the attacker needed

Ability to intercept and modify traffic; knowledge of the target user's ID

How it was found

  1. Intercept the login request.
  2. Modify the server's response to indicate a successful login.
  3. Set a cookie containing the target user's ID.

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 you log in, the site gives your browser a cookie. Here an attacker could alter the login response to show success and set a cookie naming any user, so they could pretend to be anyone without knowing their password.

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 0xs4m

View all

4 more disclosed reports, best first.

More from Mars

View all

The newest disclosed reports for this program.

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.