Skip to content
Account takeover Write-up Intermediate

Account Takeover via password reset without user interactions (CVE-2023–7028)

A bug in GitLab's email verification process allowed an attacker to send a password reset email to an unverified secondary email address, enabling account takeover without user interaction.

0xweb01 Follow

Published on 0xweb01.medium.com

GitLab has released security updates to address two critical vulnerabilities, including one that could be exploited to take over accounts without requiring any user interaction.

0xweb01, on 0xweb01.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 password reset flow did not verify that the secondary email address belonged to the account owner before sending the reset link.

Impact

An attacker could take over any account on affected self-managed GitLab instances without any action from the victim.

What the attacker needed

Self-managed GitLab instance; attacker can add a secondary email

The fix

GitLab fixed the issue in versions 16.5.6, 16.6.4, and 16.7.2, and backported the fix to earlier versions.

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 forget your password, a website sends a reset link to your email. This bug meant GitLab would also send that link to a second email address that you had added but not yet proven you owned. An attacker could add their own email as that second address and receive the reset link, then change the victim's 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.

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.