Skip to content
Business logic Write-up Beginner

How I Hacked An AI Based Company

A staging subdomain allowed account registration despite the main application restricting signups to paying subscribers. The invitation link pointed to localhost, and replacing it with the staging hostname logged the invited member directly into the workspace without signup, enabling multiple members and workspaces beyond the paid plan limit and free use of premium AI models.

medium.com

Published on medium.com

Every bug hunter knows the thrill of finding a bug that turns into a bounty — and sometimes, it’s not the big, complex payloads that get you there, but the small overlooked details…

Rohan_lew, on 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 a misconfiguration where a staging subdomain retained an open registration endpoint and the invitation flow used a hardcoded localhost redirect URL that could be swapped for the staging host, bypassing subscription checks.

Impact

An attacker could add multiple members and create unlimited workspaces beyond the paid plan limit, and gain free access to all premium AI models.

What the attacker needed

Access to the staging subdomain; ability to send invitations

How it was found

  1. Find the subdomain srconsole.target.com via Shodan.
  2. Register an account on the subdomain's signup page.
  3. Use the invite member feature to send an invitation.
  4. Click the invitation link, which redirects to localhost:3000.
  5. Replace localhost:3000 with srconsole.target.com in the URL.
  6. Access the workspace without signing up.

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.

The company's main website only let people sign up if they had a paid subscription. But a less-known copy of the site (a subdomain) still had an open signup page, so anyone could create an account there. Then, when inviting someone, the link pointed to 'localhost' (the tester's own computer) instead of the real site; by changing that part of the link to the subdomain, the invited person was logged in automatically, skipping signup entirely.

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.