Skip to content
Business logic Disclosed report Beginner

Improper validation of Email

The email and name fields accepted extremely long input and did not validate email format. Because the database column is shorter than the allowed input, stored emails could be silently truncated.

test_this Follow

Originally disclosed on HackerOne

  • Disclosed after 41 hours

1.goto https://bridge.cspr.ng/my/account here no rate limit present for email and display name,real name i just entered 1000 character length email in email field and it accepted

also for the display name ,real name

another there is no regular expression to check valid email if u give email as "aaaaaa", "a++++++++", "vdadva*$'/@4%$123", "sdfsjghg@something" all will be accepted as valid email Also 500+ character email also valid according to your code here is the specification for email address https://en.wikipedia.org/wiki/Email_address and email id must be <254 character

as email id strored in mysql as VARCHAR(128), so all the trailing character in mysql db will be truncted if your email like [email protected] and you entered as [email protected],then still you receave email in [email protected] MITIGATION: you must use filter_var($email, FILTER_VALIDATE_EMAIL) to validate email or use Regex like /^[_a-z0-9-]+(.[_a-z0-9-]+)@[a-z0-9-]+(.[a-z0-9-]+)(.[a-z]{2,3})$/

Attachments

Screenshot_-_May_5__2017_7.09_PM.png
Screenshot_-_May_5__2017_7.09_PM.png From the original on HackerOne

The original report as published on HackerOne, by test_this. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 application does not validate email format or length before storing it, and the database column is shorter than the accepted input, causing silent truncation.

Impact

An attacker could register or change an email to a malformed or overly long address, and due to truncation, the stored email may be silently shortened.

What the attacker needed

Access to the account page

The fix

The application should validate email format and length using filter_var or a regular expression before storing.

How it was found

  1. Go to the account page.
  2. Enter a very long email address (e.g., 1000 characters) in the email field.
  3. Observe that the form accepts it without error.
  4. Also try invalid email formats like 'aaaaaa' and see they are accepted.

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.

A website should check that an email address looks like a real email and is not too long. Here, the form accepted any text, even 1000 characters, and the database cut off the extra characters.

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 test_this

View all

4 more disclosed reports, best first.

More from Paragon Initiative Enterprises

View all

The newest disclosed reports for this program.

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.