<?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 Xer0 on Medium]]></title>
        <description><![CDATA[Stories by Xer0 on Medium]]></description>
        <link>https://medium.com/@xer0?source=rss-5311a4c7d0e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i_Auf2YkfUJTudQtDVM1uw.jpeg</url>
            <title>Stories by Xer0 on Medium</title>
            <link>https://medium.com/@xer0?source=rss-5311a4c7d0e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:13:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xer0/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[Unauthorized Role Assignment via Registration using OPTIONS Method]]></title>
            <link>https://medium.com/@xer0/unauthorized-role-assignment-via-registration-using-options-method-0c8e53055203?source=rss-5311a4c7d0e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c8e53055203</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[Xer0]]></dc:creator>
            <pubDate>Sun, 31 May 2026 14:22:36 GMT</pubDate>
            <atom:updated>2026-05-31T14:22:36.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q-5cY8nmkq-UGmBCqNCnTg.png" /></figure><p>While testing a public registration flow on a bug bounty target, I wasn’t looking for privilege escalation.</p><p>I was simply doing what most bug hunters do when they encounter a registration page: mapping the API and understanding how the application handled user creation.</p><p>At first glance, everything looked normal.</p><p>The registration form allowed users to sign up as either a Retail user or an Institutional user. Nothing unusual there.</p><p>But a few minutes later, I found myself registering as an Analyst — a role that wasn’t even available in the user interface.</p><h3>The Recon Phase</h3><p>Whenever I encounter an API-driven application, I like to inspect how the backend describes itself.</p><p>One technique I often use is sending an OPTIONS request to API endpoints.</p><p>Many frameworks expose useful metadata through OPTIONS responses, including accepted methods, parameter names, field types, and sometimes even internal functionality that isn’t visible through the frontend.</p><p>After identifying the registration endpoint, I sent an OPTIONS request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*njN_whXJ1hKKHGL5y0F7kw.jpeg" /></figure><p>The response contained a list of accepted registration fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nkbXFTw7tNMxDldgZeDkhw.jpeg" /></figure><p>Most of them were expected:</p><ul><li>First name</li><li>Last name</li><li>Email</li><li>Password</li></ul><p>But one field immediately caught my attention:</p><pre>&quot;user_type&quot;</pre><p>Even more interesting was the list of accepted values was Analyst, Institutional and Investor Relations.</p><p>These wasnt supposed to be there for normal user registration.</p><p>The frontend only displayed two options, but the backend documentation exposed additional roles only using “OPTIONS” Method.</p><p>Something wasn’t adding up.</p><h3>Trusting the Client</h3><p>At this point, I had two possibilities:</p><ol><li>The backend properly validated which roles could be selected during registration.</li><li>The backend trusted whatever value was provided by the client.</li></ol><p>There was only one way to find out.</p><p>I completed the registration process normally and intercepted the request before sending it.</p><p>The original request contained a standard role value corresponding to a regular user.</p><p>I replaced it with a role that was never exposed through the registration form and forwarded the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kC5qR3wL3h_cmZ3as2dBgA.jpeg" /></figure><p>The server accepted it immediately VOILÀ!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zt5CSR4vZ0egIy7qj6iN5g.jpeg" /></figure><p>No validation errors.</p><p>No authorization checks.</p><p>Just a successful registration response.</p><p>That was the first sign that something was wrong.</p><h3>The Moment of Truth</h3><p>Receiving a successful response isn’t enough.</p><p>The real question was whether the account would actually receive the new role.</p><p>After verifying the email address and logging into the platform, I checked the profile.</p><p>The role assignment had worked.</p><p>I was no longer a standard user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*SHdlUvXRcoEcxCtoXC5w1Q.jpeg" /></figure><p>The application had created my account using a role that should never have been available through public registration.</p><p>At that point, it became clear that the backend was enforcing role restrictions only in the frontend.</p><p>The server trusted a user-controlled parameter to determine account privileges.</p><h3>Why This Matters</h3><p>A common misconception is that hiding an option in the UI makes it inaccessible.</p><p>Attackers don’t interact with applications through buttons and dropdowns.</p><p>They interact with HTTP requests.</p><p>If the backend accepts privileged values from user-controlled input, removing those values from the frontend provides no real security.</p><p>In this case, anyone could modify the registration request and assign themselves roles that were intended to be restricted.</p><p>Although the immediate impact appeared limited, the issue violated a fundamental security principle:</p><p>Authorization decisions must be enforced on the server.</p><p>Not in the browser.</p><h3>Root Cause</h3><p>The application exposed additional role values through the API and failed to validate whether those roles were eligible for self-registration.</p><p>Instead of enforcing a whitelist of publicly allowed roles, the backend accepted arbitrary role values supplied by the client.</p><p>This resulted in a classic Broken Access Control vulnerability.</p><h3>Timeline:</h3><ul><li><strong>Day 0:</strong> Discovered the vulnerability and submitted the report.</li><li><strong>Day 1:</strong> Security team contacted me for additional details.</li><li><strong>Day 3:</strong> Report triaged and accepted with thanks from the team.</li><li><strong>Day 7:</strong> Received a <strong>$$$ bounty</strong>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c8e53055203" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>