Skip to content
Business logic Write-up Beginner

The Trilogy of Abusing Sign Up Page

The sign-up flow let users pick a username that became a path on the main site, and the blacklist of reserved words was only enforced on the email sign-up route, not on Google single sign-on. An attacker could therefore register usernames matching existing public paths and redirect links, so visitors following those links landed on the attacker's profile instead of the intended page.

hantake Follow

Published on hantake.medium.com

Dear readers, in this article, I just want to share my experience of abusing the logic on the Sign Up page three times.

han, on hantake.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 reserved-username blacklist was applied only in the email registration flow and not in the Google SSO registration flow, and the username was used directly as a site path without checking it against existing routes.

Impact

Visitors following legitimate site links could be redirected to an attacker-controlled profile page, which could be used for phishing or impersonation.

What the attacker needed

A free account; victim clicks a site link

How it was found

  1. Try to register a username containing a blacklisted word through the normal email sign-up and observe it is rejected.
  2. Register the same kind of username using the 'continue with Google' button instead.
  3. Observe that the account is created with the blacklisted word in the username.
  4. Enumerate public page paths and redirect links on the site and its subdomains.
  5. Register a username equal to a working path, such as a footer link target.
  6. Visit the original link and see it lead to the attacker's profile page.

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.

When you sign up, the name you choose becomes part of the web address of your profile page. The site tried to stop people taking names that clash with its own pages, but only checked this on one sign-up route and forgot the 'continue with Google' route. So someone could grab a name like 'terms' and anyone clicking the site's own terms link would end up on that person's profile.

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.