Skip to content
Info disclosure Write-up Beginner

Bypassing Email verification through HTTP response interception

The email verification code was included in the HTTP response after submitting the signup form. An attacker could intercept the response to obtain the code and bypass email verification, enabling automated account creation with unverified emails.

medium.com

Published on medium.com

https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FEU2mR9AQs3AEo%2Ftwitter%2Fiframe&displayname=Giphy&url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fcat-artist-oh-well-EU2mR9AQs3AEo&image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExaXppdDJjaDA0ZmFwM3Fidm1sNzdscjUyeTU1M2N3NTIwbjBxZnoz…

callgh0st, 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 included the email verification code in the HTTP response body instead of only sending it via email.

Impact

This could allow an attacker to bypass email verification and automate account creation using fake or unverified email addresses.

What the attacker needed

Access to the HTTP response

The fix

The verification code should only be sent to the email address provided during signup and should not be disclosed in any HTTP responses.

How it was found

  1. Navigate to the signup page.
  2. Fill out the required fields (name, email, password, etc.).
  3. Intercept the request when clicking the “Signup” button using an HTTP proxy tool.
  4. Forward the intercepted request to the server.
  5. In the server’s response, observe that the verification code sent to the user’s email is included in the response.

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 server sends a verification code to your email. In this case, the server also put that same code in the response it sent back to your browser. Anyone who can see that response can read the code and finish signing up without ever checking the email.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.