Skip to content
Access control Write-up Intermediate

How we used Burpsuite MCP with Antigravity AI to exploit a Supaba

An authenticated user could modify their own role parameter in a PATCH request to gain admin access, and the AI also found that Row Level Security was misconfigured, allowing global data leaks of all orders and user profiles, plus unauthorised file uploads.

Jawad Mahdi Follow

Published on medium.com

As we all know, AI is shifting Bug Bounty and Web App Pentesting for good; people are worried about AI replacing Bug Bounty and their pentesting jobs. So, we thought, why not use AI together to find bugs in a company?

Jawad Mahdi, 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

Impact

An authenticated user could escalate their privileges to admin, read all orders and user profiles (including PII), and upload files without authorisation.

What the attacker needed

A normal user account; Burp Suite with MCP extension; Antigravity AI configured

How it was found

  1. Manually explore the website to populate Burp Suite's HTTP History and Logger with requests.
  2. Install the Burp Extension MCP Server and configure it with Antigravity AI, then verify the connection by listing HTTP history entries.
  3. Provide the AI with the in-scope URLs and ask it to deep-crawl, read JS bundles, find endpoints, and perform a Supabase-focused pentest.
  4. Supply legitimate test credentials (a normal user account) so the AI can discover table names.
  5. The AI identified a privilege escalation bug where an authenticated user could modify their own role parameter in a PATCH request to gain admin access.
  6. Manually confirm the vulnerability using curl, then use a bash script to test other API endpoints for RLS bypasses, confirming global data leaks of orders and profiles and an unauthorised file upload.

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 application used Supabase, a backend service that relies on rules called Row Level Security to decide who can read or write each table. Those rules were set up incorrectly, so a normal logged-in user could change their own role to admin and then read or write data that should have been private, such as every order and every user profile.

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.

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.