<?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 wh0am1 on Medium]]></title>
        <description><![CDATA[Stories by wh0am1 on Medium]]></description>
        <link>https://medium.com/@olione612?source=rss-4457e7bff635------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*k91cmpnaBACYxuBooisD5g.gif</url>
            <title>Stories by wh0am1 on Medium</title>
            <link>https://medium.com/@olione612?source=rss-4457e7bff635------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 02:21:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olione612/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[Uncle rat xss ratpack park BAC and IDOR labs writeup]]></title>
            <link>https://medium.com/@olione612/ratpackpark-4135a5de69a7?source=rss-4457e7bff635------2</link>
            <guid isPermaLink="false">https://medium.com/p/4135a5de69a7</guid>
            <dc:creator><![CDATA[wh0am1]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 15:37:38 GMT</pubDate>
            <atom:updated>2026-06-19T09:56:51.724Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Welcome to the practice site of uncle rat where we will learn about Broken Access Control and Insecure Direct Object Reference.</p><h4>1. Broken Access Control:</h4><p>Simply, Broken Access Control means that when a system does not do appropriate checking concerning what a user has to do.</p><p>Imagine it is a building, and everybody has the ability to go into any door since the locks do not work.<br>In websites or applications, this is:</p><p>A user is able to access pages that he or she should not have access to. An ordinary user will be able to do the actions of an administrator. One is able to view or alter the data of some other person.</p><p>Why it’s bad:<br>It allows attackers to access or modify information with permission.</p><p>Example:<br>An average user can access /admin and all of a sudden he/she can access administration functions as the system does not check his/her role.</p><p><a href="http://ratpackpark.thexssrat.com/register.php">Start Your Trial * RatPack Park</a></p><p><strong>Step 1: </strong>First of all sign up for the account.</p><figure><img alt="Register for this account to test broken access control and insecure object direct reference by creating mutiple accounts." src="https://cdn-images-1.medium.com/max/455/1*qejW22FWMtpeECQPRzBIFg.png" /><figcaption>sign up page for account</figcaption></figure><p><strong>Step 2: </strong>Now, go to the module and click on settings, there you will see the user management and ticket types. Right now, click on user management to test account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*UK6-mPKE_kquUaQfC6itnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*APyr2yWM_vv-SqDS4mTjbA.png" /><figcaption>creating a new user</figcaption></figure><p><strong>Step 3</strong>: Likewise, i have created around 4 account in admin account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fC2SvktwH63I42k7PioVNg.png" /><figcaption>created user</figcaption></figure><p><strong>Step 4:</strong> Now, go to the ticket types and also give normal ticket and VIP ticket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*uMi3FiIxFq8cLnYXAy_guw.png" /><figcaption>Creating a ticket types</figcaption></figure><p><strong>Step 5:</strong> Now, go the My Roster Module for creating a shift for the account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*Esx9E6GR2YYk48ScsocwMw.png" /><figcaption>creating a shift time</figcaption></figure><p><strong>Step 6: </strong>Now, you can see my normal ticket has changed from 20 to 99 because i have tested this in burpsuite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*PsWijH_899-ud8HSqU6G9A.png" /><figcaption>changing quantity</figcaption></figure><h3>Why changing quantity to –100 works (Explained in Points)</h3><h4>1. The website only checks inputs in the browser</h4><ul><li>Many sites use JavaScript to prevent invalid values (like negative numbers).</li><li>These checks are <em>client‑side only</em>, meaning they can be bypassed.</li></ul><h4>2. Burp Suite bypasses the browser completely</h4><ul><li>Burp edits the request <em>before</em> it reaches the server.</li><li>This avoids all browser‑side validation.</li><li>The server receives whatever value you send — even if it’s invalid</li></ul><h4>3. The server isn’t validating the data</h4><p>A secure backend should verify the input <strong>after</strong> it arrives.<br> In this case, it’s <em>not checking</em> whether the number:</p><ul><li>Is actually valid</li><li>Is positive</li><li>Falls within allowed limits</li></ul><p>Because no server‑side rule blocks it, the value slips through.</p><h4>4. The backend trusts the client too much</h4><ul><li>The application assumes the data must be correct because it came from the user’s browser.</li><li>This is flawed logic — users can modify data easily using tools.</li><li>As a result, the server processes something like:</li></ul><pre>quantity = -100</pre><h4>5. The application displays what it receives</h4><ul><li>Since the system didn’t reject or sanitize the input,</li><li>It stores it or uses it in calculations,</li><li>And displays it back on the site.</li></ul><h4>6. This is a logic flaw + poor access and data validation</h4><ul><li>It’s related to insecure input validation.</li><li>It can also fall under broken access control or business logic flaws because users can perform actions the system shouldn’t allow.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*h2d1O_Xy7MmaRaC3aU_ATg.png" /><figcaption>Available ticket types</figcaption></figure><p>Step 7: Now, Reporting an incident filling form and submitted form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*ffPWelwP4jVh-nhKoirZ3g.png" /><figcaption>Reporting an inciden</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*j3R5N6xT7Rr1sFZoUyWM3g.png" /><figcaption>Submitted reports</figcaption></figure><p>Now, here I log out from my admin account and login to another user damsure2 account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*f7Kh94aAivRNLnL6KRdrXQ.png" /><figcaption>login to another account</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*ltfIaHhT_KUQxv3Sp1URLQ.png" /><figcaption>Assigning role damsure3 to ticket_sales</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*6_ZVY70xVjdg14TiCqsTEw.png" /><figcaption>User created with roles</figcaption></figure><p><strong>Step 8: </strong>I have used burpsuite here and in tickets.php i have my admin sessionid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*6k6WWBnQ9ITxiN6KNL6pGQ.png" /><figcaption>admin php sessionid</figcaption></figure><p>admin account session id:</p><p>239adcddbd15e32644e7d6af569c72ce</p><p>Step 9: here i login to again admin account and Now, again creating a new test account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*jp8eQ3xPTouHRetLfhFD2g.png" /><figcaption>Create again a new user</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSNO2fqqnn4tgGwaO9vFYg.png" /><figcaption>test again account creating again a new user</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aynUdI4ByZcJKWWnzhjWMw.png" /><figcaption>Again creating admin account on that damsure as admin</figcaption></figure><p>Now part of IDOR start from here</p><h4>Insecure Object Direct Reference:</h4><p>Broken access control is also known as IDOR.It occurs when the application shows some identifier (such as a number or ID), and trusts it without investigating whether the user is authorized to use it.</p><p>Example:</p><p><a href="https://example.com/profile?user_id=123">https://example.com/profile?user_id=123</a></p><p>When you replace 123 with 124 and you can now view the profile of another user, then that is an IDOR.</p><p>Why it happens:<br>The system merely verifies “is this ID a valid ID?<br>It does not inquire of whether this user is authorized to read this ID.</p><p><strong>Step 1:</strong> First of all, i will start creating a new admin account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*OrVs07_O52qYy53hbE3m_g.png" /><figcaption>new admin account</figcaption></figure><p>new admin account cookie <br>0c911246519b0b62643fb731c5113247</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*6k6WWBnQ9ITxiN6KNL6pGQ.png" /><figcaption>Another admin account phpsessionid</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*xXnZDcxn6iDU33nLcccOFQ.png" /><figcaption>changing admin phpsessionid with another admin account</figcaption></figure><p>here i have change the admin account of damsure to new admin account phpsession id as you can see in the image. here, i complete the IDOR testing.</p><p>Don’t be confuse here, i have just only add the phpsessionid of damsure admin account to another admin account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VW27-batTqWZvGstseRIlA.png" /><figcaption>Changing phpsessionid</figcaption></figure><p>Now It’s completed.</p><p>Lastly, I want to thank uncle rat for providing this lab for practicing Broken Access Control and Insecure Direct Object Reference.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4135a5de69a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>