السلام عليكم ورحمة الله وبركاته
An unauthenticated legacy HubDB API on a HubSpot subdomain allowed reading, modifying, and publishing table rows without any authentication. An attacker could read all rows, inject arbitrary HTML into rows, and publish the changes live to HubSpot's marketing pages, with a logic flaw causing unintended rows to be modified.
medium.com
Published on medium.com
This is my first public write-up, and I’m starting with a fun one. A few months ago, I discovered a pretty serious IDOR (Insecure Direct Object Reference) in an old HubSpot API that let anyone — no login required — read, modify, and publish data on HubSpot’s own marketing pages.
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 legacy API endpoints lacked any authentication or authorization checks, and a separate logic flaw caused row targeting to be unreliable.
Impact
An unauthenticated attacker could read, modify, and publish data on HubSpot's own marketing pages, including injecting HTML, and could unpredictably corrupt unintended rows.
What the attacker needed
No authentication required; Knowledge of tableId and portalId; Network access to the legacy API endpoint
How it was found
- Collected subdomains and historical URLs for the target domain using recon tools.
- Identified legacy HubDB API endpoints with user-controlled tableId and portalId parameters.
- Sent an unauthenticated GET request to get_rows and received all table rows.
- Sent an unauthenticated POST request to update_row with a rowId and new HTML content, receiving a 200 OK.
- Sent an unauthenticated PUT request to publish_table, updating the publishedAt timestamp.
- Called get_rows again and observed that a different row than the targeted one contained the payload.
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.
An IDOR (Insecure Direct Object Reference) is when a website lets you access or change data just by changing an identifier in the request, without checking if you are allowed. Here, the API accepted table and row identifiers from anyone and performed actions without asking for a login. The attacker could therefore read and alter content that appears on public web pages.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.