No Session Expiry after log-out, attacker can reuse the old cookies

MkNayek
2 min readJan 8, 2025

--

hey there,

Today, I’m going to share with you an interesting bug I found in one of intigriti public programs. It was in a program that had a “Login via Facebook” feature.

Grab your coffee, and let’s get started! 😉

There is no session expiry after log-out which can help an attacker to take-over the full account by reusing it.

Reproduction Steps

  1. Go to https://xxxxx.com/ and click on Sign In
  2. Continue with Google Account
  3. Use “EditThisCookie” Extension to export the cookies
  4. Once you logged in — click on “EditThisCookie” Extension and export the cookies
  5. Now open another browser and import those cookies — you can able to login an account by using cookies
  6. Logout from your first browser — it should logout from another browser as well.
  7. Now, login again with your google account — This time use old cookies.
  8. By using old cookies, you can able to login victim’s account. (Whenever victim’s session is active)

Impact

Attack Scenario: If a malicious user gets the victim’s cookies by exploiting any vulnerability, he can log in to victim’s account . Whenever the victim’s session is active an attacker can login victim’s account by using old cookies.

Impact: If a malicious user gets the cookies by exploiting any vulnerability, he can log in to the victim’s account.

--

--

MkNayek
MkNayek

Responses (2)