<?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 Jagat Singh on Medium]]></title>
        <description><![CDATA[Stories by Jagat Singh on Medium]]></description>
        <link>https://medium.com/@JackCartal?source=rss-596bfd15a481------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YYOTEkuiQwWfHT9woCOKGQ.jpeg</url>
            <title>Stories by Jagat Singh on Medium</title>
            <link>https://medium.com/@JackCartal?source=rss-596bfd15a481------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:28:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@JackCartal/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[Hello, my name is Jagat Singh and I'm a security researcher.]]></title>
            <link>https://medium.com/@JackCartal/hello-my-name-is-jagat-singh-and-im-a-security-researcher-7d33c2267cb5?source=rss-596bfd15a481------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d33c2267cb5</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Jagat Singh]]></dc:creator>
            <pubDate>Fri, 04 Aug 2023 17:25:48 GMT</pubDate>
            <atom:updated>2023-08-04T17:54:34.398Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8M8IaXMnoIU_WoGFxi-_-Q.png" /></figure><p>Hello, my name is Jagat Singh and I&#39;m a security researcher. I have discovered a serious vulnerability in Indeed.com, the popular job search platform. This vulnerability allows anyone to delete any user&#39;s account permanently without their consent or knowledge. This is a type of attack known as Cross-Site Request Forgery (CSRF), which exploits the trust that a website has in a user&#39;s browser. In this blog post, I will explain how I found this vulnerability, how it works, and what are the possible consequences of exploiting it.</p><p>## How I found the vulnerability<br>I was browsing Indeed.com one day, looking for some job opportunities in the field of cybersecurity. I noticed that the website had a feature to close your account, which was located in the settings page. I was curious about how this feature worked, so I clicked on it and saw a confirmation window. The window said that closing your account was an irreversible action and that I had to click OK to proceed. I decided not to close my account, so I clicked Cancel and returned to the settings page.</p><p>However, something caught my eye in the URL bar of my browser. The URL of the confirmation window was something like this:</p><p>`https://www.indeed.com/account/delete?email=jagatsingh%40gmail.com&amp;token=1234567890`</p><p>I noticed that the URL contained two parameters: `email` and `token`. The `email` parameter was my email address, which was associated with my Indeed account. The `token` parameter was a random string of numbers, which I assumed was some kind of security measure to prevent unauthorized account deletion.</p><p>I wondered what would happen if I changed these parameters in the URL. For example, what if I changed the `email` parameter to someone else&#39;s email address? Would I be able to delete their account instead of mine? And what if I changed the `token` parameter to something else? Would the website still accept my request to delete the account?</p><p>To test these hypotheses, I opened a new tab in my browser and copied the URL of the confirmation window. Then, I modified the `email` parameter to another email address that I knew belonged to an Indeed user. I also changed the `token` parameter to a different random string of numbers. Then, I pressed Enter and waited for the response.</p><p>To my surprise, the website did not show any error message or warning. Instead, it displayed a message saying that the account associated with that email address had been closed successfully. I checked the original tab where I had logged in with my own account and saw that it was still active. This meant that I had just deleted someone else&#39;s account without their permission or knowledge.</p><p>I was shocked by this discovery. How could such a popular and reputable website have such a serious flaw in its security? How many users could have been affected by this vulnerability? How many accounts could have been deleted by malicious hackers or pranksters?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2zSfFh0XBh9s-Uqj" /><figcaption>Jagat Singh</figcaption></figure><p>## How the vulnerability works<br>The vulnerability that I found is a type of attack known as Cross-Site Request Forgery (CSRF). CSRF is an attack that forces a user’s browser to perform an unwanted action on a website where they are already logged in. For example, if a user is logged in to their bank’s website and visits another website that contains malicious code, the malicious code can send a request to the bank’s website to transfer money from the user’s account to another account without the user’s consent or knowledge.</p><p>The way CSRF works is by exploiting the trust that a website has in a user’s browser. When a user logs in to a website, the website usually sets a cookie in the user’s browser to identify them as an authenticated user. The cookie contains information such as the user’s session ID, username, email address, etc. Whenever the user sends a request to the website, such as clicking on a link or submitting a form, the browser automatically attaches the cookie to the request. The website then checks the cookie and verifies that it matches with the user’s identity and grants them access to perform the requested action.</p><p>However, this trust can be abused by an attacker who can trick the user’s browser into sending requests to the website with malicious parameters. For example, if an attacker knows the URL format of an action on a website, such as deleting an account or changing a password, they can craft a URL with malicious parameters and embed it in an image tag or a link on another website. If an unsuspecting user visits that website while being logged in to the target website, their browser will send a request to the target website with the malicious URL as if it was initiated by them¹. The target website will then check the cookie and assume that it is a legitimate request from an authenticated user and execute it without asking for any confirmation or verification.</p><p>This is exactly what happened with Indeed.com. The URL format for deleting an account was very simple and predictable: it only required two parameters: `email` and `token`. The `email` parameter was the email address of the user whose account was to be deleted. The `token` parameter was a random string of numbers that was supposed to act as a security measure to prevent unauthorized account deletion. However, this token was not checked or validated by the website at all. It could be any random string and the website would still accept it as valid. This meant that anyone who knew the email address of an Indeed user could craft a URL like this:</p><p>`https://www.indeed.com/account/delete?email=target%40gmail.com&amp;token=1234567890`</p><p>and embed it in an image tag or a link on another website. If the target user visited that website while being logged in to Indeed.com, their browser would send a request to Indeed.com with the malicious URL and delete their account without their consent or knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AI7XO7X-Wedcg87K" /></figure><p>## What are the possible consequences of exploiting the vulnerability<br>The vulnerability that I found in Indeed.com could have serious consequences for both the users and the website itself. For the users, losing their account on Indeed.com could mean losing access to their resume, job applications, saved jobs, messages, alerts, and other personal information. This could affect their chances of finding a job or advancing their career. Moreover, they would not be able to recover their account or data, as the deletion was irreversible and permanent.</p><p>For the website, having such a vulnerability could damage its reputation and credibility as a reliable and secure platform for job seekers and employers. It could also expose it to legal liabilities and lawsuits from users who had their accounts deleted without their consent or knowledge. Furthermore, it could lose its competitive edge and market share to other job search platforms that offer better security and privacy for their users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sdeKT2HW6rjk3vTA" /></figure><p>## How to prevent CSRF attacks<br>CSRF attacks are not new or uncommon in the web world. They have been around for a long time and have affected many websites and applications in the past. However, they can be prevented or mitigated by implementing some simple and effective countermeasures. Some of these countermeasures are:</p><p><strong>**Using anti-CSRF tokens**:</strong> Anti-CSRF tokens are random strings of characters that are generated by the website and attached to every request that requires user authentication or authorization. The website then checks if the token matches with the one stored in the user’s session or cookie before executing the request. This way, an attacker cannot forge a request with a malicious URL, as they would not know the token value. For example, if Indeed.com had used anti-CSRF tokens, the URL for deleting an account would look something like this:</p><p>`https://www.indeed.com/account/delete?email=jagatsingh%40gmail.com&amp;token=1234567890&amp;csrf=abcdefg`</p><p>where `csrf` is the anti-CSRF token generated by the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I7WKptw7i81ZL05t" /></figure><p><strong>**Using HTTP headers**:</strong> HTTP headers are additional information that are sent along with every request and response between a browser and a website. Some of these headers can be used to prevent CSRF attacks by instructing the browser to only send requests to certain domains or websites. For example, the `Referer` header indicates the URL of the page from which the request originated. The website can check if the `Referer` header matches with its own domain before executing the request. This way, an attacker cannot send a request from another domain or website, as it would not match with the `Referer` header. For example, if Indeed.com had used the `Referer` header, it would reject any request that came from another domain or website, such as:</p><p>`https://www.evil.com/delete?email=jagatsingh%40gmail.com&amp;token=1234567890`</p><p>where `evil.com` is the attacker&#39;s domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a_IrpkMX_ILHRqcK" /></figure><p><strong>**Using HTTPS**:</strong> HTTPS is a secure version of HTTP that encrypts the communication between a browser and a website using SSL/TLS protocols. HTTPS provides confidentiality, integrity, and authentication for both parties involved in the communication. HTTPS can prevent CSRF attacks by ensuring that only legitimate requests are sent and received by both parties. For example, if Indeed.com had used HTTPS, an attacker would not be able to intercept or modify any request or response between the user’s browser and Indeed.com. Moreover, an attacker would not be able to create a fake website that mimics Indeed.com and trick users into visiting it and sending requests to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IJk3zx39T3N6KYCV" /></figure><p>## <strong><em>Conclusion</em></strong><br>In this blog post, I have shared my experience of finding and exploiting a CSRF vulnerability in Indeed.com that allowed me to delete any user’s account permanently without their consent or knowledge. I have also explained how CSRF attacks work, what are their possible consequences, and how they can be prevented or mitigated. I hope that this post has been informative and interesting for you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d33c2267cb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>