<?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 Marwanmedhat on Medium]]></title>
        <description><![CDATA[Stories by Marwanmedhat on Medium]]></description>
        <link>https://medium.com/@marwanmedhat0001?source=rss-cc53c1397153------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3r4nbzXoLq4SFHds</url>
            <title>Stories by Marwanmedhat on Medium</title>
            <link>https://medium.com/@marwanmedhat0001?source=rss-cc53c1397153------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:17:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marwanmedhat0001/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 One Free Trial Became Unlimited Number Of Licenses | $$$$ Bounty]]></title>
            <link>https://medium.com/@marwanmedhat0001/how-one-free-trial-became-unlimited-number-of-licenses-bounty-c98b8a4ee7e7?source=rss-cc53c1397153------2</link>
            <guid isPermaLink="false">https://medium.com/p/c98b8a4ee7e7</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[business-logic]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Marwanmedhat]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 22:00:51 GMT</pubDate>
            <atom:updated>2026-11-24T22:00:51.583Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Never Assume That What the User Interface Restricts, the Backend Enforces — Every Endpoint Must Validate Business Rules Independently.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iW6GyFRCa77RENyPYATg0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2Fp5h2GKlgAr_nazCJVSg.png" /></figure><p>Hi, I’m<strong><em> Marwan Medhat (M4R0O0)</em></strong>, a Security Researcher, Bug Hunter, and Ethical Hacker.</p><p>In this writeup, I want to share a business logic vulnerability I found while testing a private bug bounty program. The report was accepted, rewarded, and marked as resolved.</p><p>The target’s identity and sensitive information have been redacted .</p><h3>Understanding the application</h3><p>The application offered a free 30-day trial with a clear restriction: <strong>one trial license per company</strong>.</p><p>What caught my attention was that getting a license and registering it were two separate operations. The initial operation checked whether a company had already used its trial. I wanted to know whether the same rule was enforced when a license was actually registered.</p><h3>Step 1: Checking the trial restriction</h3><p>I started with a test company that had already received its free trial. <strong>The normal trial-generation workflow enforced the restriction, <em>as expected.</em></strong></p><p>At this point, there was nothing unusual. The interesting question was whether that restriction applied to the <strong><em>entire license lifecycle or only to the first operation.</em></strong></p><h3>Step 2: Investigating license registration</h3><p>I examined how the application handled license registration using separate controlled company accounts. My focus was on the server-side relationship between a license, its issuing company, and the company registering it.</p><p>The result exposed a mismatch: <strong>the registration workflow accepted an additional trial for a company that had already used its entitlement.</strong> It also allowed a trial issued under a different controlled company to be associated with the receiving company.</p><h3>The HTTP request</h3><p>The registration request used multipart form data. The two license-related fields identified the license being registered; the request also contained the authenticated session and form-verification data.</p><p>Below is redacted version of the request submitted with my report.</p><pre>POST /[REDACTED-REGISTRATION-PATH] HTTP/2<br><br>Host: [REDACTED]<br><br>Cookie: [REDACTED]<br><br>User-Agent: [REDACTED]<br><br>Referer: [REDACTED]<br><br>Origin: [REDACTED]<br><br>Content-Type: multipart/form-data; boundary=REDACTED_BOUNDARY<br>--REDACTED_BOUNDARY<br><br>Content-Disposition: form-data; name=&quot;[LICENSE_NUMBER_FIELD]&quot;<br>[REDACTED]<br>--REDACTED_BOUNDARY<br><br>Content-Disposition: form-data; name=&quot;[LICENSE_IDENTIFIER_FIELD]&quot;<br>[REDACTED]<br>--REDACTED_BOUNDARY<br><br>[Remaining form fields and verification tokens redacted]<br>--REDACTED_BOUNDARY--</pre><p>What mattered was not a redirect or a successful HTTP status on its own, but the server-side change that followed: an additional license appeared in the receiving company’s records.</p><p>A successful response alone wasn’t enough for me. I wanted to see whether the license had actually been associated with the receiving company.</p><h3>Step 3: Confirming the Impact</h3><p>I checked the company’s license list to verify whether the additional trial licenses had been successfully registered.</p><p>The results confirmed my findings. I was able to register <strong>11 trial licenses under a single company account</strong>, despite the application’s stated limit of one free trial per company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0dlTesLzauR3I7GqHzum7w.png" /></figure><p>This demonstrated that the restriction was not consistently enforced throughout the licensing process.</p><h3>Automating the PoC</h3><p>After successfully reproducing the vulnerability manually, I wanted to determine whether the behavior was repeatable.</p><p>I developed a Python script to automate the testing workflow and verify the resulting license state.</p><p>Rather than relying solely on HTTP response codes, the script checked whether the additional licenses actually appeared in the company’s license list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PdhklMl6yjNlIG1DAvLLSg.png" /></figure><p>The results confirmed that the issue was not an isolated occurrence.</p><p><strong>The one-trial-per-company restriction was not consistently enforced throughout the licensing workflow.</strong></p><blockquote><a href="https://gist.github.com/maro0o1/ef4c246ea8d0f71fc4d15ab7d1410fd4"><strong><em>Automated POC Here</em></strong></a></blockquote><p>The complete automation script was provided to the security team as part of the original report to assist with reproduction and validation.</p><h3>Root cause and impact</h3><p>The issue was a <strong>business logic flaw</strong> in the way the application enforced its commercial policy. The initial trial workflow checked eligibility, but the final registration operation did not consistently enforce that same restriction or the expected relationship between the license and company.</p><p>The demonstrated impact was the registration of un limited number of =licenses under a single controlled company. Potential consequences included abuse of the trial model and lost sales opportunities. I did not establish actual revenue loss, unlimited active usage, or the ability to predict valid license identifiers.</p><p>The appropriate fix is to verify ownership and trial eligibility on the server at the final registration step, and enforce the rule consistently throughout the license lifecycle.</p><p><em>Recommended controls for the license registration workflow.</em></p><h3>Bounty and disclosure</h3><p>The security team initially requested additional reproduction details. After I supplied further evidence, the team reproduced the issue, accepted the report, awarded a bounty, and marked it as resolved.</p><p><strong>Bounty: $$$$ (amount undisclosed)</strong></p><p>The finding was classified as Low severity. The exact program details, report identifiers and sensitive request data are intentionally withheld.</p><h3>Final thoughts</h3><p>The initial trial limit worked. That was what made this case interesting to me: a valid check in one part of an application can still fail to protect the overall business rule.</p><p><strong>A business rule should be enforced where the final state changes, not only where the workflow begins.</strong></p><p>Thanks for reading.</p><h3>About me</h3><p>I’m <strong>Marwan Medhat (M4R0O0)</strong>, a Security Researcher, Bug Hunter, and Ethical Hacker. I share practical web security research and bug bounty writeups.</p><p><strong>X:</strong> <a href="https://x.com/m4r0o0_m?s=11">M4R0O0</a></p><p><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/marwan-medhat-53b8822a6/">Marwan Medhat</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c98b8a4ee7e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How an Unverified Email Change Led to Full Account Takeover | $$$$ Bounty]]></title>
            <link>https://medium.com/@marwanmedhat0001/how-an-unverified-email-change-led-to-full-account-takeover-bounty-7a3f75aeb4b7?source=rss-cc53c1397153------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a3f75aeb4b7</guid>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[business-logic]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Marwanmedhat]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 23:37:10 GMT</pubDate>
            <atom:updated>2026-11-19T23:37:10.160Z</atom:updated>
            <content:encoded><![CDATA[<h4>Chaining a business logic flaw with the password-reset functionality to take over another user’s account.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*hUDXFTx8lXeMvVSebhpIiw.png" /></figure><blockquote>Hi, I’m <strong><em>Marwan Medhat (M4R0O0)</em></strong>, a Security Researcher, Bug Hunter, and Ethical Hacker with a Master’s Degree in Cybersecurity and a Certified Ethical Hacker certification. <a href="https://x.com/m4r0o0_m?s=11">X</a>,<a href="https://www.linkedin.com/in/marwan-medhat-53b8822a6/"><strong><em>LinkedIn</em></strong></a></blockquote><blockquote>Throughout my security research journey, I’ve received bug bounties, CVEs, Hall of Fame mentions, letters of appreciation, and other recognitions.</blockquote><p>In this writeup, I’ll share an interesting <strong><em>Account Takeover (ATO)</em></strong> vulnerability I discovered during a <strong><em>private bug bounty program</em></strong>. The report was accepted, rewarded with a bounty, and later marked as resolved.</p><p>For confidentiality reasons, the target’s identity and sensitive information have been omitted.</p><p>— -</p><h4>Understanding the Application</h4><p>During my exploration of the application, I came across a **Company Users** feature that allowed users with administrative privileges to manage other accounts within their organization.</p><p>A <strong><em>Company Administrator </em></strong>could modify another user’s information, including their registered email address.</p><p>This raised an interesting question:</p><blockquote><strong><em>What happens if I change another user’s email address to one I control? Will the application require verification before trusting it?</em></strong></blockquote><p>I decided to investigate further.</p><h4>Step 1: Changing the Target User’s Email</h4><p>I logged in using a Company Administrator account and navigated to the <strong><em>Company Users </em></strong>section.</p><p>After selecting another controlled test account, I changed its registered email address to an address I owned.</p><p>Surprisingly, the application accepted the change immediately.</p><p><strong><em>No email verification or confirmation from the account owner was required.</em></strong></p><p>The updated email address was saved directly to the target user’s profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u0XT6yOYUuxf919T4mwcGg.png" /></figure><p>Initially, this appeared to be a missing email-verification issue. However, I wanted to determine whether the updated address was also trusted by the application’s authentication mechanisms.</p><h4><strong>Step 2: Chaining the Issue with Password Reset</strong></h4><p>I logged out and navigated to the <strong><em>Forgot Password</em></strong> functionality.</p><p>I entered the target account’s username and submitted a password-reset request.</p><p>Shortly afterward, I received a password-reset email in my controlled inbox.</p><p><strong><em>The application had sent the target user’s password-reset link to the unverified email address I had just configured.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V0mgm4cddwHCEdKduLgBKA.png" /></figure><p>At this point, the issue was no longer limited to changing another user’s contact information.</p><p>The application was trusting that unverified email address as an authorized password-recovery destination.</p><h4>Step 3: Confirming the Account Takeover</h4><p>I opened the password-reset link, configured a new password, and returned to the login page.</p><p>Using the target account’s username and the new password, I successfully authenticated.</p><blockquote><strong><em>The Account Takeover was confirmed.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RScP74rCZuO7Hka0OKf4BA.png" /></figure><p>I now had access to the target account and its assigned permissions without knowing its original password.</p><p>The entire attack chain was:</p><blockquote><strong><em>Company Administrator → Unverified Email Change → Password Reset → Account Takeover</em></strong></blockquote><blockquote>Additional Findings</blockquote><blockquote>While investigating, I noticed two other behaviors worth mentioning.</blockquote><blockquote><strong><em>1. Multiple accounts sharing the same email</em></strong></blockquote><blockquote>The application allowed different user accounts to share the same primary email address. Password-reset requests for that address could generate recovery emails associated with different accounts.</blockquote><blockquote><strong><em>2. Other functionalities trusting unverified emails</em></strong></blockquote><blockquote>The <strong><em>Customer Feedback</em></strong> feature also relied on the email address stored in account settings for confirmation and follow-up, even when that address had not been verified.</blockquote><blockquote>These observations showed that the problem extended beyond a single feature.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WCGgDX4pg8mAuTgMCnscuA.png" /></figure><blockquote>Root Cause and Impact</blockquote><blockquote>The underlying issue was a <strong><em>Business Logic Flaw </em></strong>involving account management and password recovery.</blockquote><blockquote>The application allowed a privileged company user to modify another user’s email address without verifying ownership of the replacement address.</blockquote><blockquote>The password-reset mechanism then trusted that address, allowing the administrator to take control of the target user’s authentication credentials.</blockquote><blockquote>Although exploitation required company-management privileges, <strong><em>managing another user’s company profile should not grant control over their personal authentication identity.</em></strong></blockquote><blockquote>The confirmed impact was account takeover, with access to the permissions and account-specific functionality assigned to the affected user.</blockquote><blockquote>Bounty and Disclosure</blockquote><blockquote>I reported the vulnerability through a <strong><em>private bug bounty program</em></strong>.</blockquote><blockquote>After reviewing the report, the security team accepted the finding, awarded a bounty, and subsequently marked the issue as resolved.</blockquote><blockquote><strong><em>Bounty Awarded</em></strong></blockquote><blockquote>The program’s identity and sensitive technical information have been intentionally withheld.</blockquote><blockquote>Final Thoughts</blockquote><blockquote>This finding reminded me that some of the most interesting vulnerabilities come from the interaction between legitimate application features.</blockquote><blockquote>An email-change functionality might appear harmless when tested alone. However, when another security-sensitive feature trusts its output without verification, the impact can be significantly greater.</blockquote><blockquote><strong><em>Don’t just test what a feature does. Test what other features allow you to do with its results.</em></strong></blockquote><p>Thanks for reading.</p><p>— -</p><blockquote>About Me</blockquote><blockquote>I’m <strong><em>Marwan Medhat (M4R0O0)</em></strong>, a Security Researcher, Bug Hunter, and Ethical Hacker.</blockquote><blockquote>I share my bug bounty findings, vulnerability research, and practical web security experiences.</blockquote><blockquote>X: <a href="https://x.com/m4r0o0_m?s=11">M4R0O0</a></blockquote><blockquote><strong><em>LinkedIn:</em></strong> <a href="https://www.linkedin.com/in/marwan-medhat-53b8822a6/">Marwan Medhat</a></blockquote><p>*#BugBounty #AccountTakeover #BusinessLogic #WebSecurity #EthicalHacking*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a3f75aeb4b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>