SupaAuthz: an open source Burp extension for RLS testing in Lovable and Supabase apps

A Lovable app talks to Supabase straight from the browser, and Row-Level Security decides who sees which rows. Testing that in a pentest means sending the same requests again as every other user and without a login, then comparing the responses row by row. SupaAuthz is the Burp extension I wrote for that work, and as of today it is open source. What follows is what the extension does, what it leaves alone on purpose, and how to install it.

Why a status code is not enough

In a Lovable app the public Supabase key ships in the frontend, and that is by design. What someone can read with that key, or with an account of their own, depends on the RLS policies on each table. You test those policies by sending user A's request again with user B's token, and once more with only the public key.

The response is harder to read than it looks. PostgREST, Supabase's API layer, replies 200 OK with [] when RLS filters out every row. A tool that only compares status codes counts that as access. The opposite happens too. A response with a hundred rows, one of which belongs to another user, differs from the original and slips past a comparison of whole responses.

What SupaAuthz does

You proxy the app through Burp and log in as two or more test users. SupaAuthz recognises each user by the sub claim in the JWT and learns the public key from the apikey header. There is no token pasting, and the extension refreshes an expired session itself with the refresh token it saw in the traffic.

From then on, every successful read on the REST API and storage is sent again as every other active user and as an anonymous visitor. Each response gets a verdict.

  • Compared row by row. If one of the owner's rows comes back unchanged, that is a leak, however many other rows surround it. An empty response to a read counts as protected.
  • Anonymous or logged in. A leak to an anonymous visitor is CRITICAL, a leak to another logged-in user is VULNERABLE. A denial is SECURE, and anything the extension cannot judge is REVIEW.
  • The app's own query, loosened. Table reads are also sent again as the same user, once without filters and once with select=*. If ?user_id=eq.<own id> is all that keeps other users' rows out of a response, the policy is missing or too wide.
  • Coverage. A grid of tables against users shows what has not been tested yet, with a next step for each gap.

Roles and organisations can be configured. An admin reading their own employees' data then shows up as EXPECTED, and a leak between two organisations as cross-tenant.

Every finding says in one sentence who was compared with whom:

Original GET /rest/v1/invoices?id=eq.42 was sent as Admin A
(alice@example.com, role admin) and got 200, 1 row; replayed as
User C (carol@example.com, role user), it got the same data
(200, 1 row).

What the extension leaves alone on purpose

SupaAuthz only replays sessions you logged into yourself. Nothing is forged or escalated. The extension puts one valid token in place of another, sends the request again and compares the responses.

Automatic testing is read-only by default. Writes, RPC calls over POST and edge functions are tested one request at a time with a right-click, because sending those again can change data. Tokens only go to the Supabase project they were seen on. Another Supabase-based site that happens to be open in the same browser never receives a token from your test users.

There are limits too. Apps that keep the Supabase session in cookies and query from their own server (@supabase/ssr) are not recognised, and GraphQL and Realtime are outside the extension. A REVIEW needs a look at the data, and with VULNERABLE the tester still decides whether that row was meant to be shared. The README lists the known false positives and false negatives.

A tool compares responses. Who should have seen which row, and what goes wrong in payments and edge functions, is for a tester to judge in a manual pentest.

Request a free intake →

Installing and licence

Download supaauthz.jar from the latest release on GitHub and load it in Burp via Extensions > Installed > Add > Java. GitHub Actions builds the jar from the tagged commit and publishes a SHA-256 hash next to it. To build it yourself, run gradle build, which also runs the unit tests.

Status of this release

Version: v0.1.0, the first public release (29 November 2026).
Licence: Apache 2.0. Free to use for any purpose, including commercial work and paid assessments. Copies and modified versions keep the LICENSE and NOTICE files, which name Resync.
Source and issues: github.com/Zofyan/SupaAuthz.

Only with permission

SupaAuthz sends requests on behalf of logged-in users to a running application. Only use the extension on applications whose owner has authorised the test in writing.

The comparing the extension takes over is the same for every tester, and a builder can use it to check their own app before it goes live. Bugs and feature requests are welcome as issues on GitHub.

Conclusion

RLS mistakes in a Supabase app rarely show in a status code. They show in which rows come back, and for which user. SupaAuthz makes that comparison for every read you come across in the app and keeps track of what has not been tested yet.

The extension finds leaking rows. Payments, edge functions and business logic remain manual work, and the page on pentests for Lovable apps covers those.

Your Lovable app, tested by hand.

RLS per table and per role, storage, edge functions and payments. Fixed price, retest included.

Go to pentest for Lovable apps →