OTP can be used after given time to expire - [https://gitlab.com/]
The one-time password (OTP) sent to a user's phone during registration remained valid after its stated five-minute expiry. An attacker who obtained the OTP could use it later to verify the phone number, bypassing the intended time limit.
GitLab
Originally disclosed on GitLab
- Fixed in 54 days
- Disclosed after 54 days
⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.
HackerOne report #2648942 by dishant_singh on 2024-08-09, assigned to GitLab Team:
Report | Attachments | How To Reproduce
Report
Summary
Hy again Securty Team, i have found one more potential security issue on your main domain. while registering for an account a user has to verify his email first then he has to verify His phone number by OTP. the OTP user recieves for phone number can be used even after given expiration time.
Steps to reproduce
-
Register for an account.
-
Verify your email address.
-
Send OTP to your phone number you will see otp will have the message
This code will expire in 5 minutes.

WhatsApp_Image_2024-08-09_at_22.26.55.jpeg From the original on GitLab .
-
Wait for more than 5 minutes and try to use the otp (for explpitaion you can see POC below).
Output of checks
This bug happens on GitLab.com
Impact
An attacker can use the OTP even afer the OTP get's expired.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
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
Impact
An attacker could use an expired OTP to verify a phone number, potentially bypassing the time limit on phone verification.
What the attacker needed
A registered account; the OTP sent to the phone
How it was found
- Register for an account.
- Verify your email address.
- Send OTP to your phone number; the message says it expires in 5 minutes.
- Wait for more than 5 minutes and try to use the OTP.
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 sign up, a code is sent to your phone to prove it's yours. That code is supposed to stop working after five minutes, but the report shows it still worked after that time. This means someone who saw the code could use it later, even though it should have expired.
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.