Skip to content
Access control Write-up Intermediate

Real Estate CRM Pentest: Broken Auth + IDOR + Stored XSS — Full Attack Chain

The report describes three high-severity vulnerabilities in a real estate CRM: unauthenticated access to user and client data, an IDOR allowing any authenticated user to delete others' records, and stored XSS in a client name field that executes in admin browsers. An attacker could chain these to steal an admin session and take over the CRM.

Shikhali Jamalzade Follow

Published on alisalive.medium.com

This is a write-up of an authorized black-box penetration test I conducted on a real estate CRM system. The engagement was performed with written authorization, from a real attacker perspective — no prior knowledge of the application internals.

Shikhali Jamalzade, on alisalive.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 missing server-side authorization checks: no authentication on API endpoints, no ownership verification for record operations, and no input sanitisation for stored data.

Impact

An attacker could read all user and client data without authentication, delete or modify any record as an authenticated user, and steal an admin session via stored XSS, leading to full CRM compromise.

What the attacker needed

Supabase anon key (public); a free account for IDOR and XSS; victim admin views the record

The fix

The report recommends enabling Row Level Security with ownership policies, enforcing JWT validation, adding server-side sanitisation, and setting security headers; it does not state that these were implemented.

How it was found

  1. Send a GET request to the users endpoint without an Authorization header to retrieve all user data.
  2. Use a UUID obtained from the previous step to send an authenticated DELETE request for another user's record.
  3. Inject a script payload into the client name field when creating a client record.
  4. Wait for an admin to view the poisoned client record, which executes the script and sends the admin's session cookie to the attacker.

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 report shows three common web security mistakes. First, some database endpoints had no login check, so anyone could read all user and client data. Second, a logged-in user could delete other people's records just by changing an ID in the request. Third, a text field saved malicious code that ran in an admin's browser and stole their session, letting the attacker act as that admin.

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 Shikhali Jamalzade

View all

7 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.