<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dalia on Medium]]></title>
        <description><![CDATA[Stories by Dalia on Medium]]></description>
        <link>https://medium.com/@dhaliaeid?source=rss-fa1f1da33847------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XMdDSFWGza4IDduFWYpzbQ.jpeg</url>
            <title>Stories by Dalia on Medium</title>
            <link>https://medium.com/@dhaliaeid?source=rss-fa1f1da33847------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:08:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dhaliaeid/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How a Dotted Key Led to Privilege Escalation]]></title>
            <link>https://medium.com/@dhaliaeid/how-a-dotted-key-led-to-privilege-escalation-18d26d5a2ab6?source=rss-fa1f1da33847------2</link>
            <guid isPermaLink="false">https://medium.com/p/18d26d5a2ab6</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[Dalia]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 15:59:31 GMT</pubDate>
            <atom:updated>2026-11-30T15:59:31.963Z</atom:updated>
            <content:encoded><![CDATA[<p>بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ</p><p>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.</p><p>While testing a Private program, I’ll use example.com as a placeholder. I started with a familiar feature: my profile.</p><p>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.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yAjVPRpxC6KjnU9KZE44Hg.png" /></figure><p>I was looking through the response of the GET request when one field caught my attention:</p><pre>&quot;roles&quot;: []</pre><p>My account had the External User role, with ID.`000000040000000000000000`. That seemed like a useful place to investigate.</p><h3>Finding out what the role IDs meant</h3><p>I wanted to understand what a role value looked like, so I kept browsing the application and inspecting its requests.</p><p>And oh, wow!. I found a place in the interface that returned role IDs alongside their names.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*tXWlDOp193sNcMVWQWNuqg.png" /></figure><p>Here we go. Let’s try now.</p><p>My first attempt was to change the roles field directly in the profile update. The server rejected it with this message:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*04DhNc6aPa59hexjLlf1dw.png" /></figure><p>I also tried sending the role field in a couple of different ways. That didn’t assign a role either.</p><p>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.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*AY1E2Fjj3eUvUN4w-9SXpw.png" /></figure><p>The key detail was that roles was an array. Its first item would be at index. 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*6Q_z7nxZFv9yLdqOZgXoIw.gif" /></figure><p>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.</p><h3>Testing the array index</h3><p>I tried that idea in the profile update, using the ID for the role I wanted to test, and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/195/1*Ee1wwPCIOH4BMCZSpjZybA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*WydVhvTzh1k10phdLfixYQ.png" /></figure><p>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.</p><h3>Checking what the change actually allowed</h3><p>I checked the impact using an endpoint that had previously denied my regular account:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*XbQWMkH_6zUJaLoeJEoiDQ.png" /></figure><p>Before changing the role, the endpoint returned 403 Forbidden. After the role change, it returned. 200 OK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*FdKf7RuDfEexUjVhO22JNA.png" /></figure><p>So yes, I increased my privilege, but it’s another duplicate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*16uoZ-Ajh2DxJXcbwjk6Rg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*dJx29gtEq1goCD3igJnitg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18d26d5a2ab6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>