<?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 ameensec on Medium]]></title>
        <description><![CDATA[Stories by ameensec on Medium]]></description>
        <link>https://medium.com/@ameensec?source=rss-a7cd01cd7f47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sP3dHf_HuCazeO9nPlwaKQ.jpeg</url>
            <title>Stories by ameensec on Medium</title>
            <link>https://medium.com/@ameensec?source=rss-a7cd01cd7f47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:23:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ameensec/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 Simple Bug Got Me €25]]></title>
            <link>https://ameensec.medium.com/how-a-simple-bug-got-me-25-fe9ab0360e4f?source=rss-a7cd01cd7f47------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe9ab0360e4f</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[che]]></category>
            <category><![CDATA[ejpt]]></category>
            <dc:creator><![CDATA[ameensec]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 08:07:41 GMT</pubDate>
            <atom:updated>2026-09-16T08:50:22.263Z</atom:updated>
            <content:encoded><![CDATA[<p>While participating in the <strong>Target.com bug bounty program</strong>, I found a simple API information disclosure issue on one of the in-scope assets.</p><p>The API accepted an email address and returned newsletter subscription information associated with that account.</p><p>It was a relatively simple API issue, but it was a good reminder that even small information-disclosure bugs can be worth reporting when they expose user-related data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*RodATmjyFzMosR-FlVkh6w.png" /></figure><h3>The Endpoint</h3><pre>GET /api/newsletter/rest/v3/users/&lt;email&gt;/subscriptions?state=SUBSCRIBED&amp;representation=WIDE</pre><p>The subscription API leaks sensitive user metadata based on email input. When a valid email is provided, the API returns a detailed JSON object disclosing personally identifiable information (PII) such as:</p><ul><li>Subscription ID</li><li>Email tracking ID</li><li>Subscription timestamp</li><li>Newsletter ID and name</li><li>Personalized preview URL</li></ul><p>Example response:</p><pre>{<br>  &quot;subscriptionId&quot;: &quot;514c7a38-8107-4aaa-664d-f513fbae5777&quot;,<br>  &quot;email&quot;: &quot;test@example.com&quot;,<br>  &quot;emailTrackingId&quot;: &quot;32df5ddfsadse995319asdfe037f8d&quot;,<br>  &quot;state&quot;: &quot;SUBSCRIBED&quot;,<br>  &quot;rootEventTimestamp&quot;: &quot;2025-04-06T07:17:08.133Z&quot;,<br>  &quot;newsletter&quot;: {<br>    &quot;newsletterId&quot;: &quot;59asdf347a69253fdsfdf86c8e6&quot;,<br>    &quot;name&quot;: &quot;ameensec&quot;,<br>    &quot;previewUrl&quot;: &quot;https://ameen.sec/optiext/optiextension.dll?...&quot;<br>  }<br>}</pre><h3>Impact</h3><p>The endpoint could be used to confirm whether an email address was subscribed and expose internal subscription and tracking information.</p><p>The main concern was the possibility of using the endpoint for email/subscription enumeration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe9ab0360e4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Earned a $300 Bug Bounty by Finding an Authorization Bypass in a Private Program]]></title>
            <link>https://ameensec.medium.com/how-i-earned-a-300-bug-bounty-by-finding-an-authorization-bypass-in-a-private-program-cb9b560d1924?source=rss-a7cd01cd7f47------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb9b560d1924</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <dc:creator><![CDATA[ameensec]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 06:19:51 GMT</pubDate>
            <atom:updated>2026-07-19T06:21:04.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*imk1nTHNOvumF4rtvufl2A.png" /></figure><p>Authorization vulnerabilities are often overlooked because they don’t always involve complex exploits. Sometimes, a single client-controlled parameter is enough to expose sensitive information.</p><p>In this private bug bounty engagement on <strong>target.com</strong>, I discovered an authorization bypass in a voucher API that allowed access to voucher details by simply manipulating a query parameter. The report was accepted, and I received a <strong>$300 bounty</strong>.</p><h3>Discovery</h3><p>While testing the voucher related APIs, I noticed the endpoint below returned different responses depending on the value of the userMode_eq parameter.</p><pre>GET /tickets/v1/612?membershipId_eq=887c3dd6-02d1-4b4b-9714-b85d80629d9e&amp;userMode_eq=2 HTTP/2<br>Host: target.com</pre><p>The server responded with:</p><pre>{<br>  &quot;code&quot;: 400,<br>  &quot;errorCode&quot;: 5001,<br>  &quot;errorMessage&quot;: &quot;This voucher is not applicable to you&quot;,<br>  &quot;data&quot;: null,<br>  &quot;success&quot;: true<br>}</pre><p>At first glance, everything appeared to be working correctly because the API denied access to the voucher.</p><h3>Testing the Parameter</h3><p>Instead of changing the voucher ID or membership ID, I focused on the userMode_eq parameter.</p><p>I changed:</p><pre>userMode_eq=2</pre><p>to</p><pre>userMode_eq=</pre><p>The modified request became:</p><pre>GET /tickets/v1/612?membershipId_eq=887c3dd6-02d1-4b4b-9714-b85d80629d9e&amp;userMode_eq= HTTP/2<br>Host: target.com</pre><p>Surprisingly, the API no longer rejected the request. Instead, it returned <strong>HTTP 200</strong> along with the complete voucher information.</p><h3>Information Disclosed</h3><p>The response exposed data that should only be available to authorized users, including:</p><ul><li>Voucher title</li><li>Voucher description</li><li>Redemption instructions</li><li>Expiry dates</li><li>Voucher amount</li><li>Redemption limits</li><li>Voucher image URL</li><li>Voucher status</li><li>Additional voucher metadata</li></ul><p>Although this did not allow voucher redemption, it clearly demonstrated that the authorization check could be bypassed simply by manipulating a client-controlled parameter.</p><h3>Issue</h3><p>The backend trusted the value of userMode_eq when determining whether the user was authorized to access the voucher.</p><p>When the parameter was empty (or omitted in certain cases), the authorization validation was skipped, allowing the API to disclose information that should have remained protected.</p><p>Authorization decisions should always be enforced on the server and must never depend on client-supplied parameters.</p><h3>Impact</h3><p>This issue resulted in an authorization bypass that exposed voucher information intended only for eligible users.</p><p>An attacker could enumerate voucher details and collect sensitive promotional information without meeting the required eligibility checks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb9b560d1924" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Turned One Admin Account Into a Full Org Takeover]]></title>
            <link>https://ameensec.medium.com/how-i-turned-one-admin-account-into-a-full-org-takeover-67f37c19a877?source=rss-a7cd01cd7f47------2</link>
            <guid isPermaLink="false">https://medium.com/p/67f37c19a877</guid>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <dc:creator><![CDATA[ameensec]]></dc:creator>
            <pubDate>Sun, 21 Jun 2026 09:57:14 GMT</pubDate>
            <atom:updated>2026-06-21T09:57:14.194Z</atom:updated>
            <content:encoded><![CDATA[<p>Note: The target’s name has been withheld and replaced with example.com, since this report is still under responsible disclosure / private to the program.</p><h3>Summary</h3><p>Normally, if you are an Admin on this platform, the UI does <strong>not</strong> let you touch another Admin’s account. You cannot downgrade them. You cannot delete them. This is by design admins are supposed to be protected from each other.</p><p>But the protection only existed on the <strong>frontend (UI)</strong>. The <strong>backend API</strong> had no such check.</p><p>This meant any Admin could:</p><ol><li>Call the API directly and downgrade another Admin to a lower role (like DEVELOPER)</li><li>Once downgraded, that “ex-admin” became a normal, deletable member</li><li>Delete them through the normal UI — no extra hacking needed for this last step</li></ol><h3>Notice the UI is blocking something</h3><p>I added a new member and gave them the ADMIN role. Once they were an Admin, I checked the UI:</p><ul><li>No “Downgrade” option</li><li>No “Delete” option</li></ul><p>Good — that’s expected behavior. Admin accounts should be protected.</p><p>But here’s the thing every bug hunter should remember: <strong>a button being hidden or disabled in the UI does not mean the backend actually blocks the action.</strong> UI restrictions are often just cosmetic. The real test is to check the API directly.</p><h3>Grab the member’s ID</h3><p>When I added the new Admin, the API response (from the AddMember call) returned the full member object, including their unique ID</p><pre>{<br>  &quot;id&quot;: &quot;11111111-aaaa-bbbb-cccc-222222222222&quot;,<br>  &quot;role&quot;: &quot;ADMIN&quot;,<br>  &quot;status&quot;: &quot;ACTIVE&quot;<br>}</pre><p>That ID is the key. With it, I can reference this specific user directly in other API calls — bypassing whatever the UI is or isn’t showing me.</p><h3>But wait, how do you get the original Admin’s ID?</h3><p>During triage, the program asked a fair question: the example above shows me getting the ID of an admin I <em>just invited myself </em>but the real risk is being able to attack the <strong>original/existing Admin</strong>, someone I didn’t invite and shouldn’t know the ID of. So where does that ID come from?</p><p>Turns out the application leaks it for free. Any authenticated Admin (even a brand-new one) can call this query to list every member of the organization</p><pre>{<br>  &quot;operationName&quot;: &quot;GetOrganizationMembersQuery&quot;,<br>  &quot;variables&quot;: { &quot;status&quot;: &quot;ACTIVE&quot; },<br>  &quot;query&quot;: &quot;query GetOrganizationMembersQuery($status:MemberStatusFilter){organization{availableMemberRoles name members(status:$status){email id lastAccessTimestamp name role status __typename}__typename}}&quot;<br>}</pre><p>The response includes <strong>every</strong> member, including every Admin — full email, role, status, and most importantly, their internal id</p><pre>{<br>  &quot;email&quot;: &quot;redacted@example.com&quot;,<br>  &quot;id&quot;: &quot;a5bc6f2a-bf3d-41ee-9c0a-5c0e42d55205&quot;,<br>  &quot;role&quot;: &quot;ADMIN&quot;<br>}</pre><p>So the real attack chain is:</p><ol><li>Get invited as a brand-new Admin (or already be one)</li><li>Call GetOrganizationMembersQuery instantly get the ID, email, and role of <strong>every</strong> Admin in the org, including the original/founding Admin</li><li>Use that ID in the UpdateMember mutation from Step 3 to downgrade the original Admin</li><li>Delete them through the UI, now that they’re “just” a Developer</li></ol><p>This closes the gap: the original Admin never has to do anything, and the attacking Admin never has to guess or brute-force an ID — the API hands it over directly in a normal members-list call.</p><h3>Try the downgrade directly via the API</h3><p>The application uses GraphQL on the backend. I crafted a manual request to the UpdateMember mutation, targeting that same Admin&#39;s ID, and tried to change their role to DEVELOPER</p><pre>{<br>  &quot;operationName&quot;: &quot;UpdateMember&quot;,<br>  &quot;variables&quot;: {<br>    &quot;id&quot;: &quot;11111111-aaaa-bbbb-cccc-222222222222&quot;,<br>    &quot;updates&quot;: { &quot;role&quot;: &quot;DEVELOPER&quot; }<br>  },<br>  &quot;query&quot;: &quot;mutation UpdateMember($id:String!$updates:UpdateMemberInput!){updateMember(id:$id updates:$updates){id email role}}&quot;<br>}</pre><p>I expected this to fail. It didn’t.</p><p><strong>Server response</strong></p><pre>{<br>  &quot;data&quot;: {<br>    &quot;updateMember&quot;: {<br>      &quot;id&quot;: &quot;11111111-aaaa-bbbb-cccc-222222222222&quot;,<br>      &quot;role&quot;: &quot;DEVELOPER&quot;<br>    }<br>  }<br>}</pre><p>The backend happily downgraded a fellow Admin’s role — even though the UI was specifically built to prevent exactly this.</p><h3>Confirm full takeover is possible</h3><p>Once the role changed to DEVELOPER, I went back to the UI. The same account that was &quot;protected&quot; two minutes ago now showed a normal &quot;Delete&quot; button, because as far as the UI was concerned, this was just a regular Developer now — not an Admin.</p><p>I deleted the account.</p><p>No errors. No extra checks. The account that was supposed to be protected was gone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3dU0JY9nXvjCPOxywc-nQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67f37c19a877" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Got $150 in a Bug Bounty Program]]></title>
            <link>https://ameensec.medium.com/how-i-got-150-in-a-bug-bounty-program-998e2c1cdb7b?source=rss-a7cd01cd7f47------2</link>
            <guid isPermaLink="false">https://medium.com/p/998e2c1cdb7b</guid>
            <dc:creator><![CDATA[ameensec]]></dc:creator>
            <pubDate>Sat, 24 Aug 2024 15:27:36 GMT</pubDate>
            <atom:updated>2024-08-24T15:27:36.649Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of cybersecurity, finding bugs and vulnerabilities can be both exciting and rewarding. I recently participated in a bug bounty program and earned $150. Here’s how I did it.</p><h4>1. Domain Enumeration: The First Step</h4><p>The first step in my journey was domain enumeration. I used a tool called <strong>Sublist3r</strong> to find subdomains. By running the command sublister -u example.com, I discovered several subdomains associated with the main domain. I randomly chose one subdomain to focus on.</p><h4>2. Learning About Web Application Security</h4><p>After selecting the subdomain, I started learning more about web application security. Web applications are often the target of various attacks, so understanding the common vulnerabilities is crucial. I researched different types of attacks like SQL injection, Cross-Site Scripting (XSS), and others, to prepare myself for testing the subdomain.</p><h4>3. Attempting Cross-Site Scripting (XSS)</h4><p>With my newly acquired knowledge, I attempted to exploit the subdomain using Cross-Site Scripting (XSS), a common web vulnerability. XSS allows an attacker to inject malicious scripts into webpages viewed by other users. However, when I checked the source code, I was shocked to find that the XSS was not working. It seemed like the website had implemented measures to prevent such attacks.</p><h4>4. Discovering User Information Disclosure</h4><p>While exploring the source code further, I stumbled upon something unexpected — a user information disclosure vulnerability. This type of vulnerability occurs when sensitive user data, such as email addresses or phone numbers, is unintentionally exposed. I realized that this was a significant security issue that could potentially be exploited by malicious actors.</p><h4>5. Reporting the Bug and Getting Rewarded</h4><p>Without wasting any time, I reported the user information disclosure vulnerability to the responsible organization through their bug bounty program. After verifying the issue, they awarded me $150 for my discovery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*-qhs1A7Bf3uINNBNY2--Hw.png" /></figure><h4>Conclusion</h4><p>Participating in bug bounty programs can be a great way to sharpen your cybersecurity skills and earn some extra money. My experience taught me that sometimes, when one door closes, another one opens — just like how finding a user information disclosure vulnerability led to my reward, even when my initial XSS attempt failed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=998e2c1cdb7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>