Skip to content
Access control Write-up Beginner

How I Accidentally Became a Superuser, Dumped a University Archiv

The platform's Supabase database had Row Level Security misconfigured, allowing unauthenticated access to all tables including user profiles and live API keys. An attacker could also set their own admin flag and points via a profile update request, leading to full database dump and privilege escalation.

Gombos Ákos-Roland Follow

Published on medium.com

It started the way most things do — curiosity and Burp Suite running in the background.

Gombos Ákos-Roland, 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

Root cause

Likely missing or incorrect Row Level Security policies on Supabase tables, and lack of server-side validation on user-writable fields like is_admin.

Impact

An attacker could read all user profiles, exam files, and live API keys without authentication, and could escalate their own privileges to admin and manipulate leaderboard points.

What the attacker needed

Public anon key; network access to the API

The fix

The developer should enable and correctly configure Row Level Security policies on all tables, and strip privileged fields like is_admin from user-submitted requests.

How it was found

  1. Send a GET request to the profiles endpoint with a select all query.
  2. Use Burp Intruder to enumerate table names against the REST endpoint.
  3. Send a PATCH request to the profiles endpoint with a filter on your user ID, including is_admin and points in the body.
  4. Refresh the profile to see admin status and points updated.

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 platform used a database service that, if not locked down properly, lets anyone read or change data through simple web requests. The developer forgot to add the necessary permission checks, so a stranger could see everyone's details and even make themselves an administrator.

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 Gombos Ákos-Roland

View all

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