<?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 zeroxdtd on Medium]]></title>
        <description><![CDATA[Stories by zeroxdtd on Medium]]></description>
        <link>https://medium.com/@zeroxdtd?source=rss-2cc32da6c49f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BOpjCepV-I3SouQ4JyyO_A.jpeg</url>
            <title>Stories by zeroxdtd on Medium</title>
            <link>https://medium.com/@zeroxdtd?source=rss-2cc32da6c49f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 09:51:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zeroxdtd/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[SANS Offensive CTF — JavaScript☕::001–004]]></title>
            <link>https://infosecwriteups.com/sans-offensive-ctf-javascript-001-004-8737ad95c617?source=rss-2cc32da6c49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8737ad95c617</guid>
            <category><![CDATA[offensive]]></category>
            <category><![CDATA[şans]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[zeroxdtd]]></dc:creator>
            <pubDate>Fri, 15 Mar 2024 12:40:46 GMT</pubDate>
            <atom:updated>2024-08-20T07:01:30.521Z</atom:updated>
            <content:encoded><![CDATA[<h3>SANS Offensive CTF — <strong>JavaScript☕::001–004</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2FP0s7rX30lrQqYpDpHsvw.png" /></figure><blockquote>S<strong>ummary:</strong></blockquote><p>This writeup showcases some instances of JavaScript acting strangely. JavaScript is renowned for being a quirky and challenging language, often unpredictable and frustrating. Let’s explore some of the bizarre behaviors that can make us feel like pulling our hair out.</p><blockquote><strong>JavaScript Stage 001:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAS8Oy1asFF3yUpFRIh2gw.png" /><figcaption>Code — 1</figcaption></figure><p><strong>Explanation: </strong>In order to trigger the execution of the code block within the if statement and receive the flag, you would need to provide a value for the password field in the request body that satisfies the condition “b” + “a” + +”a” + “a”.</p><p>Let’s break down the expression again:</p><ul><li>“b” is a string literal containing the character ‘b’.</li><li>“a” is a string literal containing the character ‘a’.</li><li>+”a” is attempting to convert the string “a” to a number, but since the string is not a valid number, it will result in NaN (Not a Number).</li></ul><p><strong>Solution: </strong>So the expression “b” + “a” + +”a” + “a” evaluates to “baNaNa”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VhT3qO13Qs2kAQXR" /><figcaption>Flag — 1</figcaption></figure><blockquote><strong>JavaScript Stage 002:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V9Wyio9MOdiiWmWF" /><figcaption>Code — 2</figcaption></figure><p><strong>Explanation: </strong>Here the values are in string, using parseFloat() to convert the strings to floating point numbers and assigning the result to the variable val.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*3gCzoChaWGZE3gKN" /></figure><p><strong>Solution: </strong>The password value is “0.30000000000000004”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1jYK1wH82iFI58ng" /><figcaption>Flag — 2</figcaption></figure><p><strong>###Fun:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*jxdwbN-7qxv0833V32iFfA.png" /><figcaption>Frustated JS Developer</figcaption></figure><blockquote><strong>JavaScript Stage 003:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sPa5ZHjAt-LxmrmI" /><figcaption>Code — 3</figcaption></figure><p><strong>Explanation: </strong>This JavaScript code might seem a bit cryptic due to its use of type coercion and implicit conversions.</p><p>Let’s break it down step by step:</p><ul><li>([] + {})[+!![]] evaluates to “ “[1], which is “o”.</li><li>(![] + {})[+!![] + [+[]]] evaluates to “ “[10], which is “c”.</li><li>((!![] + [])[+[]]) evaluates to “t”.</li><li>([] + {})[+!![]] evaluates to “ “[1], which is “o”.</li><li>(![] + {})[+!![] + [+[]]] evaluates to “ “[10], which is “c”.</li><li>(![] + [])[+!![]] evaluates to “a”.</li><li>((!![] + [])[+[]]) evaluates to “t”.</li></ul><p>Finally, concatenate all these characters together: “o” + “c” + “t” + “o” + “c” + “a” + “t” = “octocat”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*m_v06xyS5E8OU51s" /></figure><p><strong>Solution: </strong>The password value is “octocat”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R7PfbAtdALIllN-o" /><figcaption>Flag — 3</figcaption></figure><p><strong>Refference:</strong></p><ul><li><a href="https://dev.to/codeofrelevancy/unexpected-moments-of-javascript-that-will-challenge-your-understanding-of-the-language-4834">Unexpected Moments of JavaScript That Will Challenge Your Understanding of the Language</a></li><li><a href="https://levelup.gitconnected.com/11-unmentioned-wtf-moments-in-javascript-that-will-shock-you-9b654577dce3">11 Unmentioned WTF Moments In JavaScript That Will Shock You</a></li></ul><blockquote><strong>JavaScript Stage 004:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*_ZCH3lgLQhZk827N" /><figcaption>Code — 4</figcaption></figure><p><strong>Explanation: </strong>JavaScript’s type coercion is the automatic conversion of values from one data type to another. It happens when JavaScript expects a certain type of data, but it receives a different type. Type coercion can sometimes lead to unexpected behavior or vulnerabilities if not handled properly.</p><p>In the context of the provided code, the following line is crucial:</p><pre>let dayOfWeek = Math.abs(parseInt(days) % 7);</pre><p>Here’s how this line works:</p><ul><li>`parseInt(days)`: This attempts to parse the days variable as an integer. If `days` is not a string representing a valid integer, `parseInt` will return `NaN` (Not-a-Number).</li><li>`Math.abs()`: This function returns the absolute value of a number. It ensures that the number passed to it is positive.</li><li>`% 7`: This is the modulo operation, which calculates the remainder of dividing the number by 7.</li></ul><p>Now, let’s consider how type coercion could be exploited in this scenario:</p><ul><li>If a very large or very small number (outside the range of representable integers in JavaScript) is passed as the value of `days`, the `parseInt()` function may return `NaN` due to overflow or underflow.</li><li>When `% 7` is performed on `NaN`, it will result in `NaN` because any arithmetic operation involving `NaN` yields `NaN`.</li><li>Therefore, by sending a very large or very small number that causes an overflow or underflow during parsing, an attacker could exploit the code to make `dayOfWeek` become `NaN`. This would lead the execution flow to the `default` case in the `switch` statement, where day is assigned the value “Payday”. As a result, the server would respond with the flag associated with the “Payday” case.</li></ul><p>This demonstrates how improper handling of type coercion and numeric operations in JavaScript can lead to unexpected behavior and security vulnerabilities. It’s crucial to validate and sanitize user inputs to prevent such exploits.</p><p><strong>Solution: {“</strong>days”:1.7976931348623157E+10308}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lSIvlCzg0wZvVKfW" /><figcaption>Flag — 4</figcaption></figure><blockquote><em>A</em><strong><em>uthors:</em></strong><em> </em><a href="https://twitter.com/_0xPb"><em>0xPb</em></a><em>, </em><a href="https://www.linkedin.com/in/danielthotapalli/"><em>zeroxdtd</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/0*2CSvwSfv-Zfmm5Ei" /></figure><h3>Thanks for Reading🫠 !!!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8737ad95c617" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/sans-offensive-ctf-javascript-001-004-8737ad95c617">SANS Offensive CTF — JavaScript☕::001–004</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Journey through Reconnaissance to MySQL Server Access in the Gaming Realm]]></title>
            <link>https://medium.com/@zeroxdtd/a-journey-through-reconnaissance-to-mysql-server-access-in-the-gaming-realm-ce6a6f4eb21c?source=rss-2cc32da6c49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce6a6f4eb21c</guid>
            <category><![CDATA[fuzzing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[reconnaissance]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[zeroxdtd]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 21:22:15 GMT</pubDate>
            <atom:updated>2024-08-20T07:00:28.116Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Infosec, I will share a few recon techniques which landed me to MySQL Server. It’s all about extensive reconnaissance and observation of application errors via file upload functionality.</p><p>Tools &amp; Resources used:<br> — <a href="https://github.com/maurosoria/dirsearch">dirsearch</a><br> — <a href="https://www.shodan.io/dashboard">Shodan</a><br> — Recon Mindset to FUZZ everything.</p><p>This target program is deeply passionate about video gaming and consoles, and of course, it is a private program.</p><p>So, deep diving into the Shodan search engine, searching for Target subdomains using ssl:“*.target.*” and filtering the passively collected information by using the “http.title” feature, which allows us to select based on common and unique ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Txfu3lNWILPne5wyMpxQlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHyp1sAb9OT5-jq0J_suzg.png" /></figure><p>Found the page ‘Apache Default’ showing up, and did a dirsearch with extended extensions for better fuzzing.</p><p><em>Note: A normal wordlist and default extensions contain ~11k words to brute force; if you use extended extensions, it will increase to ~34k, a HUGE difference, right! Hell yeah! Don’t forget to use the deep-recursive option too.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6lC6FZFdkOUqguvvZ_gBjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8sBzWAL7hJANboXAfLRxBA.png" /></figure><p>After a while, it showed me the path as “/web/admin.py,” which led to testing the file upload functionality that allows only CSV files. I thought of giving CSV injection into the database, but couldn’t upload it successfully because of no initial param value that can be detected by CSV-to-DB parsing logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tKqUJdDC2nMhMsetOWQHWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*SurYF_nZUUerTgwTYrfX3g.png" /></figure><p>Here looks suspicious because when I tried to upload the CSV file, it threw the absolute path of “admin.py,” and it turns out to be in “/var/www/html/tkweb/admin.py,” but it should be “/var/www/html/web/admin.py,” not “tkweb/admin.py.”</p><p>I Fuzzed up again there and got the same response code and response size. I copied the 200 status code path, which led to the download of the source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*SyVoyYQuSOfP3uenVdnrmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*XrOb6GrzzVIguVYZroHbcA.png" /></figure><p>In there, I found the MySQL username and password in plaintext… damn!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*d9JjuGPF7OTVzd9H6UWdyA.png" /></figure><p>Opened up another terminal and did a Port scan, and found out that port 3306 is open. But does the creds work?</p><p>Tested the creds with the following command and successfully connected to the MySQL server.</p><pre>mysql -h &lt;IP&gt; -u &lt;username&gt; -p</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*pBfbIPbWZ8eoLUOhtEhSQQ.png" /></figure><p>After this, I was not able to do any enumeration and chaining of vulnerabilities because the running MySQL version is the latest version.</p><p>Right after i reported this thing, the program <strong>resolved</strong> my issue within 2hrs by taking down host and <strong>no bounty </strong>as it was <strong>OOS domain</strong> and no sensitive information was found on mysql server. With all my observations i can say that they were using that server to re-develop the game.</p><p>I Hope you enjoyed my findings and you learned something from this writeup.</p><p>My Twitter Profile : <a href="https://x.com/zeroxdtd/">@zeroxdtd</a></p><p>LinkedIn : <a href="https://www.linkedin.com/in/danielthotapalli/">https://www.linkedin.com/in/danielthotapalli/</a></p><p>Share &amp; Care.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce6a6f4eb21c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extracting iOS IPA files Without Jailbreaking…!]]></title>
            <link>https://medium.com/@zeroxdtd/extracting-ios-ipa-files-without-jailbreaking-6e7ee8e57ad7?source=rss-2cc32da6c49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e7ee8e57ad7</guid>
            <category><![CDATA[methodology]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[zeroxdtd]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 10:40:09 GMT</pubDate>
            <atom:updated>2024-08-16T06:12:51.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_NWIlU8nAulT8qRTDfCXQ.jpeg" /></figure><p>Hello everyone, I am Daniel aka <a href="https://twitter.com/dhanush1895">dhanush1895</a>. In this article, you can know the path of extracting IPA files from iPhone device without Jailbreaking.<br>All you need is icloud account credentials.</p><p>Tools required :</p><ul><li>iPhone Device (Any latest version which supports the apps)</li><li>imazing software downloaded and installed on PC (<a href="https://imazing.com/download">https://imazing.com/download</a>)</li><li>Your AppleID to authenticate the server using imazing</li></ul><p><em>Note: Install apple itunes before the whole process</em></p><p>I have shared this on my Twitter — <a href="https://x.com/zeroxdtd">@zeroxdtd</a></p><h3>dhanush1895 on Twitter: &quot;Extraction of IOS App into (dot)ipa file without mac &amp; jailbreaking idevice#bugbountytip #ios #pentest #ios_pentesting pic.twitter.com/DXhEkR3Ye9 / Twitter&quot;</h3><p>Extraction of IOS App into (dot)ipa file without mac &amp; jailbreaking idevice#bugbountytip #ios #pentest #ios_pentesting pic.twitter.com/DXhEkR3Ye9</p><p>Hope you liked the method</p><p>Share &amp; care</p><p>#ios #bugbounty #hacking #pentesting #methodology</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e7ee8e57ad7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>