Skip to content
Business logic Write-up Beginner

Breaking Email Validation

The server rejected an invalid email format but the front end trusted a tampered success response, showing the email as saved. The attacker could then log in with the malformed email, bypassing validation and verification.

madhan21901 Follow

Published on medium.com

A while ago, I came across a web application where the UI looked bulletproof — it wouldn’t let you save an invalid email address. The front end seemed to be doing all the right checks: proper format, domain validation, even rejecting “.comm” typos.

Madhan, 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 did not enforce email validation on save and login, and the front end trusted a client-side response that could be altered.

Impact

Invalid or malformed email addresses could be stored and used for authentication, breaking verification and potentially allowing account impersonation.

What the attacker needed

Ability to intercept and modify HTTP traffic; a user account

The fix

The server should enforce email validation on save and before login, and the front end should not trust client-side responses alone.

How it was found

  1. Intercept the email update request.
  2. Change the email to an invalid format.
  3. Send the request and observe the failure response.
  4. Intercept the response and change success to true.
  5. Observe the front end showing the invalid email as saved.
  6. Log out and log in again with the malformed 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.

A web app checks an email address in the browser, but the server also checks it. The tester changed the server's 'no' answer to 'yes' in the browser, and the app believed it. Later, the server still accepted the bad email for login, so the check was not really enforced.

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 madhan21901

View all

1 more disclosed report, 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.