Skip to content
Business logic Write-up Beginner

$100 Bounty: Username Restriction Bypassed

The platform's username restriction was only enforced on the client side, so an attacker could bypass it by modifying the request to include special characters. This allowed the creation of fake usernames and organisations, enabling impersonation of legitimate users.

infosecwriteups.com

Published on infosecwriteups.com

Hello, fellow hackers! 👋 In this writeup, I’m excited to share how I discovered a Username Restriction Bypass vulnerability on a popular social media platform (name redacted for privacy) during a HackerOne Bug Bounty Program, which rewarded me with a sweet $100 bounty. 💵

Abhijeet kumawat, on infosecwriteups.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

Impact

Attackers could create fake profiles that are not viewable or traceable, bypass bans, and impersonate legitimate users or organisations, potentially misleading platform administrators.

What the attacker needed

A free account; ability to intercept and modify requests

The fix

The username validation should be enforced on the server side, not just in the browser.

How it was found

  1. Go to the profile section and try to add special characters to the username; an error message appears.
  2. Enter a valid username and save it while capturing the request with Burp Suite.
  3. Send the captured request to the repeater and modify the username parameter to include special characters.
  4. Send the modified request; the username is updated successfully.

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.

Websites often check what you type into a form before sending it to the server. If the server doesn't check again, someone can use a tool to change the request and sneak in characters that the website said were not allowed. Here, that let people make usernames that looked like someone else's, which could be used to impersonate them.

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.

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.