$$ bounty via unique username bypass
The community forum's username uniqueness check could be bypassed by adding leading or trailing space characters, so a user could register a name that looked identical to an existing one such as an administrator's. An attacker could then pose as an authority figure, send malicious links in direct messages, or interact with users while appearing to be a moderator.
medium.com
Published on medium.com
Hello Hackers! Today in this write-up, I’m going to share an amazing and super easy bug that was quick to find — and in the end, I was awarded a $$$ bounty for my efforts!
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 username uniqueness check did not trim or normalise whitespace before comparing names, so padded variants were treated as distinct.
Impact
An attacker could impersonate an admin-like account and send malicious links via direct messages or engage with users pretending to be a legitimate authority figure; the vendor rated it low severity.
What the attacker needed
A free forum account; ability to set a username
The fix
The issue was fixed by the vendor, who confirmed the bug no longer exists.
How it was found
- Try to register the username of an existing account and observe the 'already taken' error.
- Add a space before, after, or on both sides of the same name and submit it.
- Observe that the padded name is accepted as a new account.
- Use the accepted name to change the profile to look like the forum moderator.
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 website that lets people pick a username usually refuses names that someone else already has, so nobody can pretend to be someone else. Here the check compared the names exactly, so adding an invisible space at the start or end made the name look new to the system even though it looks the same to a human reading the page. The reporter used this to take a name that looked like the forum's moderator.
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.