Skip to content
Account takeover Write-up Beginner

Cookie Replay

The application did not invalidate or bind session cookies to a specific browser or device, so a copied cookie could be pasted into another browser and grant access to the same account. An attacker who obtained a session cookie could therefore hijack the user's session and take over the account.

vikasrai11 Follow

Published on vikasrai11.medium.com

When conducting penetration tests, sometimes the simplest methodologies can yield the most profound results. While testing a well-secured web application, I discovered a vulnerability that allowed session cookies to be reused across different browsers and systems.

Vikas Rai, on vikasrai11.medium.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 session cookie was not bound to the original browser or device and remained valid when replayed elsewhere, indicating weak session management.

Impact

An attacker who obtains a session cookie could hijack the user's session and gain unauthorised access to the account, potentially compromising sensitive data and actions.

What the attacker needed

Valid user credentials; ability to copy and paste cookies; attacker obtains the session cookie

How it was found

  1. Log in to the web application using valid credentials in one browser.
  2. Copy the session cookies from that browser using a cookie editor extension.
  3. Paste the copied cookies into a different browser.
  4. Observe that the second browser is logged in to the same account.

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 a website, the site gives your browser a small piece of data called a session cookie so it remembers who you are. This report says that if someone copied that cookie and put it into a different browser, the website still treated them as the logged-in user. That means anyone who gets hold of the cookie can act as that person 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 vikasrai11

View all

1 more disclosed report, 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.