Skip to content
Account takeover Disclosed report Beginner

Broken authentication and session management flaw

The application did not invalidate session cookies after logout, so an attacker who obtained a user's cookies could reuse them to log in and edit account information even after the user logged out. The report claims the cookies remained usable for about a day.

khizer47 Follow

Originally disclosed on HackerOne

  • Triaged in 8 hours
  • Fixed in 9 hours
  • Disclosed after 31 days

In this Loop Hole The Application does not destroy session after logout.. means the cookies are working to login to user account & change account Information, The Cookies are usable after many hours of logout about after 1 day i'm able to access the account & edit info.

Steps To Reproduce This Issue:

1: go to coursera.org

  1. Login to your account.......

  2. Get the cookies using " Brub Suite" or "EditThisCookie"

4: Logout from the account...

5: Clear all the cookies related to coursera.org

6: Save the cookies you copied in a text file...

7: Now Injact/Import Old Cookies to the coursera.org by "EditThisCookie"...

8: as u can see.. you will be again logged In to coursera.org account.. using old session cookies..

For More Information about This Vulnerability You can check OWASP Guide

https://www.owasp.org/index.php?title=Broken_Authentication_and_Session_Management&setlang=en

Thanks, khizer Javed

The original report as published on HackerOne, by khizer47. 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 server did not invalidate the session token on logout, so the old cookie remained valid.

Impact

An attacker with a user's session cookies could reuse them to access and modify the account after logout, for many hours.

What the attacker needed

Attacker obtains victim's session cookies; victim logs out but cookies remain valid

How it was found

  1. Go to the website and log in.
  2. Copy the session cookies using a browser extension or proxy.
  3. Log out and clear all cookies for the site.
  4. Import the saved cookies back into the browser.
  5. Observe that you are logged in again using the old cookies.

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 website gives your browser a cookie that acts like a temporary key. Logging out should make that key useless, but here the key still worked, so anyone who copied it could get back into the account. This is dangerous because stolen cookies can be replayed later.

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 khizer47

View all

13 more disclosed reports, best first.

More from Coursera

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.