Skip to content
Business logic Write-up Beginner

When XSS Payloads Became My Reddit Password: A Bug That’s Not

The author found that Reddit's login form accepted a malformed string containing an XSS-like payload as both email and password, and they were logged into an existing account that had been created with those same credentials. The author claims this could allow access to test accounts with predictable fuzzed credentials, but Reddit said it does not lead to a practical security impact.

cybertechajju Follow

Published on medium.com

Have you ever accidentally logged into a Reddit account… using complete garbage input?

CyberTechAjju, 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 login form did not validate the format of the email or password fields, allowing any string to be used as credentials.

Impact

The author could access an existing test account that had been created with the same fuzzed credentials, but Reddit stated this does not necessarily lead to a practical security impact.

What the attacker needed

An account already exists with the same fuzzed credentials; attacker knows or guesses the exact fuzzed string

The fix

The login form should validate email format and enforce password complexity rules.

How it was found

  1. Enter a malformed string containing an XSS payload into both the email and password fields on Reddit's login form.
  2. Submit the form.
  3. The login succeeds and the user is logged into an existing account that was created with those same credentials.

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 login form normally checks that the email looks like an email and the password meets some rules. Here, the form let someone log in with a strange string that looked like a cross-site scripting (XSS) attack, which is a way to inject code into web pages. Because someone had already made an account using that exact strange string as both email and password, the author could log in to it.

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 cybertechajju

View all

7 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.