Skip to content
Business logic Write-up Beginner

Mobile Number Verification Bypass CWE-840 Business Logic Error

The mobile number verification process could be bypassed by changing the status field in a client-side request from 'unverified' to 'verified', allowing an unverified user to appear as verified without completing OTP verification.

VulnRAM Follow

Published on medium.com

During my exploration of the website, I found that I first create an account using an email. Then, when I enter the profile, I find a field to add and verify a phone number.

Vuln_Ram, on 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 server trusted a client-supplied status field instead of verifying the phone number through the OTP process.

Impact

An unverified user could appear as verified without completing OTP or phone verification, potentially gaining trust or access to features that require verification.

What the attacker needed

A free account

How it was found

  1. Create an account using an email.
  2. Go to the profile and find the field to add and verify a phone number.
  3. Initiate the phone number verification and observe the JSON request sent to the server.
  4. Change the status.phone value from 'unverified' to 'verified' in the request.
  5. Send the modified request and check the account details to see the phone number marked as verified.

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 sign up, the website asks you to verify your phone number by sending a code. The website sends a message to its server saying whether your phone is verified or not. The researcher found that they could change that message from 'unverified' to 'verified' and the server accepted it, so the phone appeared verified without ever entering a code.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by VulnRAM

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.