<?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 Day0x0f on Medium]]></title>
        <description><![CDATA[Stories by Day0x0f on Medium]]></description>
        <link>https://medium.com/@dayviddias7?source=rss-24b5929d7632------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oUSLnifdzYYTwmXsPu3Ygw.webp</url>
            <title>Stories by Day0x0f on Medium</title>
            <link>https://medium.com/@dayviddias7?source=rss-24b5929d7632------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:48:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dayviddias7/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[Tryhackme Write-up: Corp Website (Romance and Co) 2026]]></title>
            <link>https://medium.com/@dayviddias7/tryhackme-write-up-corp-website-romance-and-co-2026-63c97a11cf9c?source=rss-24b5929d7632------2</link>
            <guid isPermaLink="false">https://medium.com/p/63c97a11cf9c</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[web-app-pentesting]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Day0x0f]]></dc:creator>
            <pubDate>Wed, 08 Apr 2026 21:25:12 GMT</pubDate>
            <atom:updated>2026-04-08T21:25:12.468Z</atom:updated>
            <content:encoded><![CDATA[<p>Challenge: <a href="https://tryhackme.com/room/lafb2026e7">Corp Website</a><br>Category: Web<br>Difficulty: Medium</p><h3>🧠 Introduction</h3><p>In this room, the objective was to identify vulnerabilities in a target machine and ultimately gain root access. The challenge initially appeared simple, but required careful enumeration and a shift in approach to uncover the real attack vector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*O88eFl4XDtps6rCmH3cQyw.png" /></figure><p>I began by accessing the web application running on <strong>port 3000</strong>, as indicated in the room instructions. At first glance, the site appeared to be completely static, with no obvious input fields or dynamic behavior to exploit.</p><p>To expand my visibility, I conducted a full network scan using <strong>Nmap</strong>:</p><pre>nmap -sS -sV -A -v &lt;target&gt; &gt; nmap.txt</pre><p>This scan helped identify open ports, running services, and potential entry points for further testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TNpz1csRLur1Scb0tEFvCA.png" /></figure><h3>🌐 Directory &amp; Subdomain Fuzzing</h3><p>Next, I attempted to discover hidden endpoints and subdomains using common tools:</p><ul><li><strong>Gobuster</strong></li><li><strong>Amass</strong></li><li><strong>Subfinder</strong></li></ul><p>Despite thorough fuzzing, no useful directories or subdomains were identified. At this point, traditional enumeration techniques were not yielding results.</p><h3>⚙️ Identifying the Technology Stack</h3><p>Upon closer inspection of the web application, I noticed that it was built using <strong>Next.js</strong>. This was a key turning point, as it allowed me to focus on framework-specific vulnerabilities.</p><p>I proceeded to run a vulnerability scan using <strong>Nuclei</strong>:</p><pre>nuclei -u http://&lt;target&gt;:3000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*B2MOrpxOgUKjl9A5kDOMJA.png" /></figure><p>During the scan, one result stood out:</p><blockquote><a href="https://nvd.nist.gov/vuln/detail/CVE-2025-55182"><strong><em>CVE-2025–55182</em></strong></a><strong><em> — Potential Remote Code Execution (RCE)</em></strong></blockquote><p>After researching this vulnerability, I found that it could be exploited via a crafted <strong>POST request with a </strong><a href="https://ankur-gautam.gitbook.io/writeups/cve/react2shell-cve-2025-55182"><strong>malicious JSON payload</strong></a>.</p><h3>🎯 Exploiting the RCE</h3><p>Using <strong>Burp Suite</strong>, I intercepted a request and modified it as follows:</p><ul><li>Changed the HTTP method to <strong>POST</strong></li><li>Injected the malicious JSON payload into the request body</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LYVAZKh4dVhibyQ2aVLrRw.png" /></figure><p>After sending the request, I successfully achieved <strong>Remote Code Execution</strong> on the target.</p><p>✅ At this stage, I was able to retrieve the <strong>initial flag</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnatSEISf52x1p4A52anDQ.png" /></figure><h3>🐚 Gaining a Reverse Shell</h3><p>To move into post-exploitation, I established a reverse shell.</p><p>First, I started a listener on my machine:</p><pre>nc -lnvp 1337</pre><p>Then, I executed a reverse shell payload via the RCE using Burp Suite. This granted me interactive shell access to the target system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qlhviZKHgTjm0Lu9x2jCwg.png" /></figure><h3>🔐 Privilege Escalation</h3><p>With a foothold on the machine, I began enumerating privileges:</p><pre>sudo -l</pre><p>The output revealed that the current user could execute:</p><pre>/usr/bin/python3</pre><p>with <strong>sudo privileges</strong> and no password required.</p><h3>⚡ Exploiting Sudo Misconfiguration</h3><p>This misconfiguration allowed for an easy privilege escalation. I executed:</p><pre>sudo python3 -c &#39;import os; os.system(&quot;/bin/ash&quot;)&#39;</pre><p>This spawned a root shell, giving me full control over the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BtJ2eneeEDzny-CyvQqT4g.png" /></figure><h3>🏁 Capturing the Final Flag</h3><p>With root access obtained, I navigated to:</p><pre>/root/root.txt</pre><p>and successfully retrieved the <strong>final flag</strong>.</p><h3>🎉 Conclusion</h3><p>This room highlights a few key lessons:</p><ul><li>Don’t rely solely on traditional fuzzing — understanding the <strong>technology stack</strong> is crucial</li><li>Framework-specific vulnerabilities (like those in <strong>Next.js</strong>) can be highly impactful</li><li>Misconfigured <strong>sudo permissions</strong> remain a common and critical privilege escalation vector</li></ul><p>By combining enumeration, vulnerability research, and exploitation, we were able to fully compromise the system.</p><h3>🧩 Key Takeaways</h3><ul><li>Always identify the <strong>framework and technologies</strong> in use</li><li>Use tools like <strong>Nuclei</strong> to detect known vulnerabilities quickly</li><li>Validate findings manually using tools like <strong>Burp Suite</strong></li><li>Check <strong>sudo permissions</strong> early during post-exploitation</li></ul><p>💡 <em>Thanks for reading! If you enjoyed this writeup, consider sharing or following for more cybersecurity content.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63c97a11cf9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>