<?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 Ammar Harris on Medium]]></title>
        <description><![CDATA[Stories by Ammar Harris on Medium]]></description>
        <link>https://medium.com/@ammarharris?source=rss-a0542a1c5751------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*stReoYxnxb4iI-1vWgP0sQ.jpeg</url>
            <title>Stories by Ammar Harris on Medium</title>
            <link>https://medium.com/@ammarharris?source=rss-a0542a1c5751------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 23:42:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ammarharris/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 I found Phone OTP bypass by verification token confusion]]></title>
            <link>https://medium.com/@ammarharris/how-i-found-phone-otp-bypass-by-verification-token-confusion-23528a72ed07?source=rss-a0542a1c5751------2</link>
            <guid isPermaLink="false">https://medium.com/p/23528a72ed07</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Ammar Harris]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 06:30:47 GMT</pubDate>
            <atom:updated>2026-11-27T06:30:47.378Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGXtuygfQlm5fASx5JkVZA.jpeg" /><figcaption>System Sequence diagram</figcaption></figure><p>Hi Hackers, my name is Ammar Momen known as Ammar Harris, I’m a CS student and building my career on cybersecurity and penetration testing, I have some security contribution on the field and one of the most valuable to me is the vulnerability I found on ProtonVPN, let’s begin the story.</p><h3>Story of the bypass…</h3><p>Like any bug hunter, I picked up a new target on HackerOne and started recon. Almost immediately, I hit a wall: I couldn’t access most of platform functionalities because I didn’t have an account, and creating one required a phone number from the target country. I tried everything fake numbers, my own number nothing worked.</p><p>That roadblock became the real target.</p><p>I spent about two weeks focused entirely on the OTP verification step. Using a disposable phone number, I pulled apart the JavaScript to understand exactly how the OTP request was built, what the server expected in response, and what happened after a successful verification.</p><p>I used Claude to help me map out the API calls involved in this flow, which made it easier to trace the request/response structure. That’s when I spotted something interesting: the OTP verification request included a field called requestToken, and a successful response flipped a flag from false to true.</p><p>My first instinct is to manually forcing that flag to true but didn&#39;t work. So I kept looking, and found another field in the response: verificationToken.</p><p>That raised an obvious question: what if requestToken and verificationToken were meant to be the same value?</p><p>I tested it and it worked. The verificationToken was later replayed in the signup request to prove the phone number had been verified. But the backend only checked that the token matched the phone number on record. It never confirmed that the token had actually come from a <em>successful</em> verification. The client was trusted to report its own verification state, and that trust was the vulnerability.</p><p>This was a good reminder that verification state should never be inferred from a token the client can simply echo back — the server needs to independently confirm that the verification step actually succeeded before accepting it as proof.</p><p>I hope this writeup is useful to other researchers working through OTP and identity-verification flows. Happy to connect and discuss on LinkedIn: <a href="https://www.linkedin.com/in/ammar-harris/">Ammar Harris</a></p><p>#bugbounty #hacking #pentesting #HackerOne</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23528a72ed07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Found a DRM Bypass While Watching a Course — Here’s What It Taught Me About Real Hacking]]></title>
            <link>https://medium.com/@ammarharris/i-found-a-drm-bypass-while-watching-a-course-heres-what-it-taught-me-about-real-hacking-371b4e0125ec?source=rss-a0542a1c5751------2</link>
            <guid isPermaLink="false">https://medium.com/p/371b4e0125ec</guid>
            <category><![CDATA[web-penetration-testing]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[business-logic-flaw]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Ammar Harris]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 09:25:11 GMT</pubDate>
            <atom:updated>2026-02-25T12:14:23.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bkZc-R1RD4UqkQORPOsyEA.png" /></figure><p>We’ve all seen it: the “Download” button is missing. The platform promises high-security content protection. They tell you the content is “stream-only.” But as a security researcher, when I see a “No Entry” sign, I don’t see a wall — I see a challenge.</p><p>{ٱقۡرَأۡ وَ<strong>رَبُّكَ</strong> ٱلۡأَكۡرَمُ ۞ ٱلَّذِي عَلَّمَ بِٱلۡقَلَم ۞ عَلَّمَ ٱلۡإِنسَٰنَ مَا لَمۡ يَعۡلَمۡ}</p><p>Alsalamu Alaykum, My name is Ammar Harris. I’m a 2nd-year CS student, an offensive security enthusiast, and a hunter of <strong>Business Logic Vulnerabilities</strong>. While most hunters are busy looking for XSS or SQLi, I’m obsessed with how a business <em>thinks</em> — and where that thinking fails.</p><p>Recently, I stumbled upon a flaw in a major educational platform that allowed me to bypass their Digital Rights Management (DRM) and download entire courses. Here is the breakdown of how I did it, the “Black Hat” temptation I avoided, and why this “Duplicate” report was still a massive win for my career.</p><h3>The Moment Curiosity Kicked In</h3><p>Like many security people, I have a habit: I open Burp Suite whenever something interesting loads.</p><p>While watching a lecture, I intercepted the requests and noticed an endpoint returning something interesting.</p><p>HLS video links.</p><p>At first glance this looked normal.</p><p>But something felt off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQ60IOMuQm3K8LmzYXUAug.png" /></figure><h3>The 5‑Second Clue</h3><p>When opening one of the returned links, I expected a video stream.</p><p>Instead, I downloaded a <strong>5‑second video clip</strong>.</p><p>That alone wasn’t strange.</p><p>But when I opened the next one…</p><p>It continued exactly where the previous clip ended.</p><p>Then the next.</p><p>And the next.</p><p>That was the moment everything clicked.</p><h3>The DRM Illusion</h3><p>The platform prevented downloads in the UI.</p><p>But technically it exposed every piece of the lecture through sequential video fragments.</p><p>Which meant one thing:</p><p>If someone automated collecting those fragments…</p><p>They could rebuild the entire lecture.</p><p>No DRM break.</p><p>No encryption bypass.</p><p>Just <strong>logic.</strong></p><h3>The Exploit: AI-Assisted Weaponization</h3><p>As a student, I value efficiency. I used <strong>Gemini</strong> to architect the logic of the exploit and <strong>Claude 4.5 Sonnet</strong> to polish a Python-based PoC.</p><p><strong>The Script Logic:</strong></p><ul><li><strong>Input:</strong> A text file containing the HLS response.</li><li><strong>Process:</strong> Filters headers, iterates through the fragment queue, and downloads the .ts chunks.</li><li><strong>Execution:</strong> Uses ffmpeg to stitch the fragments into a seamless 720p lecture.</li><li><strong>Cleanup:</strong> Automatically deletes the fragmented files to leave a clean, single video file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rJfYy9KKiXjqROIGNayQw.png" /></figure><blockquote><em>Note: While I could have automated this for the entire course library, I stopped at the PoC. Moving from “one video for proof” to “the whole database” is the line between White Hat research and Black Hat activity.</em></blockquote><h3>Reporting the Bug</h3><p>I reported the bug via their responsible disclosure program. The response?</p><blockquote>“This is a duplicate of an informative report from 2023.”</blockquote><p>Was it frustrating?</p><p>Of course.</p><p>But bug bounty hunting isn’t only about rewards.</p><blockquote>Sometimes the real reward is leveling up your mindset.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*CPkANc0_v2A1rlOUMk5fCw.png" /><figcaption>HackerOne Report</figcaption></figure><h3>What This Discovery Taught Me</h3><h4>1. Business Logic Bugs Are Everywhere</h4><p>Systems often fail not because of code errors — but flawed assumptions.</p><h4>2. Observation Beats Complexity</h4><p>Many vulnerabilities hide in normal behavior.</p><p>You just have to watch carefully.</p><h4>3. Automation Demonstrates Real Impact</h4><p>A clear PoC can turn a “maybe” vulnerability into a <strong>serious report</strong>.</p><h4>4. Ethical Boundaries Matter</h4><p>Knowing when to stop is part of being a real security researcher.</p><h3>What is next on my journey?</h3><h4>Looking Forward: Kernel Hacking &amp; Beyond</h4><p>This journey reinforced my love for Business Logic. It’s about outsmarting the architect, not just the code.</p><p>Currently, preparing for deep-diving into:</p><ul><li><strong>Reverse Engineering:</strong> Breaking down binaries to see how they tick.</li><li><strong>Kernel Hacking:</strong> Moving from the application layer to the heart of the OS.</li></ul><h3>The Hacker’s Mindset</h3><p>Stay curious. Stay ethical. And remember: the most dangerous vulnerabilities aren’t always in the code — they’re in the assumptions we make about how the code will be used.</p><p><strong>Find me here:</strong></p><ul><li><strong>linkedIn:</strong> <a href="http://www.linkedin.com/in/ammar-harris-1b4876290">www.linkedin.com/in/ammar-harris</a></li><li><strong>Platforms Handle:</strong> 0xfreed0m</li></ul><p>#BugBounty #CyberSecurity #InfoSec #BusinessLogic #Hacking</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=371b4e0125ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>