Skip to content
Business logic Disclosed report Beginner

Flawed account creation process allows registration of usernames corresponding to existing file names

The account creation process allowed usernames that matched existing server resource names, such as robots.txt, leading to a profile path that conflicted with the actual file. This resulted in a broken account where settings and other functions were inaccessible.

mortes Follow

Originally disclosed on HackerOne

Bounty$100 View original
  • Fixed in 39 hours
  • Paid in 39 hours
  • Disclosed after 5 months

As requested by Alex: "You mentioned in the report to contact you on this account instead. Is this the email address you prefer to use for payment? If so, would you mind resubmitting the issue from this account so we can issue a payout to the proper account?"


The account creation process allows to set up account names corresponding to names of server ressources, e.g. I just successfully created an account robots.txt which results in a profile path of https://hackerone.com/robots.txt and results in an bugged account as accessing account settings etc is impossible.

I'd recommend moving away from filtering names and from profiles being available directly under .com/ and changing it to something more reliable like .com/users/profilename

The robots.txt account can be deleted. I only created it for testing purpose.

Cheers, Florian

The original report as published on HackerOne, by mortes. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The report concerns an account creation process that produced a profile path on hackerone.com. The researcher, Florian, found that the signup process accepted a username that collided with the name of a server resource. He registered the account name robots.txt, which produced the profile path:

Text
https://hackerone.com/robots.txt

The result was a broken account: accessing account settings and similar pages was impossible. The report does not describe the exact error or response the researcher saw, only that the account was unusable.

The researcher's own explanation of the mechanism is that the account creation process allows account names corresponding to names of server resources. In other words, the username namespace shares the same URL space as static or well-known files served by the application.

He recommended two changes: stop relying on filtering names, and move profiles away from being served directly under the root path, for example to a path such as .com/users/profilename. He also noted that the robots.txt account could be deleted, since it had only been created for testing.

The report was disclosed on 19 April 2014 and paid a bounty of 100.00 USD. No severity rating or weakness classification is given in the report text.

The report opens with a quoted request from a staff member, Alex, asking the researcher to resubmit the issue from the account he preferred to use for payment so that the payout could be issued to the correct account. That exchange is administrative and does not add technical detail.

Root cause

The likely root cause is a flat URL namespace: user profiles are routed at the top level of the domain, in the same space as files and paths the server already serves. When a new username is chosen, the application does not check it against the set of existing routes and static resources. A name like robots.txt therefore passes validation, and the resulting profile URL collides with a resource the web server or framework already handles.

The report does not say which handler wins the collision; it only notes the account was unusable.

The researcher recommended moving away from filtering names and serving profiles under a path such as .com/users/profilename.

Impact

In this report the impact is limited to the affected user: the account is created but cannot be used, and settings pages are unreachable. The researcher does not claim any ability to read other users' data, take over accounts or affect other users.

The report does not demonstrate any further exploitation.

How this kind of bug works

Web applications map URLs to handlers. Some paths are handled by the application's router (profiles, settings, APIs), others by the web server or a framework convention (static files, well-known files, health checks, framework internals). When user-controlled identifiers are placed at the same level as those paths, the two mappings can overlap.

Whether the collision causes a problem depends on resolution order. If the static file or well-known handler wins, the profile route becomes unreachable for that name. If the application route wins, a user may be able to shadow a resource that other systems expect to find at a fixed location. Either direction is a correctness and security problem, because the meaning of a URL now depends on who registered a name first.

The same class of issue appears whenever identifiers are used as path segments without a reserved namespace: usernames, organisation slugs, project names, short links. Blocklists of "bad" names are a common but weak defence, since the list of reserved words is never complete and differs between environments.

How to test for it

  1. Identify features where a user-chosen name becomes part of a URL path: registration, profile editing, organisation or team creation, custom short links.
  2. Enumerate the paths the target already serves at that level: well-known files, static asset directories, API prefixes, framework endpoints, login and logout paths, and any path seen in JavaScript or documentation.
  3. Register or rename an object using a candidate name that matches one of those paths, for example a well-known filename or a reserved route segment.
  4. Request the resulting URL and compare it with the response for the same path before registration. A positive result is a response that does not belong to the new object: a static file, a redirect to another handler, an error page, or a profile that cannot load its own settings.
  5. Check the reverse direction too: whether the new object shadows a resource that other components expect at that path.

