Skip to content
Account takeover Disclosed report Intermediate

Account access with old password

A session that was pending two-factor authentication remained valid after the account password was changed, allowing an attacker who knew the old password to complete 2FA and access the account. The report claims this under certain conditions.

GitLab

Originally disclosed on GitLab

  • Fixed in 22 months
  • Disclosed after 22 months

HackerOne report #437194 by rogov on 2018-11-08:

Hi!

Summary: Account access with old password

Description: Vulnerability can allows to access of account with old password under certain conditions.

Steps To Reproduce:

  1. We have to login in account that have 2FA Security. ( just login:password, 2FA confirmation window do not touch. )
  2. Open new window, where we login in account and change the password. And we’ll see that this log out us of our account.
  3. We return to the window with 2fa confirmation, and look that session with old password is alive. To finally check it out, just enter the 2fa code and see that its allow us into the account with the session with the old password.

Supporting Material/References:

Nothing to add :)

Impact

Account access with old password

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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 did not invalidate pending two-factor authentication sessions when the account password was changed.

What the attacker needed

Attacker knows the old password; victim or attacker changes the password; attacker can complete 2FA

The fix

The report does not state a fix; it suggests pending 2FA sessions should not survive a password change.

How it was found

  1. Log in with the old password and reach the two-factor confirmation window without completing it.
  2. In a new window, log in and change the password, which logs you out of that session.
  3. Return to the first window with the two-factor prompt and enter the code.
  4. Observe that the session created with the old password is still accepted and grants access.

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 may ask for a second code (two-factor authentication). This report says that if you start logging in with the old password, then change the password elsewhere, the first login still works after you enter the code. That means someone with the old password could still get in.

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 from GitLab

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.