Otp bypass in verifying nin
The NIN verification page sent an OTP to the entered mobile number, but the OTP check could be bypassed by intercepting the server's response and changing its status to success. An attacker could verify any mobile number without knowing the correct OTP.
Originally disclosed on HackerOne
- Triaged in 29 days
- Fixed in 11 months
- Disclosed after 14 months
Summary:
while conducting my research in your website I found that while verifying NIN number it send the otp to the enterd mobile number that can be bypassed.
Steps To Reproduce:
- Go to https://nin.mtnonline.com/nin/
- click submit nin.Now it will redirect to another page https://nin.mtnonline.com/nin/
- It asks for mobile number and National Identity Number [NIN].
- Enter the mobile and NIN number and click Next.It will send the otp to the mobile number.
- Enter any 6 digit code and click verify and capture the request in bupsuite and click action and select "Do intercept and response to the request"
- Now change the response status to success.
------>Now successfully verified mobile number.
Impact
The attacker can able to verify NIN with any number.
Note: I had attached the poc video below please take a look.
Regards, @aaruthra.
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 server-side OTP verification result was not enforced, allowing a client-side response manipulation to mark the verification as successful.
Impact
An attacker could verify a NIN with any mobile number without knowing the correct OTP.
What the attacker needed
Access to the NIN verification page; a mobile number and NIN to submit; a tool to intercept and modify responses
How it was found
- Go to the NIN verification page.
- Click submit NIN and get redirected to the mobile and NIN entry page.
- Enter a mobile number and NIN, then click Next to receive an OTP.
- Enter any 6-digit code, click verify, and capture the request in Burp Suite.
- Enable response interception and change the response status to success.
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 website often sends a one-time code (OTP) to your phone to prove it is yours. This report shows that the website trusted the reply from the server without checking the code properly, so someone could fake a successful reply and skip the real check.
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.