Common false positives: the application may normalise or reject the name at a later step, the collision may exist only in a staging environment, or the path may return the profile correctly while a cached copy of the old resource is served. Confirm with a fresh request and, where possible, from a second account.

How it is fixed

The robust fix is to give user-controlled identifiers their own namespace, as the researcher suggested: serve profiles under a dedicated prefix such as /users/<name> so they can never collide with root-level resources. Where the URL structure cannot change, the application should reserve the full set of existing routes and static paths and reject those names at creation time, and it should keep that list in sync with the router rather than maintaining a hand-written blocklist. Routing rules should also be explicit about precedence, so that a user object can never shadow a well-known resource.

Hunting notes

This bug class tends to hide in older applications with flat routing, in platforms that migrated from static sites to dynamic profiles, and in multi-tenant products where tenant slugs sit at the root. Recon signals include profile URLs that are a single path segment, a robots.txt or sitemap.xml that behaves differently from other static files, and framework error pages that reveal which handler owns a path.

To make a report land, show the concrete collision: the name you registered, the URL it produced, and the response that proves the profile is not being served. Explain the user-facing consequence, such as an account that cannot be managed, and propose the namespace change rather than only a longer blocklist. Avoid overstating impact beyond what you can demonstrate.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

HackerOne is a platform where security researchers report bugs to companies. Like most websites, it lets people create an account and pick a username. That username then becomes part of a web address, so a user called alice gets a profile page at https://hackerone.com/alice.

Florian, the researcher who wrote this report, tried a username that looks like a file rather than a person: robots.txt. The signup process accepted it. The profile address became:

Text
https://hackerone.com/robots.txt

robots.txt is a well-known filename that websites use to tell search engines which pages they may crawl. It is not a person, and it is not something the account system should have handed out. The account was created, but it was broken: the researcher could not open account settings or similar pages. The report does not describe the exact error message, only that the account was unusable.

Why does this matter? A website has to decide, for every address a visitor asks for, which piece of software answers. Some addresses belong to the account system (profiles, settings). Others belong to files the server keeps on disk, such as robots.txt. When a username is allowed to sit at the same level as those files, the two can claim the same address. The account was created but broken: the researcher could not open account settings or similar pages.

Florian recommended moving away from filtering names. He recommended two changes: stop relying on filtering names, and move profiles off the root of the domain, for example to a path like .com/users/profilename. He also said the robots.txt account could be deleted, since he had only created it to test.

The report was disclosed on 19 April 2014 and paid a bounty of 100.00 USD. No severity rating or weakness classification appears in the report text.

The report also opens with a quoted message from a staff member, Alex, asking the researcher to resubmit the issue from the account he preferred to use for payment, so the payout would go to the right account. That part is administrative and adds no technical detail.

In general, how this kind of bug works

A web application is a program that answers requests from browsers. Each request asks for an address, called a URL, and the application decides which piece of code handles it. Some addresses are handled by the application's own routing logic: a profile page, a settings page, an API endpoint. Others are handled by the web server or by a convention the framework follows: static files such as images and stylesheets, well-known files such as robots.txt, health checks, framework internals.

Think of a building with one reception desk. Every visitor states a room number, and the receptionist looks it up in a directory. If two different things are allowed to claim the same room number, the receptionist has to pick one, and the other becomes unreachable. That is what a flat namespace means: every name lives at the same level, with no separate section for users and no separate section for files.

When a user-chosen name becomes part of a URL path, the two mappings can overlap. Which one wins depends on the order in which the application resolves addresses. If the static file or well-known handler wins, the profile route becomes unreachable for that name. If the application route wins, a user may be able to occupy an address that other systems expect to find at a fixed location. Either direction is a correctness and security problem, because the meaning of an address now depends on who registered a name first.

