<?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 Aarju Bhandari on Medium]]></title>
        <description><![CDATA[Stories by Aarju Bhandari on Medium]]></description>
        <link>https://medium.com/@aarjubh?source=rss-88ea2fa6ef48------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OemTS4IoCX2TfBxuKM5XsQ.jpeg</url>
            <title>Stories by Aarju Bhandari on Medium</title>
            <link>https://medium.com/@aarjubh?source=rss-88ea2fa6ef48------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:41:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aarjubh/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[From Low Severity to Big Lessons: My Journey in Dutch Government Security Research]]></title>
            <link>https://medium.com/@aarjubh/from-low-severity-to-big-lessons-my-journey-in-dutch-government-security-research-efdc75f3e167?source=rss-88ea2fa6ef48------2</link>
            <guid isPermaLink="false">https://medium.com/p/efdc75f3e167</guid>
            <dc:creator><![CDATA[Aarju Bhandari]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 11:09:21 GMT</pubDate>
            <atom:updated>2025-09-23T11:09:21.199Z</atom:updated>
            <content:encoded><![CDATA[<p>For the past 1.5 months, I’ve been actively participating in the Dutch Government Vulnerability Disclosure Program (VDP). What started as trial and error soon became a journey of patience, persistence, and learning.</p><p>My journey began when a colleague at work shared his own story of reporting to the Dutch VDP. Listening to his experience made me want to give it a try as well. The scope looked huge and open, which seemed overwhelming at first, but after segmenting the scopes, the testing was easier. During this process, I have submitted 12 reports.</p><h3>Finding #1: API Key Exposure</h3><p>One of my first discoveries involved exposed Google API keys. I noticed that some of the keys could be abused across different services. To make the process faster, I built a simple tool to mass hunt API keys across multiple domains. With it, I found several usable keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZLXP9avk17S1reqNHBSFuQ.png" /></figure><p>Although these reports were considered valid from a technical standpoint, the triage team marked them as not a security issue requiring action. Still, for me, it was proof that sensitive data exposure was real and widespread.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9jHbnztwh7Us6Cn01RcDg.png" /></figure><h3>Finding #2: Cache Poisoning</h3><p>While researching cache poisoning, I noticed that X-Forwarded headers were highly likely to be vulnerable. I created a script that would check whether these headers were treated as unkeyed, meaning they could affect cache responses.</p><p>Exploitation Flow:</p><ol><li>Send request with X-forwarded-* header</li><li>Response cached with injected value</li><li>All subsequent users receive the poisoned cached response</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUBe6_Q2tHJdeMjGN6z7yw.png" /></figure><p>In one test, I successfully replaced &lt;a&gt; tags in cached pages with malicious URLs. This could be abused for phishing, redirection, or malicious script delivery. Similar to the other findings, this too was considered low in severity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*8XD64K288dd_G4q02SUbFQ.png" /></figure><h3>Finding #3: Stored XSS (SVG Upload)</h3><p>One of my favorite findings was a Stored Cross-Site Scripting (XSS) vulnerability. The file upload feature restricted uploads to images only, rejecting .html or .js files.</p><p>But SVG, being both an image and XML, slipped through. By embedding an XSS payload inside the SVG, I was able to:</p><ul><li>Upload the file successfully</li><li>Have it stored on the server</li><li>Execute persistent JavaScript whenever a user views the uploaded file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*12rIhpPA8BzuqN-49GLFHA.png" /></figure><p>This was the first response I got for this report. It got me excited and hopeful for a while.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*oO8TUHEUHuxdnoh228-opg.png" /></figure><p>But……..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*IxnB-86I2GXDiMflK9pkxw.png" /></figure><p>Still, this finding taught me a lot about thinking outside the box and testing what others may assume is filtered.</p><h3>Finding #4: Local File Inclusion (LFI)</h3><p>The report that finally got accepted was a Local File Inclusion (LFI). By manipulating a crafted path, I was able to make the application fetch sensitive files like /etc/passwd. This was confirmed as a valid security issue.</p><p>A parameter in a file-retrieval endpoint accepted a URL-encoded path that effectively allowed traversal to arbitrary server files. I encountered a request like:</p><pre>https://target/render/%2fetc%2fpasswd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RP5Fb_l6R-Drl47B-VV36Q.png" /></figure><p>This issue seemed very severe to me, and I had my hopes all up again, since I got a response immediately, which was new to me. This email meant they recognize and accept it as a valid issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*ypA0pysCy3QGlb2UG6iRWg.png" /></figure><p>However, it look almost 17 days for them to fix the issue and reach out to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2NQv-fVgH5exuAOlr0tGrQ.png" /></figure><p>Yayy, I was awarded the “Renowned” Dutch Lousy T-Shirt.</p><h3>Conclusion</h3><p>Over the course of 1.5 months and 12 reports, I learned that the triage process often prioritizes authenticated endpoints or assets with a clear direct risk to sensitive user data. XSS on public-facing but unauthenticated issues were usually marked as low severity and will not be entertained.</p><p>Even so, each finding had a technical impact and helped me grow as a researcher. I learned to write better reports, provide safe proof-of-concept examples, and clearly explain the risk.</p><p>Most importantly, I learned that patience and persistence are key. The first accepted report always feels the hardest to get, but once it happens, it proves that sticking with the process is worth it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efdc75f3e167" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe: Geolocating Images Walkthrough]]></title>
            <link>https://medium.com/@aarjubh/tryhackme-geolocating-images-walkthrough-06835af58f68?source=rss-88ea2fa6ef48------2</link>
            <guid isPermaLink="false">https://medium.com/p/06835af58f68</guid>
            <dc:creator><![CDATA[Aarju Bhandari]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 06:36:47 GMT</pubDate>
            <atom:updated>2025-09-17T06:36:47.125Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frWe4UXqGY_HcL0hPT5ABQ.png" /></figure><h4>Getting Started</h4><p>We began by downloading the necessary files and tools for the task. To get a feel for reverse image searching, we tried out tools like Yandex, Bing, and Google. These platforms are super helpful when we’re trying to figure out where an image was taken.</p><h4>Locating Image 1</h4><p>For the first image, we uploaded it to Yandex. Right away, Yandex showed us a monument with text that said “Karamay.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CemFtDF2PGrDj_1C276vxw.png" /></figure><p>A quick search online confirmed that Karamay is in China.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*DM6RdDdQw44pK-2oQKDrIA.png" /></figure><h4>Finding Image 2</h4><p>When we got to Image 2, we noticed some key clues right away. There were green road signs with directions to Sheffield and Addison Street, and we could see a place called Sports Corner. Using these details, we searched for “Addison Sheffield Sports Corner” online and found a spot called Wrigleyville Sports. To confirm, we opened Google Maps and checked the area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zH8MlwnHLBYgsxVk5vTsSw.png" /></figure><h4>Locating Image 3</h4><p>Image 3 was a bit trickier. We saw the Eiffel Tower in the background, so we knew we were near Paris. The hint mentioned it was an observatory, and from the image, it looked like a white building on a hill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*PsmrSinvYluJo_Z5X3QOww.png" /></figure><p>We searched for observatories in Paris and found two options: one closer to the city and another farther out. Using Google Maps, we compared the vegetation and distance from the city. The Meudon Observatory matched perfectly , it was far enough from the Eiffel Tower and had the same landscape as the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7yqYvQaGCfl7po7XS9kU_g.png" /></figure><h4>Locating Image 4</h4><p>For Image 4, we spotted yellow streetlights and a zigzag zebra crossing. Searching for “famous zigzag line on road in london reddit” led us straight to Abbey Road.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*x7HULcvLeLHjXMHWJinXwg.png" /></figure><p>To double-check, we looked in google maps and compared the images to the google maps location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*1JZUmRt5YCg9Nhf-CfIAEA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06835af58f68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tryhackme: Blue Writeup]]></title>
            <link>https://medium.com/@aarjubh/tryhackme-blue-writeup-9ca5d86b8870?source=rss-88ea2fa6ef48------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ca5d86b8870</guid>
            <dc:creator><![CDATA[Aarju Bhandari]]></dc:creator>
            <pubDate>Tue, 16 Sep 2025 04:56:24 GMT</pubDate>
            <atom:updated>2025-09-16T04:56:24.089Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*RJgOi1wt9dOTvaqBk4Ti1A.gif" /></figure><p><strong>Introduction to EternalBlue and the Blue Lab</strong></p><p>The TryHackMe Blue lab is based on the infamous EternalBlue exploit. EternalBlue is a vulnerability that was first made public in 2017 as part of the Shadow Brokers leak. It targets the Server Message Block (SMB) protocol, which is commonly used for file sharing and communication between systems in a network. This exploit allows attackers to gain unauthorized access to systems by exploiting a bug in the SMB service. In this lab, we will use EternalBlue (MS17–010) to compromise the target machine and escalate privileges to gain full control.</p><p><strong>Reconnaissance</strong></p><p>The first step in any penetration test is reconnaissance. For this lab, we started with an Nmap scan to identify open ports and services running on the target machine. The command we used is shown in the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ZvE6S8ZhTsiQg9V7Gviudg.png" /></figure><p>This command performs a version scan -sV and skips host discovery -Pn. From the results, we identified three open ports under 1000:</p><ol><li>Port 445: This port is used for SMB (Server Message Block), a protocol that allows file sharing, printer sharing, and inter-process communication.</li><li>Port 139: This port is associated with NetBIOS Session Service, which works alongside SMB to enable communication between devices on a network.</li><li>Port 135: This port is used for the Remote Procedure Call (RPC) service, which allows programs to communicate with one another across a network.</li></ol><p>These ports are critical because they provide us with potential entry points into the system. To confirm whether the target is vulnerable to EternalBlue, we ran another Nmap scan with the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*TUHzc32WyaoZiGyChGXGjg.png" /></figure><p>This command scans ports 139 and 445 and runs scripts targeting known SMB vulnerabilities. The results revealed that the target is vulnerable to MS17–010, which is the identifier for the EternalBlue exploit.</p><p><strong>Gaining Access</strong></p><p>With the knowledge that the target is vulnerable to EternalBlue, we moved on to gaining access using Metasploit. First, we searched for the appropriate exploitation module by running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*jMDJNdD8r-FoTpBELs8A-A.png" /></figure><p>This search returned the path exploit/windows/smb/ms17_010_eternalblue. We selected this module using and next, we checked the required options the following commands:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*udw43eh33r93KMVCVL_FLA.png" /></figure><p>We noticed that the only value we needed to set was RHOSTS, which is the IP address of the target machine. Additionally, we configured the payload to use a reverse TCP shell as well. We set it using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*tf2uJ_zqMBjbMGBZ1WVNXA.png" /></figure><p>Finally, we executed the exploit by typing run. After a successful execution, we gained access to the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*rnfaA64TR2DL_95cJG2s1w.png" /></figure><p>At this point, we backgrounded the session using ctrl+z to proceed to the next phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*QZH0iJ4FYqY1dMD8AUbJkw.png" /></figure><p><strong>Escalating Privileges</strong></p><p>To escalate privileges, we researched how to convert a basic shell into a Meterpreter shell in Metasploit. We found the module post/multi/manage/shell_to_meterpreter by searching for it and then used the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7r_SDIYnTVcD7qOPSz_SFA.png" /></figure><p>After checking the required options using show options, we identified that the session value needed to be set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ijxQrPG5vZfS8JCJTXtMxA.png" /></figure><p>We listed the active sessions using the sessions command and found that our current session ID was 2. We set the session using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8C7-ebF5m2B8IR4N3DuZzw.png" /></figure><p>Once the session was set, we ran the module using run. This successfully upgraded our shell to a Meterpreter shell, giving us more advanced capabilities.</p><p><strong>Cracking Hashes</strong></p><p>With Meterpreter access, we explored the system further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*BPWPe5UDhdvtAdOiqPSkBg.png" /></figure><p>To identify processes running on the system, we used the ps command. Scrolling through the list, we found a process running at NT AUTHORITY\SYSTEM with a Process ID (PID) of 2600, which belonged to PowerShell.</p><p>Migrating to this process was important because even though we had system-level access, our current process might not have the same level of privileges. PowerShell is a powerful tool that allows us to execute commands with elevated privileges. To migrate, we used the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*xnrR7QW21BkXmKBbgOZ-dQ.png" /></figure><p>After migrating, we dumped the password hashes using the hashdump command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*pJdLVdUuMlB_RmE7Vn5UoQ.png" /></figure><p>Among the hashes, we identified a non-default user named Jon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Bp_XwRIxk8qgES1WlwxG4Q.png" /></figure><p>We saved the hash to a file and cracked it using John the Ripper. The cracked password gave us credentials for the user Jon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*tlPKLfBykNNz4WprQypwIQ.png" /></figure><p><strong>Finding Flags</strong></p><p>After gaining system-level access and escalating privileges, the next step was to locate the flags. The lab provided hints for each flag, guiding us through key areas of the Windows operating system where sensitive information is often stored.</p><p><strong>Flag 1: System Root</strong></p><p>The first flag was located at the system root directory c:/. This is a common location where attackers might look for critical files or configuration data. To find this flag, we navigated to the root directory using the cd command and listed the files using dir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8PRLr2JGekHfUG19CKb1Ag.png" /></figure><p>Among the files, we found flag1.txt. Reading its contents revealed the first flag.</p><p><strong>Flag 2: Password Storage Location</strong></p><p>The second flag required a bit more investigation. According to the instructions, this flag could be found where passwords are stored within Windows. To locate it and find the flag, we used the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*sXnTfwsO9GHeST6sFrklzw.png" /></figure><p>This command searches recursively through all .txt files in the windows/system32 directory for the keyword &quot;flag&quot; (case-insensitive). The results pointed us to a file containing the second flag. In our case, the flag was successfully located in the System32 directory.</p><p><strong>Flag 3: Administrator’s Documents</strong></p><p>The third flag was described as being in an excellent location to loot , somewhere administrators typically store interesting or valuable information. Following the hint, we explored the Documents folder of the Administrator user account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*JbqeV4cYGDRNX0cnkwDoGw.png" /></figure><p>Inside, we found flag3.txt, which contained the final flag.</p><h4>Extra Tip: Searching for All Flags</h4><p>To ensure we didn’t miss any flags, we used a broader search command:</p><pre>search -f &#39;*flag*.txt&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*3tUqYco3LFGCdWXqJ0sv0A.png" /></figure><p>This command searches the entire filesystem for files matching the pattern. It returned the locations of all three flags, confirming that we had successfully retrieved them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ca5d86b8870" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Server-Side Request Forgery (SSRF)]]></title>
            <link>https://medium.com/@aarjubh/server-side-request-forgery-ssrf-dd54006be26b?source=rss-88ea2fa6ef48------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd54006be26b</guid>
            <dc:creator><![CDATA[Aarju Bhandari]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 05:26:37 GMT</pubDate>
            <atom:updated>2025-07-28T05:27:39.456Z</atom:updated>
            <content:encoded><![CDATA[<p>Server-Side Request Forgery (SSRF) occurs when an attacker is able to manipulate a server-side application to make unauthorized or unintended HTTP requests to internal or external systems.</p><p>In simple terms, the attacker tricks the server into sending a request on their behalf, often to internal services that are not otherwise exposed to the internet.</p><h3>What is the Impact of SSRF Attacks?</h3><p>SSRF can be extremely dangerous, especially in cloud or microservice environments. Its impact ranges from information disclosure to full system compromise.</p><ul><li>Port scanning internal networks</li><li>Accessing internal-only services, like: Admin panels, Monitoring tools, Databases</li><li>Bypassing access controls</li><li>Remote Code Execution</li></ul><h3>Common SSRF Attack Techniques</h3><p>Attackers use various tricks to exploit SSRF vulnerabilities:</p><ol><li>Accessing Internal Resources</li><li>IP Obfuscation</li><li>Open Redirect Chaining</li><li>Blind SSRF (Out-of-Band)</li></ol><h3>How to Prevent SSRF</h3><ol><li>Use a URL Whitelist</li></ol><p>2. Avoid Using Blacklists</p><p>3. Block Internal IP Ranges</p><p>4. Validate and Sanitize User Input</p><h3>Lab: SSRF with whitelist-based input filter</h3><p>This lab has a stock check feature that fetches data from an internal system. The goal is to exploit SSRF and bypass the whitelist filter to access the internal admin interface and delete the user carlos.</p><p>Open the lab and visit a product page:</p><p>Let’s begin by browsing to any product page in the lab. You’ll notice there’s a “Check Stock” button. When we click it, it fetches stock info from a backend system using a URL that includes our product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTRpsSApmbYiHH6vxe0LvA.png" /></figure><p>Intercept the “Check Stock” request in Burp Suite:</p><ul><li>Click “Check Stock”.</li><li>In Burp Proxy, intercept the request.</li><li>Send it to Repeater for easier manipulation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*hjf27j4RWubAMfK0C2kCfw.png" /></figure><p>Try changing stockapi to <a href="http://127.0.0.1/">http://127.0.0.1</a>:</p><p>The application is parsing the URL and validating the hostname. Since it is not on its whitelist, it gets blocked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qHZPdRpW5xoD58a_TfsvhQ.png" /></figure><p>Try this URL stockApi=http://username#@stock.weliketoshop.net/:</p><p>Here, we’re inserting a username before the @ symbol. The domain still ends with stock.weliketoshop.net/, which is likely on the whitelist. Also, The # begins a fragment identifier in URLs, which browsers ignore but URL parsers may treat differently. The rejection here hints that the app is handling it carefully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HeQEUnlyp8NMUwLoaXkRwQ.png" /></figure><p>Try double URL encoding the #symbol:</p><p>stockApi=<a href="http://localhost:80%2523@stock.weliketoshop.net/admin/delete?username=carlos">http://localhost:80%2523@stock.weliketoshop.net/admin/delete?username=carlos</a></p><p>We’ve tricked the parser by hiding the internal URL using a combination of:</p><ul><li>Username injection</li><li>Double-encoding</li><li>Whitelist evasion</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*ZohTbPE68sSemXcnh2Ol2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*wFbSj-G40599qC_WzQAekQ.png" /></figure><p>This lab shows how inefficient URL whitelisting can be bypassed using URL parser edge cases. It also proves that even when a whitelist is present, clever attackers can exploit it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd54006be26b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Ransomware Works: A Technical Breakdown]]></title>
            <link>https://medium.com/@aarjubh/how-ransomware-works-a-technical-breakdown-fbf0b6a87d90?source=rss-88ea2fa6ef48------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbf0b6a87d90</guid>
            <dc:creator><![CDATA[Aarju Bhandari]]></dc:creator>
            <pubDate>Sun, 16 Mar 2025 10:25:29 GMT</pubDate>
            <atom:updated>2025-03-16T10:25:29.146Z</atom:updated>
            <content:encoded><![CDATA[<p>Ransomware has become one of the most widespread and destructive cyberthreats in recent years, crippling businesses, hospitals, and governments worldwide. From WannaCry to LockBit, these attacks cost billions annually. But how does ransomware infiltrate systems, encrypt data, and coerce victims? In this post, we’ll discuss the inner workings of ransomware, step by step, to understand its technical mechanics and equip you with knowledge to defend against it.</p><h3>What is Ransomware?</h3><p>Ransomware is a type of malicious software (malware) designed to block access to a victim’s data or systems until a ransom is paid. Attackers often demand payment in cryptocurrency (e.g., Bitcoin) to maintain anonymity. The malware typically employs robust encryption algorithms to lock files, rendering them inaccessible without a decryption key held by the attacker.</p><h3>The Ransomware Attack Lifecycle</h3><p>Let’s break down the stages of a ransomware attack, from initial infection to data encryption and extortion.</p><h4>1. Delivery &amp; Initial Infection</h4><p>Ransomware enters a system through various vectors:</p><ul><li><strong>Phishing Emails</strong>: Malicious attachments (e.g., Word documents) or links trigger downloads.</li><li><strong>Exploit Kits</strong>: Exploiting vulnerabilities in software (e.g., unpatched servers, RDP ports).</li><li><strong>Drive-by Downloads</strong>: Compromised websites silently download malware onto visitors’ devices.</li><li><strong>Malvertising</strong>: Malicious ads redirect users to ransomware payloads.</li></ul><p>Once executed, the malware establishes persistence by modifying registry keys or creating scheduled tasks.</p><h4>2. Reconnaissance &amp; Lateral Movement</h4><p>After gaining a foothold, the ransomware scans the system to:</p><ul><li>Identify critical files (e.g., documents, databases, backups).</li><li>Escalate privileges to admin-level access.</li><li>Spread laterally across networks using tools like PsExec or PowerShell.</li></ul><p>Advanced attacks target Active Directory to compromise entire domains.</p><h4>3. Data Encryption</h4><p>This is the core of ransomware’s destructive capability. Modern ransomware uses hybrid encryption:</p><ul><li><strong>Symmetric Encryption</strong> (e.g., AES-256): Encrypts files quickly.</li><li><strong>Asymmetric Encryption</strong> (e.g., RSA-2048): Encrypts the AES key itself, ensuring only the attacker’s private key can decrypt it.</li></ul><p>Files are overwritten, and original data is often deleted to prevent recovery. Some variants exfiltrate data first, enabling <strong>double extortion</strong> (“Pay us, or we leak your data”).</p><h4>4. Ransom Note &amp; Communication</h4><p>After encryption, the ransomware drops a ransom note (e.g., README.txt) with instructions for payment. Attackers often use:</p><ul><li><strong>Tor Networks</strong>: To host payment portals anonymously.</li><li><strong>Contact Emails</strong>: ProtonMail or other encrypted services.</li><li><strong>Countdown Timers</strong>: Threatening to delete keys if payment is delayed.</li></ul><h4>5. Payment &amp; Decryption (or Not)</h4><p>If the victim pays, attackers <em>may</em> provide a decryption tool but there’s no guarantee. Many victims never recover their data, and paying fuels further attacks.</p><h3>Types of Ransomware</h3><ol><li><strong>Crypto Ransomware</strong>: Encrypts files (e.g., LockBit, REvil).</li><li><strong>Locker Ransomware</strong>: Locks users out of devices (e.g., Police-themed scams).</li><li><strong>Double Extortion</strong>: Steals + encrypts data (e.g., Conti, ALPHV).</li><li><strong>RaaS (Ransomware-as-a-Service)</strong>: Cybercriminals lease ransomware kits (e.g., DarkSide).</li></ol><h3>How to Defend Against Ransomware</h3><ol><li><strong>Backups</strong>: Maintain offline, immutable backups tested regularly.</li><li><strong>Patch Management</strong>: Update OS, software, and firmware promptly.</li><li><strong>Email Security</strong>: Filter phishing attempts and block malicious attachments.</li><li><strong>Endpoint Detection &amp; Response (EDR)</strong>: Deploy tools to detect suspicious activity.</li><li><strong>Least Privilege Access</strong>: Limit user/admin permissions.</li><li><strong>User Training</strong>: Teach employees to recognize phishing and social engineering.</li></ol><h3>What to Do If Infected</h3><ol><li><strong>Isolate the Device</strong>: Disconnect from networks to prevent spread.</li><li><strong>Report the Incident</strong>: Contact law enforcement.</li><li><strong>Avoid Paying</strong>: There’s no guarantee of recovery, and it encourages attackers.</li><li><strong>Restore from Backups</strong>: Wipe systems and rebuild.</li></ol><p>Ransomware thrives on exploiting technical vulnerabilities and human error. By understanding its lifecycle, from delivery to encryption, organizations can implement layered defenses to mitigate risk. Stay vigilant, prioritize proactive measures, and remember: the best defense against ransomware is a robust offense.</p><p>Share this post to raise awareness! For more cybersecurity insights, please follow on here and <a href="https://www.instagram.com/cyberwithaarju/?utm_source=ig_web_button_share_sheet">cyberwithaarju</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbf0b6a87d90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Team: TryHackMe Writeup]]></title>
            <link>https://medium.com/@aarjubh/team-tryhackme-writeup-768cca6f8975?source=rss-88ea2fa6ef48------2</link>
            <guid isPermaLink="false">https://medium.com/p/768cca6f8975</guid>
            <dc:creator><![CDATA[Aarju Bhandari]]></dc:creator>
            <pubDate>Tue, 27 Jun 2023 12:39:51 GMT</pubDate>
            <atom:updated>2023-06-27T12:40:22.374Z</atom:updated>
            <content:encoded><![CDATA[<p>Foremost, using Nmap and looking into what services are running. We can see, three are running, HTTP, FTP, and SSH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Etaxf7BixDN5GeIk0A7D9A.png" /></figure><p>So, let’s go to the browser and look into what it has to offer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*kDJSNOn_083TaRM3QBvEIg.png" /></figure><p>Viewing the page source we can see it suggests us to add ‘team.thm’ in the ‘hosts’ file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*L0fDsL4kOe1anKGQQi-aiQ.png" /></figure><p>So, let’s add it to “/etc/hosts”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*KoiDtQooeUu5STK9HBBM7w.png" /></figure><p>Let’s go through ‘team.thm’ in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*hvG5oGWf6Im2oj9RVhg4nQ.png" /></figure><p>We found nothing, whatsoever. Hence, shall we try using Gobuster and see what results it gives out?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EjUXCLUQMJ6bJMS6CZflpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*e-haQHcZHbE5tDZS8paqQw.png" /></figure><p>So, doing Gobuster on ‘team.thm’, we can find ‘robots.txt’, and opening that we see the name “dale”, which might be a username and might come in handy later on, so let’s hold on to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*_6ru0LIqQiIyIzBl9CpxgA.png" /></figure><p>Similarly, we also could see a ‘scripts’ directory, and looking into that find a ‘script.txt’, which hints us into further looking into a script file with the extension ‘old’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*k9nDg4rqtf2R-VSPDX6R8Q.png" /></figure><p>We see this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EaeWWienxY9kDgxnMsAM9w.png" /></figure><p>Downloading that, we can see the username and password for FTP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*s0ldA952P4j6i4S_89Gomw.png" /></figure><p>Logging into FTP, we find a file named “New_site.txt”, and download it to our local machine to read its content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*N1OqOzP4cPchw44WusBcPg.png" /></figure><p>Reading it, we get that there’s another user named Gyles, and also seems like a hint that there exists a RSA key for SSH login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CWGm6zLZvKLr-xqknhb9Ow.png" /></figure><p>Now, fuzzing ‘team.thm’, we get an understanding there is a subdomain under ‘dev’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zRhOaD66uyv-4bhkdKl8WA.png" /></figure><p>So, let’s add it to the ‘/etc/hosts’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*qKlhD88RH4H_ldqx-ZNxNA.png" /></figure><p>Then visit ‘dev.team.thm’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8jOFAkyBZXy0TZCIuU5rTA.png" /></figure><p>Click the link given and, after that, what we find looks like an LFI, so, we try and see if a ‘user.txt’ file exists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-RQHhnJlfx35Msqyi2W9sg.png" /></figure><p>There we have our user flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*kp2taqMM254cMwl9ZfZx_A.png" /></figure><p>Since we were hinted at about the RSA key, we now try to hunt it down, in that process, we find the ‘etc/ssh/sshd_config’ file. Look into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8TclXONbeJlemU97TijN8g.png" /></figure><p>We view the source page and there’s our RSA Key.</p><p>Now, we log into SSH and read the user flag (Which we have already read with LFI as well).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*KmN1QyOYz8ILV-84mmHiNg.png" /></figure><p>We see what’s in the ‘script.sh’ file. Then go see what is inside ‘/usr/local/bin’ and find that the user is in an admin group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8KSwc3oGYBAzxHtsftKcIw.png" /></figure><p>Now, we see that we can run a particular bash script as the user Gyles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EQtl7wD_Dt5CItTMitkc9Q.png" /></figure><p>We’ll be injecting in the error variable since we see that the variable is directly passed to a system call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*300Yrvv_owni7WFxZ9gCMw.png" /></figure><p>Now we have a shell as the user Gyle.</p><p>Also, going through “.bash_history”, we see a trace of Cronjob running</p><p>Since, going through the file we see that it’s a bash script that copies some backups, we decided to edit the file and add a reverse shell since we knew that a Cronjob was beingexecuted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*YNv7saIvc1axbS4xxNNWsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*-_0QE71Js7xjR0B5wZ3J3w.png" /></figure><p>After setting up a Netcat listener, we get the root shell and flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ZosFz_9hYwRMqPswNemd7A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=768cca6f8975" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DVWA: Command Injection, CSRF, File Inclusion and Upload, and SQL Injection.]]></title>
            <link>https://medium.com/@aarjubh/dvwa-command-injection-csrf-file-inclusion-and-upload-and-sql-injection-fef407efda6f?source=rss-88ea2fa6ef48------2</link>
            <guid isPermaLink="false">https://medium.com/p/fef407efda6f</guid>
            <dc:creator><![CDATA[Aarju Bhandari]]></dc:creator>
            <pubDate>Fri, 23 Jun 2023 02:28:39 GMT</pubDate>
            <atom:updated>2023-06-23T02:28:39.087Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1. Command Injection</strong></p><p><strong><em>Low</em></strong></p><p>Let’s see when we try to enter a random domain, such as “google.com,” in the input area on the website if the result is precisely the same as the result of the ping command.</p><blockquote>google.com cat /etc/passwd</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7-YGni1iI_FAUEr3qfKjng.png" /></figure><p>Thankfully, the output is exactly what we expected.</p><p><strong><em>Medium</em></strong></p><p>Shall we try enumerating the chaining operators and see if it works?</p><p>So, using the AND Operator (&amp;), like this,</p><blockquote>google.com&amp; cat /etc/passwd</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Wh1MYHablu8Co-Z7w2l6Ow.png" /></figure><p>Fortunately, it did.</p><p><strong><em>High</em></strong></p><p>Here’s the source code for this level. We know the PIPE operator (| symbol) is typically used to chain multiple commands together in a command-line interface. However, in this specific situation, the filter being mentioned does not replace a PIPE operator that is not preceded by a space.</p><blockquote>google.com|cat /etc/passwd</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*1METCt-DUwzTicL-pxDD0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*9adasNMjD-4GPhYXT1pdPA.png" /></figure><p>In this command, the intention was to execute the cat /etc/passwd command. Due to the specific behavior of the mentioned filter, it will not recognize the PIPE operator without a space preceding it.</p><p><strong>2. CSRF</strong></p><p><strong><em>Low</em></strong></p><p>The first thing that should come to mind is to experiment with different passwords and see what happens.</p><p>Trying to do that, we’re still on the same website after that, but there’s an intriguing value in the URL bar.</p><p>The form clearly accepts a GET HTTP request and sends three arguments named: password_new, password_conf, and Change.<br>So, we can assume an attacker sending a malware address like in the following image.</p><blockquote><a href="http://10.10.93.202/vulnerabilities/csrf/?password_new=stackzero&amp;password_conf=stackzero&amp;Change=Change#">http://10.10.93.202/vulnerabilities/csrf/?password_new=passzero&amp;password_conf=passzero&amp;Change=Change#</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*__XwZn3ozZh4HIzCb0RazA.png" /></figure><p>And when we click the link, the password is changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*bl53b9nwCpIENJVMWmsPgA.png" /></figure><p><strong>3. File Inclusion</strong></p><p>File inclusion vulnerabilities occur when a website or program allows users to specify a file that should be included in the code of the application. This is typically done to make it easier for developers to update and maintain the program, but it can also pose a significant security risk if not managed appropriately.</p><p><strong><em>Low</em></strong></p><p>We understand that this vulnerability allows an attacker to view/execute a file without having reading/executing permissions.</p><p>So let’s try to change the “page” variable with, that is shown in the image below, which if we view help, will know that has a flag inside it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Tyvau-cH_1kn38fv7tzLoA.png" /></figure><p>And, Thankfully it worked!</p><p><strong><em>Medium</em></strong></p><p>To replace the “dangerous” strings, the server use the PHP str_replace function:</p><p>HTTP, HTTPS: the developer wishes to prevent the inclusion of Remote Files</p><p>../,..: the developer wishes to prevent the directory traversal for Local File Inclusion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*4EERKfsy6Qf8-twP-vq08Q.png" /></figure><p>So, if we try:</p><blockquote>http://10.10.229.208/vulnerabilities/fi/?page=….//….//hackable/flags/fi.php</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*FRDd2AUzVYIzy6BmAwTYCQ.png" /></figure><p>This is what we get.</p><p><strong><em>High</em></strong></p><p>It used the PHP function fnmatch to determine whether a string matches a shell pattern. It checks if the variable begins with the string “file” and produces an error if it does not.</p><p>The file URI scheme allows us to get files in the browser, which is exactly what we want because it begins with “file”!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*t3Q8MZ2DW_6D_ivm_S1OQA.png" /></figure><p><strong>4. File Upload</strong></p><p><strong><em>Low</em></strong></p><p>Let us upload a simple php file and check where it is being uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*m8-7csM6AZUxOfXjXDtE7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*cYNjhe-KnmxeXwjNalIBPA.png" /></figure><p>Our file is uploaded to the path as shown in the image. The part of the above screenshot indicates that the file has been uploaded.</p><p><strong><em>Medium</em></strong></p><p>Let us upload our renamed malicious file cmd.php</p><p>On analyzing the source code, we found files with content type image/jpeg and image/png are allowed only and others are blacklisted. So, let’s try, changing the content type using Burpsuite and see if it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*bpb7v04_OeZ4pWL7dK4w7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*cYNjhe-KnmxeXwjNalIBPA.png" /></figure><p>It did.</p><p><strong><em>High</em></strong></p><p>Trying to upload the same file above, and changing its file type does not help at all. Reading the view help page gives an insight into the following conditions:<br>- File extension [should be png, jpeg, or jpg only. File with other extensions is blocked]<br>- File size [should be less than 100 kB] and<br>- Image file signature [using getimagesize() function].</p><p>Now, let’s try to add file signature at the beginning of the file and see if it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*3s2h3nl6Ev8lU4EGrwRGJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Cy06AAzcKcUJzQQV3gRLAw.png" /></figure><p>And, here’s the file we uploaded successfully.</p><p><strong>5. SQL Injection</strong></p><p><strong><em>Low</em></strong></p><p>We can see here the input field at this level. Let’s see and try the following query:</p><blockquote>‘ UNION SELECT user, password FROM users#</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*9RCZw6GIoxHZ4OjbXmNUbA.png" /></figure><p><strong><em>Medium</em></strong></p><p>The text box has been replaced by a dropdown list, which prevents the user from inputting an unexpected value.</p><p>So, let’s try to capture the request with Burpsuite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*F4vCvxJnKN_vlIX5GAPJDQ.png" /></figure><p>Now, let’s try to modify the “id” field by adding the following:</p><blockquote>1+OR+1=1</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1zNpKCXGDljL2Q6-Hvxq6g.png" /></figure><p>That works, and here we can see the users.</p><p><strong><em>High</em></strong></p><p>As we can see a pop-up window is used for user input in this level.</p><p>Let’s see and try the following query:</p><blockquote>‘ UNION SELECT user, password FROM users#</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*b_bDYh8qni7eTDNPDvy9dw.png" /></figure><p>After the input in the pop-up window, the query gave out the result like this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fef407efda6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lian_Yu: A TryHackMe Challenge Write Up]]></title>
            <link>https://medium.com/@aarjubh/lian-yu-a-tryhackme-challenge-write-up-4caf0e583f59?source=rss-88ea2fa6ef48------2</link>
            <guid isPermaLink="false">https://medium.com/p/4caf0e583f59</guid>
            <dc:creator><![CDATA[Aarju Bhandari]]></dc:creator>
            <pubDate>Thu, 15 Jun 2023 02:39:17 GMT</pubDate>
            <atom:updated>2023-06-15T02:39:17.837Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s a detailed write-up on Lian_Yu, a beginner-level CTF challenge from TryHackMe.The challenge seems to have been inspired by the TV show “Arrow” and revolves around the fictional island of Lian Yu.</p><p>Shall we proceed through the challenge?</p><p>Step 1: Deploy the Virtual Machine (VM)</p><p>The most obvious and foremost step is to deploy the machine and get an IP address to connect to.</p><p>Step 2: Nmap Scan</p><p>Like muscle memory, during reconnaissance-information gathering about the target machine, I proceed to use Nmap and run the following command to perform a comprehensive scan of the target IP address, using default script scanning, version detection, and high verbosity for detailed output.</p><p><strong>nmap -sC -sV -vv &lt;IP Address&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*78D9WXN97QWuBzIiwq1Syw.png" /></figure><p>Since we see that port 80 is open, we can use the browser to connect to it. Hence, we get the following page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GrJzAsdmvlt0rQ4A719oA.png" /></figure><p>Step 3: Gobuster</p><p>The first question was about finding a directory, it was a green flag to use tools like Gobuster or Dirb to brute force through the directories. Here, I use the Gobuster and find a directory “island”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQjYFylOvY3FygidzmzJjg.png" /></figure><p>After searching through that directory and having found nothing, I view the source code and find the keyword “vigilante”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-pESyxEQxhkPFaoMiekKGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcLH-OEP1YjvJ0PxI0MxFA.png" /></figure><p>After further searching through the directories, another “2100” named directory is found, I look into its source code and the following is what I found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*58guoYBlm5XAnLGd0jxDXQ.png" /></figure><p>It looks like a breadcrumb, to probably find a file(according to the question) with a “.ticket” extension. So, looking further into it, a file named “green_arrow.ticket” is found, which seems to have an encoded password to connect to FTP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Jc7JcmOZfB-CGXqpNCKR0Q.png" /></figure><p>After multiple trials, I find that it is a base-58 encoded string, and decrypt it to find something that could be a password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*uxas0JMtkunjC9l6lFusfg.png" /></figure><p>Step 4: FTP Login</p><p>Most likely, the FTP username could be “<strong>vigilante” </strong>and the password seemed to be that base58 encoded string, plus we also know that the FTP server is open, so let’s log into the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*AMPHGytQydXqufF9Pzjxkg.png" /></figure><p>YES, It worked!</p><p>Now, let us see what we can find here that might be worth our time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*45gNjpIerWulB469SwYEAg.png" /></figure><p>After downloading “.other_user”, and “aa.jpg”, now let us try to look into these files.</p><p>Reading into “.other_user” hints that “Slade” might be a user/username.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-FV6r3goWKqN9xoBQ9vzzw.png" /></figure><p>To get access to the “aa.jpg” file, we need a password so I looked into “Leave_me_alone.png”, but it looked like its header has been modified so, let’s edit it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*IsvTOtnl8oww0B4DCR_-2w.png" /></figure><p>After editing the Hex Value, and trying to open that file we get a password “password”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FsmYdiEYEfrF0rLxd311MQ.png" /></figure><p>Now, since “aa.jpg” is an image file, let us see if it has any hidden messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*NBKO_jA4SzzHOBNp49QOcg.png" /></figure><p>It prompts for a password and using the password “<strong>password”</strong>, we successfully extracted the .jpg file to a <strong>ss.zip</strong> file. This file has a <strong>passwd.txt</strong> and a “<strong>shado”</strong> file.</p><p>Step 5: SSH Login</p><p>Trying to login as “Slade” with the found password, thankfully it worked successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5fXvs-g4yauWUXZS69xsg.png" /></figure><p>Now, finally, the time to enumerate and find the user.txt and root.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*IiGNJ9tx24tZrxtriZXukA.png" /></figure><p>Here’s the user flag.</p><p>Now, let’s list the privileges or permissions that this user has.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*TCbt5UpiDmhI4PrZAGktiA.png" /></figure><p>So, now I run the command “sudo /usr/bin/pkexec /bin/bash,” and provide the correct password. Let’s see if this works and it launches a new Bash shell session with administrative privileges, and VOILA!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*m4RVx4uUOB6K_2QrWHRElg.png" /></figure><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4caf0e583f59" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>