How a broken access control check led me to a full system data export.
During bug hunting for a SaaS application, I discovered one of the most interesting vulnerability chains I've encountered so far. And the craziest part is that it wasn't even a difficult/technical one. I just happened to accidentally stumble upon it when I changed my account's username to just admin.
It Started With a Username Change
I was testing the application using a regular Member (the lowest privilege account) with no administrative privileges. While checking for broken access control, I just randomly changed my username which was a test user, to admin.
And to my surprise, the application suddenly started showing me super admin settings that weren't visible before in the UI. I could navigate through organization settings, their Mongodb configuration, AI-related settings and other privileged sections.
At first, I thought I'd managed to escalate my privileges just from that.…