Skip to content
Misconfiguration Disclosed report Beginner

Username Restriction is not applied for reserved folders

The application only blocked a few specific reserved usernames, leaving many other reserved words (such as 'sign-out', 'History', and 'settings') available for registration. An attacker could register these usernames and create profiles that impersonate legitimate site pages, potentially confusing users who click on links expecting the real pages.

akash_9021 Follow

Originally disclosed on HackerOne

  • Disclosed after 4 months

Hi,

This issue is same as #128121 reported by a5tronaut. He reported some of the usernames for restriction and you applied check only for those usernames. I think username restriction should applied for all the usersnames, those are used for a directory or a link in gratipay.

a5tronaut mentioned the sign-out.html. You restricted it but sign-out still is an available username.

Like gratipay have the directory listing for following: Profile, Giving , History, Emails, Routes, Settings.

But none of the above is restricted for use as an username.

I created my account of three of above username for POC purpose. When User of gratipay will click on the following link, he would expect the history, sign-out, settings page of gratipay. But he will end up visiting my gratipay account.

POC: https://gratipay.com/sign-out/ https://gratipay.com/History/ https://gratipay.com/settings/

Fix: You can fix most of this username restriction issues by not allowing . (dot) in username as i suggested in my previous report and other usernames without "." dot can be restricted explicitly.

Thanks, Akash Saxena

The original report as published on HackerOne, by akash_9021. 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 a blocklist approach that only denied a small set of reserved usernames instead of comprehensively preventing registration of any username that collides with existing routes or directories.

Impact

An attacker could register reserved usernames to create profiles that impersonate legitimate site pages, potentially misleading users who follow links expecting the real pages.

What the attacker needed

Ability to register a new account

The fix

The site should block all usernames that collide with existing routes or directories, for example by disallowing dots in usernames and explicitly restricting other reserved words.

How it was found

  1. Identify reserved words used as directories or links on the site, such as Profile, Giving, History, Emails, Routes, Settings.
  2. Register accounts using those reserved words as usernames.
  3. Share links containing those usernames so visitors expect the legitimate page but are taken to the attacker's profile.

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.

When you sign up for a website, you pick a username that becomes part of your profile address. Some words are already used by the website itself for its own pages, like 'settings' or 'sign-out'. If the site lets someone register those words as a username, a visitor might click a link thinking it goes to the real settings page but actually lands on the attacker's profile. This report says the site only blocked a few such words, not all of them.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by akash_9021

View all

1 more disclosed report, best first.

More from Gratipay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.