<?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 Ruth Barkat on Medium]]></title>
        <description><![CDATA[Stories by Ruth Barkat on Medium]]></description>
        <link>https://medium.com/@ruth.barkat9?source=rss-70aedfdfff30------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WR6NRa15udezz7H1</url>
            <title>Stories by Ruth Barkat on Medium</title>
            <link>https://medium.com/@ruth.barkat9?source=rss-70aedfdfff30------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:41:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ruth.barkat9/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[Bounty Hacker — tryhackme]]></title>
            <link>https://medium.com/@ruth.barkat9/bounty-hacker-tryhackme-bda89b808aaf?source=rss-70aedfdfff30------2</link>
            <guid isPermaLink="false">https://medium.com/p/bda89b808aaf</guid>
            <dc:creator><![CDATA[Ruth Barkat]]></dc:creator>
            <pubDate>Tue, 30 Apr 2024 16:37:38 GMT</pubDate>
            <atom:updated>2024-04-30T16:37:38.718Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bounty Hacker — tryhackme</h3><p>Claim your right to the status of Elite Bounty Hacker!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*RgOtDLbmfT2XYsHIsV41qQ.png" /></figure><p><em>You were boasting on and on about your elite hacker skills in the bar and a few Bounty Hunters decided they’d take you up on claims! Prove your status is more than just a few glasses at the bar. I sense bell peppers &amp; beef in your future!</em></p><p><strong><em>Disclaimer: </em></strong><em>Before reading through the write-up, its always advised to try to solve the room first, before looking for the answers.</em></p><h3>Port Scanning:</h3><p>After setting the machine, I saw the first step as scan the ports available on the machine, so I try <strong>rustscan </strong>since it gives results a bit faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*QOJChpz4yih9M6lSQOhV8Q.png" /><figcaption>Rustscan results</figcaption></figure><p>Results of the rustscan shows that there are three ports open on the machine i.e. 21/tcp ftp(File Transfer Protocol), 22/tcp ssh(Secure Shell) and 80/tcp http(Hyper Text Transfer Protocol). For details like service/version detection, I use <strong>nmap </strong>scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*UZNj16BCpOTH9zhWCnvprQ.png" /><figcaption>It says Anonymous FTP login allowed</figcaption></figure><h3>Anonymous Login</h3><p>Upon analyzing the results port 21 shows that it allows anonymous login on FTP Server, so let try to log into it, using command <strong>ftp &lt;ip_address&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*Cag_OWLnYbF7sM-e7WRq3Q.png" /><figcaption>Logged as an anonymous user</figcaption></figure><p>I’ve successfully logged in using Name as anonymous, let see what files are in it, using the command <strong>ls. (</strong>You might found yourself entered into Extended Passive Mode, so try to use ls again in order to list the files<strong>). </strong>Ls command will list two important files here, locks.txt and task.txt. I used get command to store the files in the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*p93Xq-On8M7g3cBXJYUzow.png" /><figcaption>getting files to your current directory</figcaption></figure><p>After viewing the contents of both file, I found that one has the username as lin and other file-locks.txt- has the list of possible passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*0A3EAUEBcWlXy_8n5EqIEw.png" /><figcaption>Contents of locks.txt</figcaption></figure><p>I’ve used the Hydra tool for brute force to crack the password. The command I used is <strong>hydra ssh:/&lt;ip_address&gt; -l lin -P &lt;path_of_locks.txt&gt;</strong>. My goal was to establish a connect with ssh, remember the port 22 is open, the flag <strong>-l </strong>is for username and <strong>-P</strong> is for the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*Li_CR_LELjQ_4uBlGMbKtQ.png" /><figcaption>Cracking password</figcaption></figure><p>There we go, I got the password for the user <strong>lin</strong>. Lets try to login using the found credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*XwW7gDLg5pOC4TxdTWHWmg.png" /><figcaption>lin login</figcaption></figure><p>Let see what we have here by listing the file in the Desktop directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*4_MGmp7BMC-sJ7ILJNUZVA.png" /><figcaption>1st Flag</figcaption></figure><p>Here we found out flag in user.txt file.</p><h3><strong>Privilege Escalation:</strong></h3><p>For this we need to analyze the sudo files and for that I’ve use the command sudo -l, that shows that the root is in /bin/tar file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*a4HPYcusYL2nal7SASTXqw.png" /></figure><p>Lets found sudo command on <a href="https://gtfobins.github.io/gtfobins/tar/#sudo">tar | GTFOBins</a> page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*e33IFrNNyEwF8fK8J5VT1g.png" /></figure><p>Let’s execute the command we found and we’ve escalated to the root user!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*pgIF4gq1zw9k2HW8bvL7UA.png" /></figure><p>By traversing we found the root.txt, and it has the required flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*A1dQNQN1RJ8mm3FKk6HAaQ.png" /></figure><p>Thanks for reading! If you have any questions or confusions, do reach me out, I would happy to assist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bda89b808aaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TCM Security: BlackPearl]]></title>
            <link>https://medium.com/@ruth.barkat9/tcm-security-blackpearl-05321782b077?source=rss-70aedfdfff30------2</link>
            <guid isPermaLink="false">https://medium.com/p/05321782b077</guid>
            <dc:creator><![CDATA[Ruth Barkat]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 13:36:17 GMT</pubDate>
            <atom:updated>2024-03-27T13:36:17.660Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*kuebcEuo3BUgt6Ob" /></figure><p>Our main goal right now is to get full control over a computer called BlackPearl, which comes from TCM Security.</p><h4>Check Network Integration:</h4><p>To discover the IP address of the vulnerable machine, you can utilize the “ip addr” command.</p><p>Try pinging the target IP address from your host machine. If the ping is successful, it indicates that both machines are on the same network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*29ZwFepLBOYb9H0635_8rw.png" /><figcaption>ping result on local host</figcaption></figure><h4>Scanning</h4><p>Begin by initiating an nmap scan using the following command to scan the target IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*7I_zUvB84pkBIBn0OCaerg.png" /><figcaption>nmap scanning results</figcaption></figure><p>According to the nmap scan results, the HTTP service is operating on port 80, SSH service is enabled on port 22, and DNS is active on port 53. Let’s begin by examining port 80 in a web browser.</p><h4><strong>Directory Busting:</strong></h4><p>We can initiate directory busting on our target IP using ffuf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*NTkGv6fpOjKL2NdNAgpNTQ.png" /><figcaption>directory on port 80</figcaption></figure><p>We’ve discovered a link through directory busting. Upon clicking the link, a file named “secret” was downloaded. Let’s open it and see what information it contains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*s86ZHxL-7hJg5FAiHQI9YA.png" /><figcaption>content of secret file</figcaption></figure><p>The file says don’t waste time on the directory listing.</p><h4>DNS recon</h4><p>Based on the nmap scan results, we identified that DNS was running on port 53. Let’s commence DNS reconnaissance on the target IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*QLiV8FFSEscGReIX6cq_qA.png" /><figcaption>nmap scan saying 53 services are running</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*t983RymwZ9xy91loTiIU8A.png" /><figcaption>dns recon on target ip</figcaption></figure><p>The command output shows that a reverse lookup was conducted on the range from 127.0.0.0 to 127.0.0.255. It discovered a PTR (Pointer) record for the IP address 127.0.0.1, which points to <strong>blackpearl.tcm (10.0.2.5)</strong>. A PTR record is utilized for reverse DNS lookups, linking an IP address with a domain name.</p><p>To add this information to our /etc/hosts file in Linux, we can open the file with sudo privileges in the nano editor and append the target IP and domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*FJN55_pP1VypZ_lS9HbBAw.png" /></figure><p>We can verify our changes by visiting blackpearl.tcm in web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*pSrKBddWlOAmEwirsA1XcA.png" /><figcaption>Visiting blackpearl in browser</figcaption></figure><h4>Domain Directory Busting</h4><p>Now let’s start directory busting on that domain and with the target domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*WQclAG-OpzuwN97nELwufA.png" /><figcaption>directory busting results</figcaption></figure><p>Let see what we have in “navigate” directory in the web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*cvKK_ynJgdVrx67jX-AJCQ.png" /><figcaption>navigate contents</figcaption></figure><p>But the thing is we don’t have the username or a password, so we need to further work on this.</p><h4>Remote Code Execution</h4><p>We’ve found a login page on the discovered link. Now, let’s explore if there are any available exploits for the Navigate CMS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*cLUtq2ajtKhs2L3YeOfmMA.png" /></figure><p>Let’s open and explore this exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddV1fFf7wsNEwLNxwfqGxA.png" /></figure><p>The module exploits Navigate CMS 2.8’s inadequate database sanitization and a path traversal flaw in navigate_upload.php. This allows authenticated users to upload PHP files to any location, enabling unauthenticated attackers to execute arbitrary PHP code remotely.</p><h4>Exploiting vulnerability</h4><p>We need a Metasploit framework for this vulnerability to work out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*qSXdNK02847D3_bYm2Sbtw.png" /></figure><p>We found the payload path on rapid7 as given below:</p><p><a href="https://www.rapid7.com/db/modules/exploit/multi/http/navigate_cms_rce/?source=post_page-----cc6be8a0d498--------------------------------">Navigate CMS Unauthenticated Remote Code Execution</a></p><p>Copy the exploit command from Rapid7’s Metasploit Framework (msfconsole) and paste it into your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*XOwoH3aULmhx-vC-erfTSQ.png" /><figcaption>code msfconsole</figcaption></figure><p>Lets look for the options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*2WpS7zk5rW3WNgmpl2M3XQ.png" /></figure><p>Setting rhost and vhost for the exploit, and to excute the exploit use run command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*gBiEj8RGvTlv6SvKiedgbQ.png" /><figcaption>Successfully exploited</figcaption></figure><p>Executing the shell command in Meterpreter, we’ve gained access to the target system’s shell. To verify the user, we can utilize the “whoami” command, revealing that you’re “www-data.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*9G6BGtg67MM8EevgRH9O-Q.png" /><figcaption>shell cracked</figcaption></figure><h4>Interactive shell</h4><p>Let’s make the shell interactive using Python. But before that, let’s ensure Python is installed on the target system. We’ll check with the “which python” command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*_vB81kwExCwaBUACw4iuKg.png" /></figure><h4>Privilege Escalation</h4><p>Let’s escalate our privileges by searching the entire filesystem for files with the setuid bit set, suppressing error messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*m250fMLVYtVRxhhLAgyUjw.png" /><figcaption>files with setuid bit set</figcaption></figure><p>The file “/usr/bin/php7.3” with the setuid bit set. Let’s refer to GTFOBins and explore SUID binaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wcHVz5vgGpz5MTbINHdDIA.png" /></figure><p>Click on SUID, and look for PHP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TjPXixOQu4m4OUqSRmyIOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*EsDqDCQAh_KW0ub46zYayg.png" /><figcaption>command found to escalate privileges</figcaption></figure><p>Modify the command accordingly, press enter and here we go!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*nXp68AeSKcGspm2SexC38Q.png" /><figcaption>Privilege escalation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*d_cn5l80zTVzh9bINe8wpg.png" /><figcaption>(root)</figcaption></figure><p>We can navigate to the /root directory using the command “cd /root” and list the files there using the command “ls”. If the flag.txt file is present, it will be displayed in the list of files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*6kq7qO4Q9s4pd3HXy4a_qQ.png" /><figcaption>flag.txt</figcaption></figure><p>Let’s use cat command to capture the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*M6ngxCo2bHub6u1YRQpTRw.png" /></figure><p>We have the flag contents and <strong>Congrats!!!</strong></p><p>This walkthrough finishes here!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05321782b077" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe — SQLMAP]]></title>
            <link>https://medium.com/@ruth.barkat9/tryhackme-sqlmap-a4ccc83a3007?source=rss-70aedfdfff30------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4ccc83a3007</guid>
            <dc:creator><![CDATA[Ruth Barkat]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 09:55:50 GMT</pubDate>
            <atom:updated>2024-03-27T09:55:50.629Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe — SQLMAP</h3><p>Learn about and use Sqlmap to exploit the web application</p><h4><strong>You can skip the theory and jump to the Interesting part, The Challenge</strong></h4><h4>Task1: Introduction</h4><h4><strong><em>In this room, we will learn about sqlmap and how it can be used to exploit SQL Injection vulnerabilities.</em></strong></h4><h4>What is Sqlmap?</h4><p>SQLmap is a widely-used open-source tool designed to automate the process of discovering and exploiting SQL injection vulnerabilities. It helps cyber security professionals to identify vulnerabilities in web applications and databases by identifying potential weaknesses and providing insights for remediation. With its detection tools and range of features, SQLmap is an invaluable asset for penetration testers and security analysts alike.</p><h4>Installing Sqlmap</h4><p>If you’re using Kali Linux, sqlmap is pre-installed. Otherwise, you can download it here:</p><p><a href="https://github.com/sqlmapproject/sqlmap">GitHub - sqlmapproject/sqlmap: Automatic SQL injection and database takeover tool</a></p><h4>Using Sqlmap</h4><p><a href="https://tryhackme.com/room/sqlmap">Here</a> are important commands and descriptions given in the room that are worth reading, so do give it a shot.</p><h4>Task2: Using Sqlmap</h4><ul><li>Which flag or option will allow you to add a URL to the command?</li></ul><p><em>-u</em></p><ul><li>Which flag would you use to add data to a POST request?</li></ul><p><em>— data</em></p><ul><li>There are two parameters: username and password. How would you tell sqlmap to use the username parameter for the attack?</li></ul><p><em>-p username</em></p><ul><li>Which flag would you use to show the advanced help menu?</li></ul><p><em>-hh</em></p><ul><li>Which flag allows you to retrieve everything?</li></ul><p><em>-a</em></p><ul><li>Which flag allows you to select the database name?</li></ul><p><em>d</em></p><ul><li>Which flag would you use to retrieve database tables?</li></ul><p><em>— tables</em></p><ul><li>Which flag allows you to retrieve a table’s columns?</li></ul><p><em>— columns</em></p><ul><li>Which flag allows you to dump all the database table entries?</li></ul><p><em>— dump-all</em></p><ul><li>Which flag will give you an interactive SQL Shell prompt?</li></ul><p><em>— sql-shell</em></p><ul><li>You know the current db type is ‘MYSQL’. Which flag allows you to enumerate only MySQL databases?</li></ul><p><em>— dbms=MySQL</em></p><h4>Task3: SQLMap Challenge</h4><p><em>Deploy the machine attached to this task, then navigate to MACHINE_IP (this machine can take up to 3 minutes to boot)<br>Task: We have deployed an application to collect ‘Blood Donations’. The request seems to be vulnerable.<br>Exploit a SQL Injection vulnerability on the vulnerable application to find the flag.</em></p><p>To solve this challenge, I open the web application <em>‘Blood Donations’.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*N_xodNrHrO8R5ek7QQv39g.png" /></figure><p><em>However, there was nothing much that I saw so I simply move to the next step that is doing the scanning on the IP using “nmap -Pn -v — open 10.10.101.163”, and found that only one port is opened that is tcp 80 where the application was running.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*LtcRr4Ocev8aFlFA5UCQyw.png" /></figure><p>So, I go for inspecting the source code and there was just a simple text, and so I just simply tired with robust.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hCz6dk3MLwo6UfjzSSXPYA.png" /></figure><p>Since I need the directory name so I go do the directory busting on this. I used the tool ffuf along with small.txt wordlist for directory busting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*GiN2i1ROEkSFE-3tK5U86Q.png" /><figcaption>ffuf results</figcaption></figure><p>Found directory named “blood”, so let see what we have in this directory.</p><ul><li><strong>What is the name of the interesting directory ?<br>blood</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDwveItCR8LG319BHsreCA.png" /><figcaption>contents of blood directory</figcaption></figure><p>Looks like some login and registration page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B-Njuz_N8VzQBdcv9mQujQ.png" /><figcaption>results of login page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xzcW8Po2MLy3nMZcXQhQbw.png" /><figcaption>results of register directory</figcaption></figure><p>I’ve used SQLMap to enumerate the Databases for usernames, tables, and all data that can be found in it.</p><p>I used the following command to know the current user of the database.</p><p><strong><em>sqlmap -u http://10.10.153.126/blood/login.php — current-user — forms</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*zXupdKlL9JWnW0eLYg-gqA.png" /><figcaption>SQLMap results</figcaption></figure><p>. <strong>Who is the current db user?<br> root</strong></p><p>Now for flag you need to have tables and its contents, so I used sqlmap tool. I use command <strong><em>sqlmap -u </em></strong><a href="http://10.10.153.126/blood/"><strong><em>http://10.10.153.126/blood/</em></strong></a><strong><em> -dbs — forms </em></strong>to get the name of the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*EietbLxsbGE4oesSgC9YSg.png" /><figcaption>name of the database</figcaption></figure><p>So now I have the name of the database I can get the tables and their contents, I used the command <strong><em>sqlmap -u </em></strong><a href="http://10.10.153.126/blood/"><strong><em>http://10.10.153.126/blood/</em></strong></a><strong><em> -D blood — tables — forms </em></strong>, which gives me the tables of the database which are as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*dMuYthIATDoM07ZkRofV6g.png" /><figcaption>name of tables</figcaption></figure><p><strong><em>F</em></strong>inally, for the contents of the table I have used <strong><em>sqlmap -u </em></strong><a href="http://10.10.153.126/blood/"><strong><em>http://10.10.153.126/blood/</em></strong></a><strong><em> -D blood -T flag — dump — forms </em></strong>that dumps the content and from where we get the final flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*DJyxT9ucFqAE92_XHD6AeQ.png" /><figcaption>flag table contents</figcaption></figure><ul><li><strong>What is the final flag?<br>thm{sqlm@p_is_L0ve}</strong></li></ul><p>Congrats! you got this room completed!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*ckquGhh0pFcgH3PcQ1TlJg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4ccc83a3007" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe — Corridor]]></title>
            <link>https://medium.com/@ruth.barkat9/tryhackme-corridor-3277492b137c?source=rss-70aedfdfff30------2</link>
            <guid isPermaLink="false">https://medium.com/p/3277492b137c</guid>
            <dc:creator><![CDATA[Ruth Barkat]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 09:06:01 GMT</pubDate>
            <atom:updated>2024-02-23T09:06:01.203Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe — Corridor</h3><p>Can you escape the Corridor?</p><p>Corridor Room Link: <a href="https://tryhackme.com/room/corridor">https://tryhackme.com/room/corridor</a></p><h4><strong>Task Description:</strong></h4><p><em>You have found yourself in a strange corridor. Can you find your way back to where you came?<br>In this challenge, you will explore potential IDOR vulnerabilities. Examine the URL endpoints you access as you navigate the website and note the hexadecimal values you find (they look an awful lot like a hash, don’t they?). This could help you uncover website locations you were not expected to access.</em></p><h4>Analysis:</h4><p>What we’re required here is to find the key to door where we came from.</p><h4>Solution:</h4><p>First, enter the corridor by I started off by entering each of the room to find the one with the key, but every room was empty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EqsSBH944CQ9K0bQ5E8GxA.png" /></figure><p>However, by observing closing I found that every door has a unique string in the URL, when opening the door.</p><p>By the hint provided in the room I assumed it is a hash. So, I use <a href="https://crackstation.net/">https://crackstation.net/</a> to find the key. I tried the first string and it turned out to be 13 using md-5, so on and so forth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N5HED3azrJp-W2bIaXr-XQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z50rVJpmQ1VxE8w08LpQKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*w-0qbKuVxXl7FKmpDPLSXA.png" /><figcaption>the list I got after cracking the hash</figcaption></figure><p>But still I am unable to find the exact key to solve the room. Then, what I try is layman’s logic(may not make sense to many), that I want my way back from where I enter and it should be either door number 0 or 14, so I tired the both the strings in the URL using <a href="https://www.miraclesalad.com/webtools/md5.php">https://www.miraclesalad.com/webtools/md5.ph p</a>and luckily I got the room solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xcdmun3HzuXdAX4vQ7vG2Q.png" /><figcaption>Correct Flag</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Gq1DO5_TpJCrQOMN4WDNg.png" /><figcaption>Room Solved</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3277492b137c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Port Swigger — Path Traversal]]></title>
            <link>https://medium.com/@ruth.barkat9/port-swigger-path-traversal-ef0070f2505e?source=rss-70aedfdfff30------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef0070f2505e</guid>
            <dc:creator><![CDATA[Ruth Barkat]]></dc:creator>
            <pubDate>Thu, 15 Feb 2024 19:23:17 GMT</pubDate>
            <atom:updated>2024-02-15T19:23:17.949Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Port Swigger — Path Traversal</strong></h3><h3>Lab: File path traversal, traversal sequences stripped non-recursively</h3><p><strong>Description:</strong></p><p>This lab contains a path traversal vulnerability in the display of product images.<br>The application strips path traversal sequences from the user-supplied filename before using it.<br>To solve the lab, retrieve the contents of the /etc/passwd file.</p><p><strong>Solution:</strong></p><p>First step, is the analysis of the website. It looks like a shop’s website that has product image and its description, stipulates the possible path traversal vulnerability in the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idrzVvf71-tZieY3yIemGA.png" /></figure><p>Therefor, we’ll open the GET request for an image file( incase you’re not able to view the image request in HTTP history , make sure you have enabled the image filter from the filters section).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XBDc2Yp4_0XycO6dBqt9YA.png" /></figure><p>Send this GET request where we have filename parameter to the Repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*Jmq5dXqoOXNrfL-KoRwEMA.png" /></figure><p>In the lab description, it’s mentioned that using basic path traversal sequences like “../” won’t result in an actual path traversal. If these sequences are removed from the user input without considering their context, it just removes all instances of “../” from the filename.</p><p>When inputting “../../../etc/passwd,” it becomes the relative path “etc/passwd,” which doesn’t exist. Trying “..//..//etc/passwd” to make an absolute “/etc/passwd” also doesn’t find a file.</p><p>But if only the exact “../” sequences are removed, we can provide a string that represents a path traversal string after removal. So, “....//” becomes “../” (the first two dots and the second slash stay after removing “../”). “..././” also works the same way.</p><p>To get the desired results alter the filename parameter to ....//....//....//etc/passwd as show in the picture below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*Ze-K_LOg_7RW_ia4XMrodw.png" /></figure><p>And sent this request to the Response, the contents are shown there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*JQcY_Ozxuk0wbg4V5EVLGw.png" /></figure><p>Meanwhile, your status for the Lab changed to “Solved”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-GknHdJB0QPzkUD_gH3Sdg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef0070f2505e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Port Swigger — Path traversal]]></title>
            <link>https://medium.com/@ruth.barkat9/port-swigger-path-traversal-79bcf3a4bdae?source=rss-70aedfdfff30------2</link>
            <guid isPermaLink="false">https://medium.com/p/79bcf3a4bdae</guid>
            <dc:creator><![CDATA[Ruth Barkat]]></dc:creator>
            <pubDate>Thu, 15 Feb 2024 17:52:47 GMT</pubDate>
            <atom:updated>2024-02-15T18:28:36.460Z</atom:updated>
            <content:encoded><![CDATA[<h3>Port Swigger — Path traversal</h3><p><strong>(Lab: </strong><a href="https://portswigger.net/web-security/file-path-traversal"><strong>File path traversal</strong></a><strong>, traversal sequences blocked with absolute path bypass)</strong></p><p><strong>Description:</strong></p><p>This lab contains a path traversal vulnerability in the display of product images.<br>The application blocks traversal sequences but treats the supplied filename as being relative to a default working directory.<br>To solve the lab, retrieve the contents of the /etc/passwd file.</p><p><strong>Solution:</strong></p><p>First step, is the analysis of the website. It looks like a shop’s website that has product image and its description, stipulates the possible path traversal vulnerability in the website.</p><p>Therefor, we’ll open the GET request for an image file( incase you’re not able to view the image request in HTTP history , make sure you have enabled the image filter from the filters section).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R59cAuYl3tcMpZgjHcr5kg.png" /></figure><p>Send this GET request where we have filename parameter to the Repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*Jmq5dXqoOXNrfL-KoRwEMA.png" /></figure><p>Once we have the file where we want to make parameter modifications, we changed the filename 8.jpgto an absolute path as /etc/passwd . Send the request to Response, and the contents are shown in the response tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*nrohb2DSWfR8NXXz9EtgQg.png" /></figure><p>Meanwhile, your status for the Lab changed to “Solved”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*tYLIUGLiohXTAQaNvoccGg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79bcf3a4bdae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Port Swigger — Path traversal]]></title>
            <link>https://medium.com/@ruth.barkat9/port-swigger-path-traversal-640a198a3c8d?source=rss-70aedfdfff30------2</link>
            <guid isPermaLink="false">https://medium.com/p/640a198a3c8d</guid>
            <dc:creator><![CDATA[Ruth Barkat]]></dc:creator>
            <pubDate>Thu, 15 Feb 2024 17:39:58 GMT</pubDate>
            <atom:updated>2024-02-15T18:13:03.782Z</atom:updated>
            <content:encoded><![CDATA[<h3>Port Swigger — Path traversal</h3><p><strong>(Lab: </strong><a href="https://portswigger.net/web-security/file-path-traversal"><strong>File path traversal</strong></a><strong>, simple case)</strong></p><p><strong>Description:</strong></p><p>This lab contains a path traversal vulnerability in the display of product images.<br>To solve the lab, retrieve the contents of the /etc/passwd file.</p><p><strong>Solution:</strong></p><p>First step, is the analysis of the website. It looks like a shop’s website that has product image and its description, stipulates the possible path traversal vulnerability in the website.</p><p>Therefor, we’ll open the GET request for an image file( incase you’re not able to view the image request in HTTP history , make sure you have enabled the image filter from the filters section).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R59cAuYl3tcMpZgjHcr5kg.png" /></figure><p>Send this request to the Repeater.</p><p>So what we’re required to do here to traverse the path till we go the desired file that is /etc/passwd. For traversing it we modify the parameters by ../(if we try with one level-up i.e. ../ it will throw an error &quot;No such file&quot;once you traverse to three levels where actually file is located../../../etc/passwd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*3a9N9rA1rj7DmRSGBb4cdQ.png" /></figure><p>Meanwhile, your status for the Lab changed to “Solved”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*DaXKaoyUUEY2u1aDIPbXUg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=640a198a3c8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe-ffuf]]></title>
            <link>https://medium.com/@ruth.barkat9/tryhackme-ffuf-cd17bbf00db0?source=rss-70aedfdfff30------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd17bbf00db0</guid>
            <dc:creator><![CDATA[Ruth Barkat]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 18:45:16 GMT</pubDate>
            <atom:updated>2024-02-14T18:45:16.879Z</atom:updated>
            <content:encoded><![CDATA[<h4>Task-1 Introduction</h4><p>Get your ffuf and seclists installed in your linux terminal.</p><h4><strong>Task-2 </strong>Basics</h4><p><strong>Q1- What is the first file you found with a 200 status code?</strong></p><p><strong>Command:</strong> ffuf -u http://10.10.224.209/FUZZ -w /usr/share/seclists/Discovery/Web-Content/big.txt</p><p>Answer: favicon.ico</p><h4><strong>Task-3 </strong>Finding pages and directories</h4><p><strong>Q1- What text file did you find?</strong></p><p>Command: ffuf -u http://10.10.224.209/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-files-lowercase.txt</p><p>Answer: robots.txt</p><p><strong>Q2-What two file extensions were found for the index page?</strong></p><p>Command: fuf -u http://10.10.224.209/indexFUZZ -w /usr/share/seclists/Discovery/Web-Content/web-extensions.txt</p><p>Answer:php,phps</p><p><strong>Q3-What page has a size of 4840?</strong></p><p>Command: ffuf -u http://10.10.224.209/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-words-lowercase.txt -e .php,.txt</p><p>Answer: about.php</p><p><strong>Q4-How many directories are there?</strong></p><p>Command: ffuf -u http://10.10.224.209/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories-lowercase.txt</p><p>Answer: 4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*ipAAHDTCmubIcv2VYwqWZA.png" /></figure><h4>Task-4 Using Filters</h4><p><strong>Q1- After applying the fc filter, how many results were returned?</strong></p><p>Command: ffuf -u http://10.10.238.252/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-files-lowercase.txt -fc 403</p><p>Answer: 11</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*5I4JhOXicUnmC2QFPm7j2Q.png" /></figure><p><strong>Q2- After applying the mc filter, how many results were returned?</strong></p><p>Command: ffuf -u http://10.10.238.252/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-files-lowercase.txt -mc 200</p><p>Answer: 6</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*omFDsAuOV71dciWvApOR8w.png" /></figure><p><strong>Q3- Which valuable file would have been hidden if you used </strong><strong>-fc 403 instead of </strong><strong>-fr?</strong></p><p>Command: ffuf -u http://10.10.238.252/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-files-lowercase.txt -fr &#39;/\..*&#39;</p><p>Answer: wp-forum.phps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*3wQMttIXMLYksvoh6bUHQg.png" /></figure><h4>Task-5 Fuzzing parameters</h4><p><strong>Q1-What is the parameter you found?</strong></p><p>Command:$ ffuf -u &#39;http://10.10.198.26/sqli-labs/Less-1/?FUZZ=1&#39; -c -w /usr/share/seclists/Discovery/Web-Content/raft-medium-words-lowercase.txt -fw 39</p><p>Answer: id</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*EX8cxatwAelAwN9PiII_pw.png" /></figure><p><strong>Q2- What is the highest valid id?</strong></p><p>Command: $ ruby -e &#39;(0..255).each{|i| puts i}&#39; | ffuf -u &#39;http://10.10.198.26/sqli-labs/Less-1/?id=FUZZ&#39; -c -w - -fw 33</p><p>Answer: 14</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*rH5OYCqmFiW4wGWYNIhEaw.png" /></figure><p><strong>Q3- What is Dummy&#39;s password?</strong></p><p>Command: $ ffuf -u http://10.10.198.26/sqli-labs/Less-11/ -c -w /usr/share/seclists/Passwords/Leaked-Databases/hak5.txt -X POST -d &#39;uname=Dummy&amp;passwd=FUZZ&amp;submit=Submit&#39; -fs 1435 -H &#39;Content-Type: application/x-www-form-urlencoded&#39;</p><p>Answer: p@ssword.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*W-rDiqZ3imXWhwjJIkNPoQ.png" /></figure><h4>Task-6 Finding vhosts and subdomains</h4><p><strong>Q- I read the task material</strong></p><p>Answer: No answer needed.</p><h4>Task-7 Proxifying ffuf traffic</h4><p><strong>Q- I understand how to make the traffic go through a proxy.</strong></p><p>Answer:No answer needed.</p><h4>Task 8 Questions Reviewing the options</h4><p><strong>Q1- How do you save the output to a markdown file (ffuf.md)?</strong></p><p>Answer: -of md -o ffuf.md</p><p><strong>Q2- How do you re-use a raw http request file?</strong></p><p>Answer: -request</p><p><strong>Q3- How do you strip comments from a wordlist?</strong></p><p>Answer: -ic</p><p><strong>Q4- How would you read a wordlist from STDIN?</strong></p><p>Answer: -w -</p><p><strong>Q5- How do you print full URLs and redirect locations?</strong></p><p>Answer: -v</p><p><strong>Q6- What option would you use to follow redirects?</strong></p><p>Answer: -r</p><p><strong>Q7- How do you enable colorized output?</strong></p><p>Answer: -c</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd17bbf00db0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>