Skip to content
Access control Write-up Intermediate

Breaking And Reporting Bugs The Story Behind My Comet And Black Hole Wins On Yeswehack

The report describes five vulnerabilities in a single program: improper access control on an invitation endpoint allowing any authenticated user to become an enterprise owner, an unauthenticated MongoDB instance exposing production data, stored XSS in an establishment name field leading to account takeover, an unauthenticated API endpoint exposing user feedback with personal data, and an IDOR allowing access to other organisations' AI analysis results. An attacker could take over enterprise accounts, read sensitive data, and impersonate users.

Jeewan Bhatta Follow

Published on infosecwriteups.com

It’s been a while since my last bug bounty write-up. Over the past few months, I simply haven’t had much time to turn my findings into public write-ups.

Jeewan Bhatta, on infosecwriteups.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 application repeatedly failed to perform server-side authorisation checks and input sanitisation, trusting client-supplied identifiers and data.

Impact

Attackers could take over enterprise accounts, access sensitive production data including personal information, impersonate users via stolen session cookies, and read confidential business documents.

What the attacker needed

Authenticated user for access control and XSS; network access to the target for MongoDB; no authentication for some endpoints; victim visits a page for stored XSS

How it was found

  1. Authenticate to the platform and locate the invitation endpoint.
  2. Replace the enterprise ID in the request path with another enterprise's identifier.
  3. Submit the request with role set to owner to gain owner privileges.
  4. Scan the target infrastructure and find an exposed MongoDB service on port 27017.
  5. Connect to the MongoDB instance without credentials and enumerate databases and collections.
  6. Update an establishment's name field with a script payload and save it.

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.

This write-up covers several common web security mistakes. One is that a server trusted a user-supplied ID and let anyone become an admin of any company. Another is a database left open to the internet without a password, and a script injection that ran when other users viewed a page. These mistakes let attackers take over accounts or read private information.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Jeewan Bhatta

View all

10 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.