<?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 Malav Khatri on Medium]]></title>
        <description><![CDATA[Stories by Malav Khatri on Medium]]></description>
        <link>https://medium.com/@malav.khatri.mk30?source=rss-7e801f5fda8c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Dl7XH5sJSzMxWPDgchnVpw.jpeg</url>
            <title>Stories by Malav Khatri on Medium</title>
            <link>https://medium.com/@malav.khatri.mk30?source=rss-7e801f5fda8c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 14:31:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@malav.khatri.mk30/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[Security Misconfiguration of the Chatbot]]></title>
            <link>https://medium.com/@malav.khatri.mk30/security-misconfiguration-of-the-chatbot-9d9170d52973?source=rss-7e801f5fda8c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d9170d52973</guid>
            <category><![CDATA[security-misconfiguration]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[chatbot-security]]></category>
            <category><![CDATA[bugbounty-tips]]></category>
            <dc:creator><![CDATA[Malav Khatri]]></dc:creator>
            <pubDate>Wed, 27 Dec 2023 18:21:08 GMT</pubDate>
            <atom:updated>2024-01-28T06:05:28.191Z</atom:updated>
            <content:encoded><![CDATA[<p>Chatbots are becoming increasingly popular and effective in a variety of fields, including customer service, e-commerce, education, and health care. They offer a practical and interactive means for users to interact with web applications and obtain help, entertainment, or information. Chatbots, on the other hand, represent considerable security issues and threats, particularly if they are not properly configured. Security misconfiguration is a type of vulnerability that occurs when an application or a system is not set up securely, leaving it exposed to potential attacks. We will look at typical security misconfiguration that could harm your web application in this blog article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*jbJu3tacE-f_ddPXXKrXew.png" /></figure><ol><li>ChatBot pre-chat form is still exist after logout</li><li>ChatBot session not expire after logout</li><li>ChatBot user authentication mode disabled</li><li><strong>ChatBot pre-chat form is still exist after logout</strong></li></ol><p>Description: <br>Sometimes the application forgets to remove the ChatBot pre-chat form after the user gets logged out. If someone with physical access to the system is able to read the chat, Download the chat, mislead the conversation, or result in PII leakage.</p><p>How to Find this vulnerability:<br>1. Login to the application<br>2. Chat with chatbot<br>3. Logout to the application<br>4. Check if previous chat is still exist or not <br>5. Check any PII in the cookies of the chatbot</p><p>2. <strong>ChatBot session not expire after logout</strong></p><p>Description:</p><p>The chatbot’s session was not expressly ended upon the user’s logout. Because the chatbot’s components do not specifically require a user to be logged in, this might have resulted in chat data from a prior session being accessible to another user on a shared computer. As an attacker would need to have technical know-how and script access to the machine in order to re-add Chatbot script components to a page and transfer over cookies to the next session, this is regarded as low risk.</p><p>How to find this vulnerability:</p><ol><li>Login to your account <br>2. Identify which session cookie or token is being used for the chatbot<br>3. After that Copy the session cookies or token<br>4. When the cookies arrive, log out of the account now.<br>5. Refresh the page and check the copied cookie is still exist or not.<br>6. If cookies are still in place, try chatting with the chatbot.<br>7. If there are no cookies, Manually re-enter the cookie and verify whether the session has expired.</li></ol><p>3. <strong>ChatBot user authentication mode disabled</strong></p><p>Description:<br>User authentication mode also helps make sure that one user can’t impersonate another user. User authentication mode is a feature of the Chatbots, that allows you to identify and verify your registered users across different devices and platforms. It also helps you prevent unauthorised access to your user data and chat history by using a security signature and a hashed user ID. Your chatbot may be vulnerable to impersonation attacks, where an attacker can pretend to be another user by using their email address. This can result in the attacker gaining access to the user’s chat history, personal information, or sensitive data. It can also affect the user experience and trust, as the user may receive unwanted messages or notifications from the chatbot or other users.</p><p>How to find this vulnerability</p><ol><li>Open the chatbot<br>2. Start the conversation with the chatbot or support team<br>3. Open the developer tools of the unauthenticated browser<br>4. Execute the following command</li></ol><p>Intercom Chatbot Widget</p><pre>Intercom(&#39;boot&#39;, { email: &#39;foo@victim.com&#39; });</pre><p>HelpCrunch Chatbot Widget</p><pre>HelpCrunch(&#39;userAuth&#39;, {user_id: &#39;foo@victim.com&#39;});</pre><p>If the chatbot widget is vulnerable, it will return “undefined” and you will be able to access the other user’s chat. To fix this vulnerability, the application needs to enable user authentication mode via JS API.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d9170d52973" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I am able to find XSS on Boat Chat Bot]]></title>
            <link>https://medium.com/@malav.khatri.mk30/how-i-am-able-to-find-xss-on-boat-chat-bot-3483bf3f1ec0?source=rss-7e801f5fda8c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3483bf3f1ec0</guid>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[cross-site-scripting]]></category>
            <category><![CDATA[boat-lifestyle]]></category>
            <category><![CDATA[xs]]></category>
            <dc:creator><![CDATA[Malav Khatri]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 08:26:14 GMT</pubDate>
            <atom:updated>2023-01-30T08:26:14.550Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi there! My name is Malav Khatri, and I’m a Security Researcher. I’m going to share how I am able to get XSS in the chatbot on the boat-lifestyle website through this blog. So without wasting more time makes it possible to begin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*Xx2EWt5k7ohDBCsg.gif" /></figure><p>Chatbots have become an increasingly popular tool for businesses to interact with customers and provide quick and efficient customer service. However, like any software, they are vulnerable to security threats such as Cross-Site Scripting (XSS).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*n5ICzX_8OCQma8HY.gif" /></figure><p>While surfing on the site I came across the Chatbot, There is some Input field for getting live chat support. So when I clicked, it opened the chat Box support so I filled out the main stuff like Name, Email, and Mobile number and it took me to the chatting page where we can talk with their support team.</p><p>In general, a chatbot is more of a Q&amp;A system that helps solve end-user problems by providing the necessary information for their questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oLiFi7M4C_XcbM8TnOnPAQ.png" /></figure><p>I composed a few arbitrary words. Unexpectedly I saw that there is a possibility for getting the duplicate of our talk with the help. So I tapped on it and finished the visit meeting.</p><p>Again I followed a similar cycle for what it’s worth and on second thought of arbitrary words I entered the XSS payload. And found the xss.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/0*GyQDCHBjgVBWlcaz.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDl7-KqpsVQBltbd3obIVQ.png" /></figure><p><strong>Conclusion</strong></p><p>This article covered cross-site scripting and how it can affect websites which contain the chatbot. These attacks are caused by user-generated data and so the solution is to be able to filter the data before sending them to the server and vice-versa.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3483bf3f1ec0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unauthenticated Cache Purge]]></title>
            <link>https://medium.com/@malav.khatri.mk30/unauthenticated-cache-purge-de151856123d?source=rss-7e801f5fda8c------2</link>
            <guid isPermaLink="false">https://medium.com/p/de151856123d</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[p5]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Malav Khatri]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 07:02:51 GMT</pubDate>
            <atom:updated>2023-01-30T07:05:15.632Z</atom:updated>
            <content:encoded><![CDATA[<p>My name is Malav Khatri from India, I am a bug bounty hunter and security researcher. Today I am going to tell you How I am able to get 80$ by revealing P5 Vulnerability on a Private program. Along these lines, We should get started without wasting any longer time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*dGE09MFa7tOyUZqP.gif" /></figure><p>Cache purging is a technique used to clear cached web pages, images, and other resources on websites. It is a useful tool for website administrators to make updates to their website without waiting for the cache to expire. However, the use of cache purging is not without its risks. Unauthorized cache purging, in particular, is a security vulnerability that can lead to significant harm.</p><p><strong>What is Unauthorized Cache Purging?</strong></p><p>Cache Purge means to erase the stored cache. So Assuming you clean the cache, It implies the next time you visit that site. it will produce the page by pulling data from the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pA8sxSJjvs6a3yr7.png" /><figcaption>Cache working</figcaption></figure><p>Cache purging is a technique used to clear cached web pages, images, and other resources on websites. If anyone can issue a PURGE request for any resources and invalidate your caches, That can lead to increased the bandwidth costs but also potential Denial of Service Attack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/135/0*xZwHoQzlh4inEOkG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*Wa5ABFirmmwSOVuX6hg13A.png" /></figure><p><strong>Mitigation</strong></p><p>Disallow cache purge requests or limit to authenticated users only.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de151856123d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NCIIPC — How I am able to find sensitive information in .gov.in by using google dorks]]></title>
            <link>https://medium.com/@malav.khatri.mk30/nciipc-how-i-am-able-to-find-sensitive-information-in-gov-in-by-using-google-dorks-8ae0b9fbc914?source=rss-7e801f5fda8c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ae0b9fbc914</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[acknowledgement]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[nciipc]]></category>
            <dc:creator><![CDATA[Malav Khatri]]></dc:creator>
            <pubDate>Sun, 21 Aug 2022 18:42:06 GMT</pubDate>
            <atom:updated>2022-08-21T18:57:17.348Z</atom:updated>
            <content:encoded><![CDATA[<h3>NCIIPC — How I am able to find sensitive information in .gov.in by using google dorks</h3><p>In this blog, I am going to show you how a low severity vulnerability can be affected critical information disclosure to the citizens.</p><p>When I was new to bug bounty, I always use google dorks for a better and broad scope. Once my friend told me that government entities like NCIIPC and Cert-In run their bug submission programs. So, I have decided to test the government website ethically to secure the government domains from cybercriminals.</p><p>Using google dorks I have found a dictionary listing vulnerability in the government domain. And after some surfing on the website, I came to the upload directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Q3M2hdkvk8oZkbUIZyXcQ.png" /></figure><p>In this directory there was one folder named “applicationdocs”, In this directory, there are more folders available. So, I decided to surf every folder one by one and I found that every folder is containing the identity proof of the citizen. so, the vulnerability impact is not that big but by using that vulnerability I was able to find the identity proof of the citizen which is very critical information for any citizen.</p><p>So, I decided to report this vulnerability to NCIIP (National Critical Information Infrastructure Protection Centre).</p><p>Reporting Date: 03 October 2021</p><p>Acknowledge Date: 04 October 2021</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nFZczWg6mH56zOIpqeJASw.jpeg" /></figure><h4>This bug is ethically reported &amp; successfully patched.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ae0b9fbc914" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB-Faculty]]></title>
            <link>https://medium.com/@malav.khatri.mk30/htb-faculty-c2e782b5aa1e?source=rss-7e801f5fda8c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2e782b5aa1e</guid>
            <category><![CDATA[faculty]]></category>
            <category><![CDATA[faculty-walkthrough]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <category><![CDATA[hack-the-box-writeup]]></category>
            <dc:creator><![CDATA[Malav Khatri]]></dc:creator>
            <pubDate>Sun, 21 Aug 2022 11:00:39 GMT</pubDate>
            <atom:updated>2022-08-21T11:00:39.319Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Overview</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*CzC6hepcEMu6WncC3TFMlw.png" /></figure><p><strong>Nmap</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*BeSS8k0A0XemDkBqJmHSww.png" /><figcaption>1. Nmap Result</figcaption></figure><h4>Directory Enumeration</h4><blockquote>Now I started the directory enumeration and found the login page for admin (</blockquote><blockquote>/admin).</blockquote><p><strong>SQL Injection</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TzlirAAI01h5OXV2yh7Rhg.png" /><figcaption>2. SQL Injection Login Bypass</figcaption></figure><p>Now, I need to do some more enumeration in the admin portal and found that there is one download pdf function available. So, I have decided to do more enumerate for the same and found that it uses mpdf to convert the pdf files. And it is using double urlencoding + base64 encoding so I just decode it with the help of cyber chef. And after generating the pdf you can download it from /mpdf/tmp/&lt;name of pdf file&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0QRQc4oivvQN4crIbmCnw.png" /><figcaption>3. PDF</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*-ckSBUVCw_oaQiknFkIXRQ.png" /><figcaption>4. PDF File Name</figcaption></figure><p>Now, it is time to find the payload which includes files from the local filesystem.</p><p>So, I use</p><blockquote>&lt;annotation file=”/etc/passwd” content=”/etc/passwd” icon=”Graph” title=”Attached File: file” pos-x=”100&quot; /&gt;</blockquote><p>and encode it with double URL Encoding and Base64 encoding using <a href="https://gchq.github.io/CyberChef">cyber chef</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NvyOVKosR73eFtq4bqhEYQ.png" /><figcaption>5. /etc/passwd file</figcaption></figure><p>Now copy the output from cyberchef and replace it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2R4cvRHUEGD1BnaCu7UnaA.png" /><figcaption>6. PDF file name</figcaption></figure><p>Now, I need to generate the pdf and download it. Then I have to request to <a href="http://faculty.htb/mpdf/temp/">http://faculty.htb/mpdf/temp/</a>&lt;file name&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oa9uZOIjSEyS76A2kZ_4Vg.png" /><figcaption>7. Downloaded PDF</figcaption></figure><p>Now, open the downloaded pdf and look for the annotation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*OWm5Beto-TOS6E_itdwqTw.png" /><figcaption>8. /etc/passwd</figcaption></figure><p>In <strong>etc/passwd, </strong>Two users can be found: <strong>developer</strong> and <strong>gbyolo</strong></p><p>After some trial and error, I decided to surf more and found the <a href="http://faculty.htb/admin/ajax.php?action=get_schedule">http://faculty.htb/admin/ajax.php?action=get_schedule</a></p><p>It will give me the path of internal files. “/var/www/scheduling/admin/admin_class.php”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KJNrwt7_PjkRBrG-vcVIdw.png" /><figcaption>9. Internal Path Disclosure</figcaption></figure><p>after some more enumeration, I found out the file which contains the DB password</p><p>/var/www/scheduling/admin/db_connect.php</p><p>and for downloading the file I have to use the same method as we download the etc/passwd file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oMQZKHVD5ZlF54Kzuff14A.png" /><figcaption>10. DB_Connect File</figcaption></figure><p>Download the file and open it, it will give you the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*WcQYnn6_cqERWQ2RXrcUuA.png" /><figcaption>11. Password</figcaption></figure><p>After some more enumeration, I found out that it is the password for the user <strong>gbyolo.</strong></p><p>gbyolo: Co.met06aci.dly53ro.per</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*JOE_irTPPGkDP7iy7tixoA.png" /><figcaption>12. SSH Login Sucessfully</figcaption></figure><p>After login, I found out user developer is authorized to run command /use/local/bin/meta-git</p><p>so I used to command and grab RSA key it will get you the RSA key for user developer.</p><blockquote>sudo -u developer meta-git clone ‘sss | cat ~/.ssh/id_rsa’ meta git cloning into ‘sss | cat ~/.ssh/id_rsa’ at id_rsa meta git cloning into ‘sss | cat ~/.ssh/id_rsa’ at id_rsa</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UY8MvM0X1kY73XSuDKj7Rw.png" /><figcaption>13. SSH key for user developer</figcaption></figure><p>Now give the proper permission to rsa key and login with the user developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*PLSEuexAmAlwO8ku1BcnXg.png" /><figcaption>14. Login with the user Developer</figcaption></figure><blockquote>cat /user.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*FNFaXj-9HUsFEhSHb8gDbA.png" /><figcaption>15. user.txt</figcaption></figure><p>After running the linpeash.sh script, I found out that gdb can be run as root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIX_kLa92Z0XwTqh0nXM-Q.png" /><figcaption>16. Linpeash.sh</figcaption></figure><p>Now we are going to run GDB, To exploit gdb, we really want to track down the process that runs as root and connected the gdb. (PID: 729)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XChV7j8dOv4hP9fUygVc9Q.png" /><figcaption>17. Exploit for the GDB</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*1OCRKkp5VSZpOnpvQcUJjg.png" /><figcaption>18. Exploit for the GDB</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*YlTNwLwLaDqU7An775W2kw.png" /><figcaption>19. Gain the shell of root use</figcaption></figure><p>Thank You for reading my write-up!</p><h3>Keep an eye out for my future write-ups!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2e782b5aa1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>