The same issue appears wherever identifiers are used as path segments without a reserved section: usernames, organisation names, project names, short links. Blocklists of bad names are a common but weak defence, because the list of reserved words is never complete and differs between environments.

How to test for it

  1. Find features where a name you choose becomes part of a URL path: registration, profile editing, organisation or team creation, custom short links.
  2. List the paths the site already serves at that level: well-known files, static asset folders, API prefixes, framework endpoints, login and logout paths, and any path you see in the site's JavaScript or documentation.
  3. Register or rename an object using a candidate name that matches one of those paths, for example a well-known filename or a reserved route segment.
  4. Request the resulting URL and compare it with the response for the same path before registration. A positive result is a response that does not belong to the new object: a static file, a redirect to another handler, an error page, or a profile that cannot load its own settings.
  5. Check the reverse direction too: whether the new object occupies a resource that other components expect at that path.

Common false positives: the application may normalise or reject the name at a later step, the collision may exist only in a staging environment, or the path may return the profile correctly while a cached copy of the old resource is served. Confirm with a fresh request and, where possible, from a second account.

How it is fixed

The robust fix is to give user-chosen identifiers their own section, as the researcher suggested: serve profiles under a dedicated prefix such as /users/<name> so they can never collide with root-level resources. Where the URL structure cannot change, the application should reserve the full set of existing routes and static paths and reject those names at creation time, and it should keep that list in sync with the router rather than maintaining a hand-written blocklist. Routing rules should also be explicit about precedence, so that a user object can never occupy a well-known resource.

Hunting notes

This bug class tends to hide in older applications with flat routing, in platforms that migrated from static sites to dynamic profiles, and in multi-tenant products where tenant names sit at the root. Signals worth watching include profile URLs that are a single path segment, a robots.txt or sitemap.xml that behaves differently from other static files, and framework error pages that reveal which handler owns a path.

To make a report land, show the concrete collision: the name you registered, the URL it produced, and the response that proves the profile is not being served. Explain the user-facing consequence, such as an account that cannot be managed, and propose the namespace change rather than only a longer blocklist. Avoid overstating impact beyond what you can demonstrate.

Glossary

  • Account creation flow: the sequence of pages and requests a site uses to let a new person sign up.
  • Username: the name a person picks for their account, often shown in their profile address.
  • URL: the address a browser requests, such as https://hackerone.com/robots.txt.
  • Path: the part of a URL after the domain, such as /robots.txt.
  • Root path: the top level of a domain, where paths sit directly after the domain name with no prefix.
  • Server resource: a file or endpoint the server already provides, such as a static file or a well-known file.
  • Static file: a file stored and served as-is, such as an image or stylesheet, rather than generated by application code.
  • Well-known file: a file at a fixed, conventional location that other systems look for, such as robots.txt.
  • robots.txt: a file at the root of a site that tells search engines which pages they may crawl.
  • Namespace: the set of names available in a given space; a flat namespace puts everything at one level, a reserved namespace gives a category its own section.
  • Routing: the logic that decides which piece of code handles a given URL.
  • Handler: the piece of code that produces the response for a URL.
  • Collision: two different things claiming the same name or address.
  • Resolution order: the order in which the application checks possible handlers, which decides who wins a collision.
  • Blocklist: a list of names that are forbidden; it only works for names someone thought to include.
  • Validation: checks an application runs on input, such as a username, before accepting it.
  • Profile: the public page describing an account.
  • Account settings: the pages where a logged-in user changes their account details.
  • Bounty: a payment a company makes to a researcher who reports a valid bug.
  • Disclosure: the point at which a bug report is made public.
  • Severity rating: a score describing how serious a bug is.
  • Weakness classification: a category label for the type of bug.
  • False positive: a finding that looks like a bug but is not one.
  • Staging environment: a copy of a site used for testing before changes go live.
  • Cache: a stored copy of a response that may be served again instead of a fresh one.
  • Multi-tenant product: a service where many separate customers share one platform, each with its own name or space.
  • Recon: the information-gathering phase of testing, where you learn how a site is built.

More from HackerOne

View all

The newest disclosed reports for this program.

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.