<?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 Khushalgurav on Medium]]></title>
        <description><![CDATA[Stories by Khushalgurav on Medium]]></description>
        <link>https://medium.com/@khushalgurav128?source=rss-a8c67405655f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Jp990XBpWeBsZ2g1</url>
            <title>Stories by Khushalgurav on Medium</title>
            <link>https://medium.com/@khushalgurav128?source=rss-a8c67405655f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 00:38:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khushalgurav128/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[Overshare CTF Writeup | Hacklido Root Quest]]></title>
            <link>https://medium.com/@khushalgurav128/overshare-ctf-writeup-hacklido-root-quest-136c1e214fdc?source=rss-a8c67405655f------2</link>
            <guid isPermaLink="false">https://medium.com/p/136c1e214fdc</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Khushalgurav]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 07:35:37 GMT</pubDate>
            <atom:updated>2026-11-30T07:35:37.705Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overshare | Hacklido Root Quest — From Anonymous FTP to Root Access</h3><p><em>Exploiting exposed credentials, insecure FTP configurations, and excessive sudo permissions in a Linux environment.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*icPXxsFGfX0IrvXAfbgEDg.jpeg" /></figure><p>Sometimes, gaining root access to a machine does not require a sophisticated exploit, a zero-day vulnerability, or a complicated payload. A few overlooked security misconfigurations can be enough to compromise an entire system.</p><p>In this writeup, I will walk through <strong>Overshare</strong>, a beginner-friendly Boot2Root challenge available on the Hacklido Learn platform.</p><p>The challenge demonstrates how insecure file sharing, improper credential management, and excessive user privileges can be chained together to achieve complete system compromise.</p><h3>Machine Overview</h3><p>InformationDetailsPlatformHacklido LearnMachineOvershareCategoryBoot to RootDifficultyEasyPoints100Operating SystemLinuxTarget IP10.10.0.3AccessFree</p><p><strong>Challenge Link:</strong> <a href="https://learn.hacklido.com/rootquest/overshare">https://learn.hacklido.com/rootquest/overshare</a></p><p><strong>Disclaimer:</strong> This walkthrough is intended for educational purposes. All security testing was performed within an authorized CTF environment.</p><h3>Attack Methodology</h3><p>The following methodology was used to compromise the machine:</p><ul><li>Service identification</li><li>Anonymous FTP enumeration</li><li>Sensitive file discovery</li><li>Credential extraction</li><li>Initial access through SSH</li><li>User flag discovery</li><li>Privilege escalation</li><li>Root flag discovery</li></ul><h3>1. Reconnaissance and Service Identification</h3><p>The first step in a penetration test is to understand the target system and identify its exposed services.</p><p>Nmap can be used to identify open ports and running service versions using the following command:</p><pre>nmap -sC -sV 10.10.0.3</pre><p>The two relevant services in this challenge were:</p><p>PortService21FTP22SSH</p><p>FTP is particularly interesting because an improperly configured FTP server may allow unauthenticated users to access sensitive files.</p><h3>2. Anonymous FTP Enumeration</h3><p>I started by connecting to the FTP service.</p><pre>ftp 10.10.0.3</pre><p>The server was running <strong>vsFTPd 3.0.5</strong>.</p><p>Instead of using a valid account, I attempted to authenticate using the anonymous username.</p><pre>Name: Anonymous<br>230 Login successful.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*czRXaCJPSelEvvXYvB6N5A.png" /></figure><p>The authentication was successful, confirming that anonymous FTP access was enabled.</p><p>Anonymous FTP allows users to access files without requiring an individual account. Although this functionality can be intentional, it becomes a security risk when sensitive files are stored in publicly accessible directories.</p><h3>3. Enumerating the FTP Directory</h3><p>After successfully logging in, I listed the available directories.</p><pre>ftp&gt; ls</pre><p>I discovered a directory named pub.</p><pre>ftp&gt; cd pub<br>ftp&gt; ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*fHGLya6uo-f3o4bxDuUPPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*1IB8q0BD-6K7DN3MBdHJDA.png" /></figure><p>Inside the directory, I discovered two interesting files:</p><ul><li>backup.txt</li><li>note.txt</li></ul><p>Backup files and internal notes are particularly valuable during penetration testing because they may contain configuration details, credentials, internal instructions, or other sensitive information.</p><h3>4. Downloading Sensitive Files</h3><p>I downloaded both files to my local machine for further analysis.</p><pre>ftp&gt; get backup.txt<br>ftp&gt; get note.txt<br>ftp&gt; exit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*hy-ZpEua9olWQRWK_RpPnw.png" /></figure><p>I then verified that both files had been successfully downloaded.</p><pre>ls</pre><p>The next step was to examine their contents.</p><h3>5. Sensitive Information Disclosure</h3><h3>Analyzing note.txt</h3><p>I first examined the internal note.</p><pre>cat note.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*OyKYlMR1OYkuNzh3LL7nrg.png" /></figure><p>The file contained an internal reminder from the IT team warning employees against storing server backups in the public FTP directory.</p><p>It also mentioned that credentials were not being rotated and that the issue had already been raised multiple times.</p><p>This was an important finding because it indicated that the organization was aware of the security weakness but had failed to remediate it.</p><h3>Analyzing backup.txt</h3><p>Next, I examined the backup file.</p><pre>cat backup.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*W5RxHp2-61PKk-bQchIMfw.png" /></figure><p>The file contained server access information, including:</p><ul><li>Service: SSH</li><li>Port: 22</li><li>Username: developer</li><li>Password: Exposed in plaintext</li></ul><p>Interestingly, the host address mentioned in the backup differed from the assigned target IP. I continued using the actual CTF target address.</p><p>The discovery of plaintext credentials in a publicly accessible backup file represents a serious information disclosure vulnerability.</p><p>At this stage, I had obtained credentials that could potentially provide initial access to the target machine.</p><h3>6. Gaining Initial Access Through SSH</h3><p>Using the credentials discovered in the backup file, I attempted to authenticate to the target machine through SSH.</p><pre>ssh developer@10.10.0.3</pre><p>After entering the recovered password, I successfully logged in as the developer user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*uNGnpzTz2Y3Wk-S648Le-w.png" /></figure><p>The target was running Ubuntu 22.04.5 LTS.</p><p>No brute-force attack or software exploit was required. The initial compromise was possible entirely because of improper credential storage and insecure file-sharing permissions.</p><h3>7. Capturing the User Flag</h3><p>After gaining initial access, I enumerated the user’s home directory.</p><pre>ls</pre><p>I discovered a file named user.txt.</p><pre>cat user.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*XHZyctjTJn9JsXmPQSJfkw.png" /></figure><p><strong>User flag: hackctf{REDACTED}</strong></p><p>The user flag confirmed successful initial access to the target machine.</p><p>However, the objective of a Boot2Root challenge is to achieve the highest level of privilege on the system.</p><h3>8. Linux Privilege Escalation</h3><p>After obtaining the user flag, I started checking for potential privilege escalation opportunities.</p><p>One of the first commands I use during Linux privilege escalation enumeration is:</p><pre>sudo -l</pre><p>This command displays the commands that the current user is permitted to execute through sudo.</p><p>The output revealed the following configuration:</p><pre>User developer may run the following commands:</pre><pre>(ALL) NOPASSWD: /usr/bin/su</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*FyQaaxfq08ujTDTM_4RrFQ.png" /></figure><p>This configuration was the key to gaining root access.</p><h3>Understanding the Misconfiguration</h3><p>The sudo rule contained three important components:</p><ul><li><strong>ALL:</strong> The command can be executed as any user.</li><li><strong>NOPASSWD:</strong> Password authentication is not required.</li><li><strong>/usr/bin/su:</strong> The permitted command can be used to switch users.</li></ul><p>Allowing an unprivileged user to execute su through sudo without restrictions effectively grants that user administrative access.</p><p>This violates the Principle of Least Privilege.</p><h3>9. Gaining Root Access</h3><p>Since the developer account was permitted to execute su through sudo, I ran:</p><pre>sudo su</pre><p>The command successfully provided a root shell.</p><p>I then navigated to the root directory.</p><pre>cd /root<br>ls</pre><p>Inside the directory, I discovered the root flag.</p><pre>cat root.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*JF4rTNCFavH2YiVT4GyZjQ.png" /></figure><p><strong>Root flag: hackctf{REDACTED}</strong></p><p>With both the user and root flags captured, the machine was fully compromised.</p><h3>10. Vulnerability Analysis</h3><p>The Overshare machine demonstrated how multiple security weaknesses can be combined to compromise an entire system.</p><p>VulnerabilitySecurity ImpactAnonymous FTP accessUnauthenticated access to filesPublicly accessible backupsSensitive information disclosurePlaintext credentialsCredential compromiseLack of credential rotationContinued exposure of valid credentialsExcessive sudo permissionsPrivilege escalationUnrestricted root accessComplete system compromise</p><p>Individually, these weaknesses may appear to be simple configuration mistakes. When combined, however, they create a complete attack chain from unauthenticated access to administrative control.</p><h3>11. Understanding the Attack Chain</h3><p>Anonymous FTP Access</p><p>↓</p><p>Public Backup File Discovery</p><p>↓</p><p>Plaintext Credential Exposure</p><p>↓</p><p>SSH Authentication</p><p>↓</p><p>Unprivileged User Access</p><p>↓</p><p>Sudo Misconfiguration</p><p>↓</p><p>Root Access</p><p>The most interesting aspect of this challenge is that the entire attack chain relied on security misconfigurations rather than a software-level exploit.</p><h3>12. Mitigation and Security Recommendations</h3><p>In a real-world environment, organizations can prevent similar attacks by implementing the following security measures.</p><h3>Disable Anonymous FTP Access</h3><p>Anonymous authentication should be disabled unless there is a legitimate business requirement.</p><h3>Secure Sensitive Files</h3><p>Backup files, configuration files, and internal documents should never be stored in publicly accessible directories.</p><h3>Implement Secure Credential Management</h3><p>Passwords should not be stored in plaintext files. Organizations should use appropriate secrets management solutions.</p><h3>Rotate Exposed Credentials</h3><p>Compromised credentials should be immediately revoked and replaced. Credential rotation policies should also be established according to organizational security requirements.</p><h3>Enforce the Principle of Least Privilege</h3><p>Users should only receive the permissions necessary to perform their assigned responsibilities.</p><p>Unrestricted access to commands such as su should not be granted to ordinary users.</p><h3>Conduct Regular Security Audits</h3><p>Regular vulnerability assessments, configuration reviews, and penetration testing can help identify security weaknesses before they are exploited.</p><h3>Monitor Security Events</h3><p>FTP access, SSH authentication attempts, and privileged command execution should be logged and monitored for suspicious activity.</p><h3>Key Takeaways</h3><p>This challenge reinforced several important cybersecurity concepts:</p><ul><li>Security misconfigurations can be as dangerous as software vulnerabilities.</li><li>Publicly accessible backup files can expose critical information.</li><li>Credential management plays an important role in preventing unauthorized access.</li><li>Linux privilege escalation does not always require complex exploits.</li><li>Excessive permissions can turn a minor security weakness into a complete system compromise.</li><li>Identifying a security risk is not enough; timely remediation is equally important.</li></ul><h3>Conclusion</h3><p>Overshare is an excellent beginner-friendly Boot2Root challenge for anyone learning network penetration testing and Linux privilege escalation.</p><p>The machine demonstrates how a seemingly harmless FTP configuration, combined with exposed credentials and improper sudo permissions, can result in complete system compromise.</p><p>For me, the biggest takeaway from this challenge was that effective cybersecurity is not only about deploying advanced security technologies. It is also about getting the fundamentals right: secure configurations, proper credential management, access control, and timely remediation.</p><p>Thank you for reading!</p><p>Happy Hacking!</p><p><em>If you found this writeup helpful, consider following me for more cybersecurity walkthroughs, CTF writeups, penetration testing, and security research content.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=136c1e214fdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ISRO — Hacklido RootQuest CTF Walkthrough | From Reconnaissance to Root Access]]></title>
            <link>https://medium.com/@khushalgurav128/isro-hacklido-rootquest-ctf-walkthrough-from-reconnaissance-to-root-access-577ec71eadb4?source=rss-a8c67405655f------2</link>
            <guid isPermaLink="false">https://medium.com/p/577ec71eadb4</guid>
            <category><![CDATA[capture-the-flag]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Khushalgurav]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 14:45:02 GMT</pubDate>
            <atom:updated>2026-11-28T14:45:02.420Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Exploring steganography, hidden archives, file inclusion, database misconfigurations and Linux privilege escalation.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*TBLI4_xASApmxudiDd8gsA.png" /></figure><h3>Introduction</h3><p>Capture The Flag (CTF) challenges are one of the best ways to develop practical cybersecurity and penetration testing skills.</p><p>Recently, I explored the <strong>ISRO machine on Hacklido’s RootQuest platform</strong>, a space-themed CTF machine inspired by Indian space missions.</p><p>The challenge involved multiple stages of exploitation, ranging from discovering hidden information inside an image to obtaining complete root-level access to the target machine.</p><p>In this article, I will walk through my methodology, the tools I used, the vulnerabilities I identified and how I completed the challenge.</p><h3>Machine Overview</h3><p>ParameterDetailsMachine NameISROPlatformHacklido RootQuestOperating SystemLinuxTarget IP10.10.0.3Total Flags Captured4Challenge TypeBoot to RootStatusCompleted</p><p><strong>Machine Link:</strong> <a href="https://learn.hacklido.com/rootquest/isro">https://learn.hacklido.com/rootquest/isro</a></p><p><strong>Disclaimer:</strong> All activities demonstrated in this article were performed within an authorized CTF environment for educational purposes.</p><h3>Tools Used</h3><ul><li>Nmap — Network reconnaissance</li><li>Gobuster — Directory enumeration</li><li>Wget — File downloading</li><li>ExifTool — Metadata analysis</li><li>Binwalk — Embedded file analysis</li><li>Steghide — Steganography</li><li>CyberChef — Data decoding</li><li>Python — HTTP server and shell interaction</li><li>Netcat — Network connections</li><li>Netstat — Internal service enumeration</li><li>MySQL — Database enumeration</li><li>OpenSSL — Password hash generation</li><li>SSH — Remote authentication</li></ul><h3>1. Initial Reconnaissance</h3><p>Every penetration testing engagement begins with reconnaissance. My first objective was to identify the open ports and accessible services running on the target machine.</p><p>I started with an Nmap scan.</p><pre>nmap 10.10.0.3</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*g5szzPALnOExmYQuUjK5ng.png" /></figure><p>The scan revealed two open ports:</p><p>PortServiceState22SSHOpen80HTTPOpen</p><p>Since the target was hosting a web application on port 80, I decided to investigate the web service first.</p><h3>2. Web Directory Enumeration</h3><p>To discover hidden directories and files that might not be directly accessible through the website’s navigation, I used Gobuster.</p><pre>gobuster dir --url http://10.10.0.3/ -w /usr/share/wordlists/dirb/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*n1GQdzUagSsh-lPWU7lFIw.png" /></figure><p>The enumeration revealed several interesting paths:</p><pre>/img<br>/index.php<br>/.htaccess<br>/.htpasswd<br>/server-status</pre><p>Among these results, the /img directory caught my attention because it was accessible and returned a directory listing.</p><p>I navigated to:</p><pre>http://10.10.0.3/img/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*9S-pBBennX1FoqBwO-Q5WA.png" /></figure><p>Inside the directory, I discovered an image named aryabhata.jpg.</p><p>Considering the space-themed nature of the challenge, I suspected that the image might contain hidden information.</p><h3>3. Aryabhata Mission — Steganography</h3><p>I downloaded the image to my local machine for further investigation.</p><pre>wget http://10.10.0.3/img/aryabhata.jpg</pre><h3>Metadata Analysis</h3><p>My first approach was to examine the image metadata using ExifTool.</p><pre>exiftool aryabhata.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*Gsef6eQOhfJS-8J_Fxt3_g.png" /></figure><p>The output provided general information about the image, including its dimensions, file type and encoding format. However, it did not reveal the flag.</p><h3>Embedded File Analysis</h3><p>Next, I used Binwalk to identify any embedded files or unusual file signatures.</p><pre>binwalk aryabhata.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*InKPUt3gI0VsNoD9-lV2uQ.png" /></figure><p>Binwalk identified a standard JPEG image without revealing any additional embedded file signatures.</p><h3>Steganography Analysis</h3><p>Since neither metadata analysis nor Binwalk revealed useful information, I decided to investigate the possibility of steganography using Steghide.</p><pre>steghide extract -sf aryabhata.jpg</pre><p>The extraction was successful and produced a file named:</p><pre>aryabhata_flag.txt</pre><p>I examined the extracted file.</p><pre>cat aryabhata_flag.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*_tFlnKDfOKJkxDUx0hDBaw.png" /></figure><h3>Flag 1 — Aryabhata</h3><p><strong>Status: Captured</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*enyHcJoZaThEa6ZyJULTpQ.png" /></figure><p>This stage demonstrated why images discovered during web enumeration should not be overlooked. Even ordinary-looking files can contain hidden information.</p><h3>4. Bhaskara Mission — Source Code Analysis</h3><p>After completing the Aryabhata mission, I continued exploring the web application and investigated the Bhaskara mission page.</p><p>One of the simplest yet effective techniques during web penetration testing is inspecting the HTML source code.</p><p>While examining the source code, I discovered an interesting HTML comment containing an encoded launch code.</p><pre>L2JoYXNrYXJh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*vfbGXjdHOim0c8HaSsGMIw.png" /></figure><p>The string appeared to be Base64-encoded.</p><h3>Decoding with CyberChef</h3><p>I copied the encoded string into CyberChef and used its Magic operation to identify the encoding.</p><p>The decoded output was:</p><pre>/bhaskara</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*DW9-DWXwgB3ADEXr0_sl7Q.png" /></figure><p>This revealed a hidden path associated with the Bhaskara mission.</p><p>Further investigation led to a password-protected ZIP archive named bhaskara.zip.</p><p>After extracting the archive, I discovered a file named flag.txt.</p><pre>unzip bhaskara.zip<br>cat flag.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*VLNTvlUMJxeH5_4Lrbgweg.png" /></figure><h3>Flag 2 — Bhaskara</h3><p><strong>Status: Captured</strong></p><p>This stage highlighted the security risks associated with exposing internal references and sensitive information inside HTML comments.</p><p>It also demonstrated that Base64 is an encoding mechanism, not an encryption mechanism.</p><h3>5. Exploring the Relay Connector — File Inclusion</h3><p>The next interesting functionality was the Relay Connector Console, available through the connect.php endpoint.</p><p>The application contained a Document Source input field that allowed users to specify a resource to load.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*PP18tz8vro3quQGVt96zXQ.png" /></figure><p>I investigated how the application processed user-controlled file paths.</p><p>During testing, the application returned the contents of a sensitive local Linux system file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*H_HPj3PpJ0Q9h_IDfVLXfw.png" /></figure><p>This confirmed that the application was vulnerable to unsafe local file access.</p><h3>From File Inclusion to Remote Code Execution</h3><p>Further testing revealed that the connector could also retrieve externally hosted resources.</p><p>I used a controlled HTTP server within the CTF environment to investigate this behavior.</p><p>The server logs confirmed that the target was requesting the hosted resource.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*RjwAvtan92nTTRPChiwh-A.png" /></figure><p>The vulnerable functionality ultimately allowed me to obtain a shell on the target machine.</p><p>The initial shell was running under the following account:</p><pre>uid=33(www-data)<br>gid=33(www-data)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lEuMWRgbZKa9xhROsR1fsg.png" /></figure><p>At this stage, I had gained initial access to the machine, but my privileges were limited to those of the web server account.</p><h3>6. Post-Exploitation — Internal Service Enumeration</h3><p>After obtaining initial access, my next objective was to understand the internal environment of the machine.</p><p>External port scanning does not necessarily reveal services that are accessible only from within the target system.</p><p>I used Netstat to enumerate internal network connections and listening services.</p><pre>netstat -antp</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*jvndxKYac55UVeIRUJashw.png" /></figure><p>One particularly interesting discovery was:</p><pre>127.0.0.1:3306</pre><p>Port 3306 is commonly associated with MySQL and MariaDB database services.</p><p>The database was listening on the loopback interface, which explained why it had not appeared in the initial external Nmap scan.</p><h3>7. Mangalyaan Mission — Database Enumeration</h3><p>After discovering the internal database service, I investigated its authentication configuration.</p><p>The database allowed me to establish a MariaDB session using the database root account without supplying a password in the command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*0QKkVdpU2s91VVvtMu3nww.png" /></figure><p>This indicated a significant authentication or access-control misconfiguration within the challenge environment.</p><p>During database enumeration, I discovered a database named flag, which contained a table also named flag.</p><p>The relevant database record contained the Mangalyaan mission flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*Hyxxxj-D3X7_-qQzG8vepQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*wDj3jOIzozl8550b_yX5eg.png" /></figure><h3>Flag 3 — Mangalyaan</h3><p><strong>Status: Captured</strong></p><p>This stage demonstrated that restricting a database to localhost does not eliminate security risks.</p><p>If an attacker compromises another application running on the same machine, internally accessible services can become valuable targets.</p><p>Strong authentication and the principle of least privilege remain essential.</p><h3>8. Chandrayaan Mission — Linux Privilege Escalation</h3><p>At this point, I had obtained access as www-data and captured three mission flags.</p><p>However, the final objective was to obtain root-level access.</p><p>During privilege escalation enumeration, I identified a critical Linux file permission misconfiguration involving /etc/passwd.</p><p>This file stores important user account information, including usernames, user IDs, group IDs, home directories and login shells.</p><p>Under normal circumstances, an unprivileged account should not be able to modify this file.</p><p>However, the target machine allowed unauthorized modification of its account information.</p><p>By exploiting this misconfiguration within the authorized CTF environment, I was able to establish a root-equivalent account and authenticate through the local SSH service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*scZlCAwdDwCTn_f9XPtWzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*FVWo9M439XZv_G5_h0vGew.png" /></figure><p>The resulting shell had root-level privileges.</p><p>I then investigated the root directory and discovered the final mission file:</p><pre>/root/final.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*0CxotJSXz5KjdfwxTWRHbA.png" /></figure><h3>Flag 4 — Chandrayaan</h3><p><strong>Status: Captured</strong></p><p>With the final flag captured, the ISRO machine was successfully completed.</p><h3>9. Vulnerabilities Identified</h3><p>VulnerabilityPotential ImpactDirectory listing enabledExposure of unintended filesHidden data in public imagesInformation disclosureSensitive HTML commentsExposure of internal resourcesUnsafe file inclusionUnauthorized file accessRemote resource inclusionRemote code executionDatabase authentication misconfigurationUnauthorized database accessInsecure Linux file permissionsRoot privilege escalation</p><h3>10. Security Recommendations</h3><p>From a defensive cybersecurity perspective, the vulnerabilities identified in this machine could be addressed through the following measures:</p><ul><li>Disable unnecessary directory listing.</li><li>Remove sensitive information from HTML comments and publicly accessible resources.</li><li>Validate and restrict user-controlled file paths.</li><li>Prevent the inclusion of untrusted remote resources.</li><li>Implement strong database authentication.</li><li>Apply the principle of least privilege to database and operating system accounts.</li><li>Regularly audit sensitive Linux file permissions.</li><li>Monitor suspicious file modifications and authentication activity.</li><li>Conduct periodic vulnerability assessments and penetration testing.</li></ul><h3>Conclusion</h3><p>The ISRO machine on Hacklido RootQuest was an interesting challenge that combined multiple cybersecurity domains into a single penetration testing scenario.</p><p>Rather than relying on one vulnerability, the challenge required connecting several security weaknesses to progress from initial reconnaissance to complete system compromise.</p><p>My key takeaway from this machine was that seemingly small security misconfigurations can have a significant impact when chained together.</p><p>From an exposed image directory to insecure file inclusion, internal database access and Linux privilege escalation, every stage demonstrated the importance of thorough enumeration and defense in depth.</p><p>I look forward to exploring more machines and sharing my cybersecurity learning journey through practical write-ups.</p><p><strong>Happy Hacking!</strong></p><p><em>Keep learning. Keep exploring. Hack ethically.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=577ec71eadb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>