November 30, 2026
How a Dotted Key Led to Privilege Escalation
بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ
By Dalia
2 min read
Hi, I'm Dalia, a security researcher and bug bounty hunter. In this write-up, I'll share a finding that started with a closer look at my profile settings. Let's get into it.
While testing a Private program, I'll use example.com as a placeholder. I started with a familiar feature: my profile.
The application had a GET /myprofile request that returned my details, and a PUT /myprofile request used when the page loaded or profile settings changed.
I was looking through the response of the GET request when one field caught my attention:
"roles": []"roles": []My account had the External User role, with ID.000000040000000000000000. That seemed like a useful place to investigate.
Finding out what the role IDs meant
I wanted to understand what a role value looked like, so I kept browsing the application and inspecting its requests.
And oh, wow!. I found a place in the interface that returned role IDs alongside their names.
Here we go. Let's try now.
My first attempt was to change the roles field directly in the profile update. The server rejected it with this message:
I also tried sending the role field in a couple of different ways. That didn't assign a role either.
The application was clearly checking this version of the update, so I went back to the profile response again and looked more closely at its structure.
The key detail was that roles was an array. Its first item would be at index. 0.
That made me wonder: if the backend accepted dotted keys for nested fields, would it treat roles.0 as the first item in the array? Let's try it.
Testing the array index
I tried that idea in the profile update, using the ID for the role I wanted to test, and
That actually works, and the role appeared in my profile. A small change in how I addressed the field let me do something the direct update would not allow.
Checking what the change actually allowed
I checked the impact using an endpoint that had previously denied my regular account:
Before changing the role, the endpoint returned 403 Forbidden. After the role change, it returned. 200 OK.
So yes, I increased my privilege, but it's another duplicate.