Skip to content
Account takeover Write-up Beginner

Understanding GitLab EE/CE Account TakeOver (CVE-2023-7028)

GitLab's password reset process accepted an array of email addresses and sent the reset link to all of them, including an attacker-supplied address. An unauthenticated attacker could thus obtain a victim's password reset link and take over their account.

Ravi Solanki Follow

Published on secops.group

Hello readers! In this blog post, our Senior Consultants, Ravi and Punit talk about the recently discovered account takeover vulnerability identified in GitLab Community Edition (CE) and Enterprise Edition (EE).

The SecOps Group, on secops.group

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

Impact

An unauthenticated attacker could take over any user account without victim interaction, though accounts with two-factor authentication enabled are protected.

What the attacker needed

Victim has no 2FA enabled; attacker can intercept HTTP requests; attacker has an email address

The fix

GitLab released a patched version; users should upgrade and enable two-factor authentication.

How it was found

  1. Go to the login page and click 'Forgot your password?'.
  2. Enter the victim's email address and submit the reset request.
  3. Intercept the request with a proxy and add the attacker's email to the email array.
  4. Forward the modified request.
  5. Check the attacker's mailbox to receive the password reset email.

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. Here, GitLab let an attacker add a second email address to that request, so the reset link went to both the real user and the attacker. The attacker could then use the link to set a new password and log in as the victim.

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.