<?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 Mohammed Waleed on Medium]]></title>
        <description><![CDATA[Stories by Mohammed Waleed on Medium]]></description>
        <link>https://medium.com/@mohammed0x04?source=rss-73681651b435------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8EXCo_ujVkmii3Oh</url>
            <title>Stories by Mohammed Waleed on Medium</title>
            <link>https://medium.com/@mohammed0x04?source=rss-73681651b435------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:16:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohammed0x04/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 OSINT Helped Me To Find User Credentials And Discover An OTP Bypass]]></title>
            <link>https://medium.com/@mohammed0x04/how-osint-helped-me-to-find-user-credentials-and-discover-an-otp-bypass-afb6b9e23b45?source=rss-73681651b435------2</link>
            <guid isPermaLink="false">https://medium.com/p/afb6b9e23b45</guid>
            <category><![CDATA[recon]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mohammed Waleed]]></dc:creator>
            <pubDate>Tue, 30 Apr 2024 07:00:06 GMT</pubDate>
            <atom:updated>2024-04-30T07:00:06.472Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cw-ePt7Ng_LsjyS0EliIsw.jpeg" /></figure><p>Hi Hackers,</p><p>Today I’m going to share with you a very cool finding in a VDP program on hackerone that I discovered through OSINT, let’s start.</p><p>after subdomain enumeration and filtering live subdomains using httpx, I decided to run gau tool on subdomains with 404 status code.</p><pre>cat httpx.txt | grep -i &#39;\[404\]&#39; | cut -d &#39; &#39; -f1 | gau &gt; 404gau.txt</pre><p>then I ran it through httpx to filter working urls using this command.</p><pre>cat 404gau.txt | uro | httpx -probe -sc -cl</pre><p>after analyzing the output, I found a url that returned 200 in status code section with the endpoint /home/TH</p><p>if I tried to open the url without any endpoints it returns this 404 page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYnIv9l-28vZNBew3T4Q8Q.png" /></figure><p>when I added /home/TH to the url, it returned this page with a login form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aOLuhP7digz-N1egJugeKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*gGe28UdTAmHHNrtuhXfRAw.gif" /></figure><p>the help button at the top right corner of the page caught my attention, so I clicked it, and it turned out to be something like documentation of the website and how to use it.</p><p>after downloading the PDF documentation file, I found something very interesting, there was an image with a hidden VIN number that is registered in the application, If I could figure out this number correctly, I could log into the user account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*lfEbDkTHl3OUYdXcyQMlSA.png" /></figure><p>because the number wasn’t hidden completely, I tried guessing it at first, but I ended up with nothing.</p><p>then I accidentally zoomed in and out very fast in the page, and I noticed something very strange, the blue bars on the VIN number disappeared momentarily, How could this be possible!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*cdDzNgJPiIDGx5KzjabFYQ.gif" /></figure><p>after sometime, I found that it isn’t part of the image and that it is editable, I was able to remove the blue bars from the document and see the full VIN number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oa90-oEUwD4o2wtn3a3VGA.png" /></figure><p>I was able to successfully login and access the next page, which was an OTP page.</p><p>I started trying to figure out how could I bypass the OTP page and login to the account, after sometime trying different techniques to bypass the OTP I found the solution and it was very simple and in front of me all this time, the OTP code was at the bottom left corner of the page!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBYZT4uKGHxQrrLpwbSC1w.png" /></figure><p>I used it and successfully logged into the account!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*_yyuO5kvS8pv160VPnUiWg.gif" /></figure><p>I reported it and it was accepted and triaged by the program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*77lCLnzJdBltLoKx20S58g.jpeg" /></figure><p>TIP: Always try to find videos or documentations for the target you are working on, you may find credentials or information that allows you to gain more access.</p><p>Thanks for reading</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afb6b9e23b45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I found two api vulnerabilities by analyzing JS source code]]></title>
            <link>https://medium.com/@mohammed0x04/how-i-found-two-api-vulnerabilities-using-website-source-code-6c4b0dc54d6f?source=rss-73681651b435------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c4b0dc54d6f</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Mohammed Waleed]]></dc:creator>
            <pubDate>Thu, 27 Jul 2023 13:40:34 GMT</pubDate>
            <atom:updated>2023-07-27T14:55:34.464Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everybody, my name is Mohammed Waleed, I’m a beginner bug hunter and web developer and today I will share with you how I found two api bugs on a private bug bounty program by analyzing website source code and how you can also use source code and JS files to find vulnerabilities, let’s get started!</p><p>since the target is a private program on hackerone and I can’t disclose any information about it, I will call it target.com.</p><p>the scope of the target wasn’t very big and consisted of only one wildcard domain(*.target.com), after doing some recon I decided to start hunting on the main application, I found that the website is using react framework.</p><p>I wanted to see if the source code was available so I opened the sources tab in chrome DevTools and I found a folder called web-app that contained the frontend source code of the website!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*5HsaBacKID988Ayr8wTgMQ.png" /></figure><p>I immediately downloaded it to start reviewing the code and find some vulnerabilities.</p><p>I downloaded the code using a chrome extension called resources saver, you’ll find it here:</p><p><a href="https://chrome.google.com/webstore/detail/save-all-resources/abpdnfjocnmdomablahdcfnoggeeiedb">Resources Saver Extension</a></p><p>I started to manually review the code and because I love api hacking I started looking for api endpoints inside the JS files and I found a folder called api that contained files with a lot of api endpoints for both their web and mobile application.</p><p>as I always do with api’s, I saved all api endpoints I found in an excel sheet and started analyzing/testing them one by one, understanding their purpose and what they do in the application.</p><p>after a lot of testing I found two access control vulnerabilities using two endpoints.</p><h4>1) Adding and deleting buttons on any video on target.com:</h4><p>there was a feature in target.com to upload a video, and when I was testing the api endpoints from the source code I found this endpoint</p><blockquote>/v1/videos/&lt;video_id&gt;/cta</blockquote><p>in the source code the function looked like this:</p><pre>export function updateCTA(videoId: string, ctaURL: string, ctaText: string) {<br>    return getResults(<br>        appendQuery(`${TARGET_API_URL}videos/${video_id}/cta`, {<br>            api_key: WEB_API_KEY,<br>            link: ctaURL,<br>            text: ctaText,<br>        }),<br>        {<br>            method: ctaText ? &#39;put&#39; : &#39;delete&#39;,<br>        }<br>    )<br>}</pre><p>it was weird to me that it didn’t require any authorization headers/parameters other than the web api key, because the web api key is the same for all users, I knew that after I made multiple accounts and found that the api key is the same in all accounts.</p><p>I didn’t know what this endpoint was doing exactly so I crafted a PUT request in burp repeater to test it.</p><p>inside ${video_id} I added a video id that belongs to a video I uploaded.</p><p>I sent the request and it was accepted!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ya95dbG8L4rJYa7D-Kz7_g.png" /></figure><p>I still don’t know what this request is doing so I opened the video and I found a button under it that redirects you to a website if you click it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*n0WXOy3Gx6dVW4S1_XRqfg.png" /></figure><p>I was also able to delete it by making a DELETE request.</p><p>this means I can add/delete a link to any video on the website without any user interaction!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl4EpkVLqUj8BI7OV2%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fshowcase-happy-excited-l4EpkVLqUj8BI7OV2&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExOXh2MjJxbGI0ZG8waXQxOWoxNHZwNTJjZW9jZ2N4OXZxeGNnbGVxMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fl4EpkVLqUj8BI7OV2%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="246" frameborder="0" scrolling="no"><a href="https://medium.com/media/3815187168b7693fa8f8c7e852a14c51/href">https://medium.com/media/3815187168b7693fa8f8c7e852a14c51/href</a></iframe><p>and it was accepted and triaged:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*9SAvPkLXBa05TYkvwFZxYA.png" /></figure><p>the strange thing is that I didn’t find anything that allows you to add links when uploading a video, so this feautre is probably not available in the application anymore, or maybe available for specific account types or something.</p><h4>2) view stickers associated with a private video:</h4><p>there was a feature to upload a special kind of videos that allows you to add stickers to the video</p><p>I found this api endpoint:</p><blockquote>v1/videos/&lt;id&gt;/associations</blockquote><p>I found that it allows you to view stickers associated with a video</p><p>I uploaded a private video with stickers, then I tried to view associated stickers using another account.</p><p>the request was accepted and I was able to see all stickers associated with the private video!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GFyUPHa7mWIzdmBuAi-Aag.png" /></figure><p>unfortunately, the report was closed as informative since the impact is very low.</p><p>reviewing source code and finding vulnerabilities in it will give you an advantage because only a few bug hunters do it, and it will get you a lot less duplicates.</p><p>here are three writeups that helped me a lot on how to get started in source code review and analyzing JS files:</p><ul><li><a href="https://bitthebyte.medium.com/javascript-for-bug-bounty-hunters-part-1-dd08ed34b5a8">Javascript for bug bounty hunters — part 1</a></li><li><a href="https://bitthebyte.medium.com/javascript-for-bug-bounty-hunters-part-2-f82164917e7">Javascript for bug bounty hunters — part 2</a></li><li><a href="https://bitthebyte.medium.com/javascript-for-bug-bounty-hunters-part-3-3b987f24ab27">Javascript for bug bounty hunters — part 3</a></li></ul><p>Happy Hunting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c4b0dc54d6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>