Skip to content
Account takeover Disclosed report Beginner

Session Fixation Found

The application does not issue a new session ID after login, and the session cookie remains valid after logout. An attacker who obtains a user's cookie could reuse it to access the account without credentials.

0xsaikiran Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 8 days
  • Disclosed after 12 days

Hello reddapi, iam saikiran a security researecher found a bug in your website...

Authot- Sai Kiran bug-session fixation Severity: Medium

Summary:

The application does not set a new Session ID in the cookie after what appears to be an authentication attempt by the user. If this was a successful login and the Session IDs are stored in cookies then this application is affected by Session Fixation vulnerability.

To reproduce this vulnerability

1.open chrome and download edit this cookie ad-don 2.now open https://www.reddapi.com/ and log in 3.now goto edit this cookie addon and click export all cookies ...by clicking this we get the cookie copied in clipboard.. 4.logout from your https://www.reddapi.com/ account... 5.if needed u can close and open your browser. 6.now again go to https://www.reddapi.com/ but dont login..just simply go to edit this cookie addon and click import a cookie and paste the code which we previously exported. 7.after pasting just refresh the page and thats done you are now logged into your account without login details...

problems faced

the problems face if the vulnerability exits are 1.anyone can easily hijack victims or users session and get into his account 2.cookie stealing is the best way the hacker can get into and account..it would not take more than 5min to steal someones cookie using php n all... 3.even friends can fool the victim and get him hacked..

Solution

Manage session properly.this problem is mainly faced because the session doesn't get expired or doesn't get closed when logout is pressed.each time the user logins the cookie must hold a unique different session id to proceed..

facebook,google,any many more sites overtook this site....

Attachments

cap1.png
cap1.png From the original on HackerOne
cap2.png
cap2.png
cap3.png
cap3.png
cap4.png
cap4.png
cap5.png
cap5.png
cap6.png
cap6.png
cap7.png
cap7.png

The original report as published on HackerOne, by 0xsaikiran. 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 reuses the same session identifier before and after authentication and does not invalidate it on logout.

Impact

An attacker who obtains a user's session cookie could hijack the session and access the account, even after the user logs out.

What the attacker needed

Attacker obtains victim's session cookie; victim has logged in at least once

The fix

The application should issue a new session ID after login and invalidate the session on logout.

How it was found

  1. Log in to the website using a browser.
  2. Export all cookies using a cookie editor extension.
  3. Log out of the account.
  4. Import the previously exported cookies back into the browser.
  5. Refresh the page and observe that the user is logged in without entering credentials.

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.

A session cookie is like a temporary key that a website gives your browser after you log in, so you don't have to type your password on every page. This report says the key is not changed when you log in and still works after you log out. If someone else gets a copy of that key, they could use it to get into your account.

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

View all

4 more disclosed reports, best first.

More from ReddAPI

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.