<?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 Amrgomaa on Medium]]></title>
        <description><![CDATA[Stories by Amrgomaa on Medium]]></description>
        <link>https://medium.com/@amrgomaa009?source=rss-55342bd952c1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aX3tJxzXjdWEFIhf7gywWg.jpeg</url>
            <title>Stories by Amrgomaa on Medium</title>
            <link>https://medium.com/@amrgomaa009?source=rss-55342bd952c1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:38:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amrgomaa009/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[Inside the eMAPT Exam: A Practical Review for Mobile Pentesters]]></title>
            <link>https://medium.com/@amrgomaa009/inside-the-emapt-exam-a-practical-review-for-mobile-pentesters-b84e4e2b823d?source=rss-55342bd952c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b84e4e2b823d</guid>
            <category><![CDATA[emapt]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Amrgomaa]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 14:57:24 GMT</pubDate>
            <atom:updated>2026-08-20T14:57:24.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*HS5zKJuqntl82gLYDlXjrA.png" /></figure><h3>Background &amp; Why I Took eMAPT</h3><p>As someone working in penetration testing and web application security research, I wanted to strengthen my skills on the mobile side. Mobile apps are a huge attack surface, and testing them requires a different mindset than web pentesting — different tooling, different protections to bypass, different places to look for the bug.</p><p>INE’s <strong>eMAPT</strong> (Mobile Application Penetration Tester) stood out because of its emphasis on hands-on practical testing rather than pure theory. I passed with <strong>86%</strong> (required: 70%), and this is the honest review I wish I’d read beforehand.</p><p>I won’t describe the lab apps or specific vulnerabilities — that’s exactly what the exam is testing, and reproducing that ruins it for future candidates. What I <em>can</em> share is the exam structure, where the official prep material falls short, and how to actually get ready.</p><h3>What is eMAPT?</h3><p>eMAPT certifies your ability to perform penetration testing on mobile applications, covering both Android and iOS. It generally tests:</p><ul><li>Static analysis (reverse engineering APKs/IPAs)</li><li>Dynamic analysis (runtime testing and behavior observation)</li><li>Traffic interception</li><li>Common mobile vulnerability classes</li><li>API and backend security testing</li></ul><p>It sits between beginner and intermediate level — not overly complex, but it expects you to genuinely understand how mobile apps work under the hood, not just recognize terms.</p><h3>Exam Structure</h3><p>The exam is <strong>12 hours</strong>, non-proctored, with a running timer, split into three sections.</p><p><strong>1. Situational MCQs</strong> Scenario-based questions on mobile security concepts. Straightforward if you’ve gone through the material.</p><p><strong>2. Static Analysis</strong> You’re given code snippets (Java/Swift/Kotlin) and asked to spot the vulnerability. This is pattern recognition — find the one flaw the question is pointing at. Watch for encoded strings (Base64 and similar) hiding weak crypto or hardcoded secrets; the exam authors like to bury things that way.</p><p><strong>3. Practical Lab (the real exam)</strong> A hands-on scenario with one Android app on an emulator and one iOS app (IPA), each backed by a live API. This section is where most of the exam’s time and difficulty lives — enumeration, bypassing runtime protections, and working through the backend.</p><h3>Difficulty &amp; Reality Check</h3><p>At first glance eMAPT looks approachable, especially with a web/API testing background. But a few things make it more demanding than expected:</p><ul><li>Mobile-specific logic that doesn’t map 1:1 to web pentesting instincts</li><li>Runtime protections that need to be bypassed before you can do anything useful</li><li>Limited hand-holding once you’re in the lab</li></ul><p>It’s not brutal, but it’s not something you can walk into unprepared either.</p><h3>The Gap in the Official Course</h3><p>Here’s the part most reviews don’t say clearly: <strong>the dynamic testing section is not fully covered by INE’s own eMAPT training videos.</strong> The course covers theory and static analysis well, but the runtime/dynamic side — actually instrumenting an app, hooking its behavior, working around its protections live — needs more hands-on repetition than the official videos alone give you. If you only watch the course material, the lab’s dynamic portion will feel like a jump in difficulty.</p><p><strong>Fix: work through Hextree’s free Android labs before your attempt.</strong> They build exactly the hands-on muscle memory the INE videos skip, and going in with that practice made the dynamic requirements feel routine instead of unfamiliar.</p><blockquote><em>💡 If you’re stuck in the lab and looking for a nudge without spoiling it for yourself: the runtime protections in this exam are always bypassed with the standard, well-documented technique for that protection type — there’s no custom or obscure trick hiding anywhere. If you find yourself reaching for something exotic, stop and go back to the basics; you’ve likely overcomplicated it.</em></blockquote><h3>Once You’re Past SSL Pinning, It Gets Easy</h3><p>The biggest gate in the whole exam is the <strong>initial SSL/certificate pinning bypass</strong>. It looks intimidating beforehand, but it’s a one-time hurdle — none of the exam’s protections are hardened or adversarial. Once your traffic is flowing through your proxy, the exam opens up fast: the payloads and logic you need from that point on are not complicated. Most of the remaining hours are enumeration and reading responses carefully, not fighting the app.</p><h3>Preparation Strategy</h3><p><strong>Core fundamentals</strong></p><ul><li>Android app architecture and manifest analysis</li><li>iOS app packaging and static analysis basics</li><li>OWASP Mobile Top 10</li></ul><p><strong>Hands-on skills</strong></p><ul><li>Decompiling APKs (jadx, apktool) and unpacking IPAs</li><li>Traffic interception (Burp Suite / mitmproxy)</li><li>SSL pinning bypass and basic Frida hooking</li><li>Working with an emulator/rooted environment</li></ul><p><strong>Practice approach</strong></p><ul><li>Don’t just follow along with labs — understand <em>why</em> each vulnerability exists</li><li>Practice on apps you’ve never seen before, not just familiar ones</li><li>Build a repeatable enumeration methodology so you’re not improvising under time pressure</li></ul><h3>Common Mistakes to Avoid</h3><ul><li>Relying too much on automated tools instead of understanding the app</li><li>Jumping straight to dynamic testing and skipping static analysis</li><li>Not reading error messages — the lab backends are chatty and often tell you exactly what’s missing</li><li>Poor time management across 12 hours</li><li>Losing time to terminal/formatting issues instead of technical problems — keep commands short and use heredocs for anything multi-line</li></ul><h3>Is It Worth It?</h3><p><strong>Worth it if you:</strong></p><ul><li>Want to move into mobile pentesting</li><li>Already have general pentesting experience</li><li>Prefer hands-on, practical certifications over theory-heavy ones</li></ul><p><strong>Maybe not if you:</strong></p><ul><li>Want a highly advanced certification</li><li>Have zero application security background</li><li>Prefer purely theoretical exams</li></ul><h3>Final Verdict</h3><p>eMAPT is a fair, well-designed exam that rewards enumeration and methodology over exploit sophistication. The official course covers fundamentals and static analysis well but under-prepares you for the dynamic/runtime section — close that gap with Hextree’s free labs beforehand. Expect one real wall (SSL pinning), and a much easier, much faster back half once you’re through it.</p><p>If you’re on the fence: take it, prep the dynamic side properly first, and trust your enumeration once you’re in.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b84e4e2b823d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Earned €200 in 10 Minutes by Exploiting a Race Condition on a Job Application Portal]]></title>
            <link>https://medium.com/@amrgomaa009/how-i-earned-200-in-10-minutes-by-exploiting-a-race-condition-on-a-job-application-portal-2347bb98c4c0?source=rss-55342bd952c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2347bb98c4c0</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[rce-vulnerability]]></category>
            <dc:creator><![CDATA[Amrgomaa]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 21:51:01 GMT</pubDate>
            <atom:updated>2026-04-24T21:51:01.563Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A simple business logic bypass using Burp Suite’s parallel sending feature — no complex exploit, no fancy tooling. Just timing.</em></p><h3>Introduction</h3><p>Not every bug bounty finding requires a sophisticated exploit chain. Sometimes, the most impactful vulnerabilities come from asking a simple question: <em>what happens if I do this twice — at exactly the same time?</em></p><p>This writeup covers a race condition I discovered on a job application portal belonging to a multinational staffing company. The platform had a clear business rule: <strong>one application per candidate per job offer</strong>. Within 10 minutes of testing, I was able to break that rule completely — and walk away with a €200 bounty.</p><h3>Background: What Is a Race Condition?</h3><p>A race condition in web applications occurs when a server handles multiple concurrent requests without properly coordinating between them.</p><p>The typical flow for a “one action per user” restriction looks like this:</p><pre>Request arrives → Check: has user done X? → No → Do X → Save to DB</pre><p>The vulnerability appears when two requests arrive simultaneously:</p><pre>Request A arrives → Check: has user done X? → No ─────────────────┐<br>Request B arrives → Check: has user done X? → No (A not saved yet) ┘<br>                                                ↓<br>                              Both execute X → Two records in DB</pre><p>This is a classic <strong>TOCTOU</strong> (Time-of-Check to Time-of-Use) flaw. The check and the write are not atomic, so concurrent requests slip through the gap.</p><h3>The Target</h3><p>The target was a career portal for a large staffing group, running a bug bounty program on YesWeHack. Candidates apply to job listings through a multi-step form. On the final step, clicking “Submit” fires a POST request:</p><pre>POST /fr/candidature/{id}/save<br>Host: careers.[REDACTED].com<br>Content-Type: application/json</pre><p>The platform enforces a rule that each candidate can only apply once per listing. Submit a second time normally, and you get an error. That’s the intended behavior — and it worked fine for sequential requests.</p><h3>Discovery</h3><p>During normal testing, I completed an application and tried submitting it a second time. The server correctly rejected it with an “already applied” error.</p><p>That told me the check <em>exists</em> — but it also told me the check is application-level, not enforced at the database layer. That’s a red flag for race conditions.</p><p>The question I asked next: <strong>what if both requests arrive before either one commits to the database?</strong></p><h3>Exploitation</h3><p>The setup is straightforward using Burp Suite:</p><p><strong>Step 1:</strong> Complete the job application form normally up to the final submission step.</p><p><strong>Step 2:</strong> Intercept the POST /fr/candidature/{id}/save request in Burp Suite and send it to Repeater.</p><p><strong>Step 3:</strong> Duplicate the Repeater tab 30 times, group them, and set the sending mode to <strong>“Send in parallel”</strong> — this fires all 30 requests simultaneously in a single TCP connection burst, minimizing timing variance between them.</p><p><strong>Step 4:</strong> Execute.</p><p><strong>Result:</strong> All 30 requests returned 200 OK.</p><h3>The Key Evidence — Unique Hashes</h3><p>Getting 30 success responses is interesting, but it’s not enough on its own. A poorly implemented server might return a cached success response without actually writing anything new. That would be a non-issue.</p><p>What made this finding undeniable was the response body. Each response contained a field called saveHash:</p><pre>Request 1  →  { &quot;saveHash&quot;: &quot;E1rdQasmKDL8P&quot;, ... }<br>Request 2  →  { &quot;saveHash&quot;: &quot;e6Q3eMsqGXvv3&quot;, ... }<br>Request 3  →  { &quot;saveHash&quot;: &quot;mN7pQxRtYj2wK&quot;, ... }<br>...<br>Request 30 →  { &quot;saveHash&quot;: &quot;zB4cLvHqFd9sM&quot;, ... }</pre><p><strong>Every single response had a different, unique hash.</strong></p><p>This is the smoking gun. The server wasn’t replaying a cached response — it was executing the full creation logic 30 separate times, generating 30 distinct records in the ATS (Applicant Tracking System) database for the same candidate.</p><p>The email inbox confirmed it: <strong>30 individual confirmation emails arrived instantly</strong>, each corresponding to a unique application record.</p><h3>Impact</h3><p><strong>Business Logic Bypass:</strong> The “one application per candidate” rule was completely defeated. An attacker could flood any job listing with applications from a single account, overwhelming the HR team’s review queue.</p><p><strong>Database Integrity Corruption:</strong> The 30 records created aren’t simple duplicates that can be filtered automatically — each has a unique ID and hash, making them look like 30 distinct, legitimate applications in the ATS. Manual cleanup by IT/HR is required.</p><p><strong>Email Abuse:</strong> The platform was forced to send 30 transactional emails from its own trusted domain instantly. At scale, this could damage the company’s email sending reputation and be used to spam a target’s inbox.</p><h3>Triage &amp; Getting the Bounty</h3><p>The report was accepted as <strong>Medium severity (CVSS 5.3)</strong>. However, the initial response awarded only quality points — no monetary bounty.</p><p>I followed up with a clear argument:</p><ul><li>The program’s reward grid lists Medium findings on this asset tier as eligible for monetary bounty (starting €50).</li><li>This is <strong>not</strong> a rate limiting issue (which the program explicitly excludes) — it’s a business logic bypass with <strong>proven database corruption</strong>, evidenced by the unique hashes.</li><li>The distinction matters: rate limiting issues are about frequency; this is about the server creating duplicate database records it was never supposed to create.</li></ul><p>The team reconsidered and awarded <strong>€200 + 15 quality points</strong>.</p><blockquote><strong><em>Lesson:</em></strong><em> When you believe a finding deserves a bounty, follow up professionally and make the case with evidence. Triage teams handle many reports — sometimes the impact just needs to be spelled out more clearly.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2347bb98c4c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authentication bypass via unauthenticated JWT generation on a telecom provider]]></title>
            <link>https://medium.com/@amrgomaa009/authentication-bypass-via-unauthenticated-jwt-generation-on-a-telecom-provider-78df29d88261?source=rss-55342bd952c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/78df29d88261</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[shodan]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[jwt]]></category>
            <dc:creator><![CDATA[Amrgomaa]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 23:39:11 GMT</pubDate>
            <atom:updated>2026-04-22T23:39:11.478Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NHIdMTMGDlB8qXpRPvUuA.png" /></figure><p>How a hardcoded Lambda URL in a JS bundle led to admin token generation with no credentials required — and a full chain to AWS credential exposure</p><h3>Background</h3><p>While hunting on a telecom provider’s bug bounty program, I came across what turned out to be a fairly critical authentication flaw — an internal Lambda endpoint that would happily issue a signed JWT for <em>any</em> user, including admin accounts, given nothing more than an email address. No password. No OTP. No rate limiting.</p><p>This writeup documents the discovery path, the exploitation chain, and why the triage outcome was disappointing even when the impact was real and demonstrated.</p><h3>Discovery path</h3><p>The entry point was the program’s main web application, which is explicitly in scope. Like most modern SPAs, the app loads a React bundle on the client side — and that bundle contains all the API endpoints the app talks to.</p><p>1-Loaded the target’s SPA in the browser and opened DevTools → Sources. Located the main JS chunk (main.xxxxxxxx.js).</p><p>2-Searched the bundle for lambda-url — a string that commonly appears when developers hardcode AWS Lambda function URLs directly into frontend code.</p><p>3-Found a full Lambda URL hardcoded in the bundle pointing to an internal API backend.</p><p>4-Visited /docs on the Lambda URL — FastAPI auto-generates Swagger docs if not disabled. The full internal API surface was exposed publicly with zero auth</p><pre>Lesson: Always grep JS bundles for lambda-url, execute-api, internal, and amazonaws.com. Frontend code often leaks backend infrastructure that was never meant to be public</pre><h3>The vulnerability</h3><p>The Lambda API exposed a /auth/getToken endpoint. The endpoint accepted a POST request with a JSON body containing just an email address, and returned a fully signed JWT with no authentication whatsoever.</p><pre>POST /auth/getToken<br>Content-Type: application/json<br><br>{&quot;email&quot;: &quot;admin@[REDACTED].com&quot;}<br><br>--- Response (200 OK) ---<br><br>{<br>  &quot;jwt_token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9<br>  .eyJleHAiOjE3NzI4NDIxNjYsInN1YiI6ImFkbWluQC4uLn0<br>  .nPHsk...&quot;<br>}<br>Respone<br>{<br>  &quot;exp&quot;: 1772842166,<br>  &quot;sub&quot;: &quot;admin@[REDACTED].com&quot;<br>}</pre><pre>This token was then tested against authenticated endpoints on the in-scope web appli<br>cation — and it worked. The application accepted and trusted the token as if it had been issued through the normal login flow.</pre><h3>The full impact chain</h3><p><strong>/cron/getEngageSummary</strong> — No auth required. Returns real internal employee emails. Used to enumerate valid email targets.</p><p><strong>/auth/getToken + employee email</strong> — Pass any email, receive a valid signed JWT. No credentials needed.</p><p><strong>JWT → authenticated endpoints</strong> — Token accepted by the main in-scope web application. Full authenticated access as any user.</p><p><strong>/auth/getAccessKey</strong> — Returns live AWS Access Key ID and Secret Key. Direct access to S3 buckets.</p><p><strong>S3 access</strong> — Buckets contain subscriber PII: personal data, billing history, behavioral profiles, location data.</p><h3>Impact</h3><p>AuthenticationComplete bypass — any user including admin, zero credentials required</p><p>Data exposureSubscriber PII, billing, behavioral &amp; location data via S3</p><p>InfrastructureLive AWS credentials exposed via /auth/getAccessKey</p><p>Recon assistEmployee emails leaked via unauthenticated /cron endpoint</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78df29d88261" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Easiest Way to Find a Critical Vulnerability: A Case Study with Jenkins]]></title>
            <link>https://medium.com/@amrgomaa009/the-easiest-way-to-find-a-critical-vulnerability-a-case-study-with-jenkins-77bb8f7748af?source=rss-55342bd952c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/77bb8f7748af</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[reconnaissance]]></category>
            <dc:creator><![CDATA[Amrgomaa]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 14:15:50 GMT</pubDate>
            <atom:updated>2025-10-01T14:15:50.516Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJakoIBsGa4t7mC-Bjag9Q.png" /></figure><p><strong>Disclaimer ⚠️</strong></p><p>This article is for educational purposes only. Unauthorized access to any computer system is illegal and unethical. You should only perform these actions on systems you have explicit permission to test, such as those within a controlled lab environment or as part of a legitimate bug bounty program.</p><p>By understanding how these vulnerabilities can be exploited, we can better protect our own systems and contribute to a safer digital world</p><p>.The Easiest Way to Find a Critical Vulnerability: A Case Study with Jenkins</p><p>In the world of <strong>cybersecurity</strong>, finding and exploiting vulnerabilities often sounds like a complex task reserved for elite hackers. But what if I told you that sometimes, one of the most dangerous vulnerabilities can be found and exploited with just a few simple steps?</p><p>In this article, I’ll walk you through a straightforward method to exploit a critical Jenkins vulnerability, <strong>CVE-2024–23897</strong>, highlighting just how easily a system can be compromised.</p><h3>Step 1: Hunting for Targets with Shodan</h3><p>Our first mission is to find vulnerable targets. Instead of stumbling around the internet blindly, we’ll use a powerful tool known as <strong>Shodan</strong>, often called “the search engine for connected devices.”</p><p>Shodan allows us to filter devices based on specific criteria, including known vulnerabilities. For our purpose, we’ll use the following search query:</p><p><strong>product:&quot;jenkins&quot; http.status:200 vuln:&quot;cve-2024-23897&quot;</strong></p><ul><li><strong>product:”jenkins”</strong>: This narrows our search to web servers running the Jenkins application.</li><li><strong>http.status:200</strong>: This ensures the server is online and running.</li><li><strong>vuln:”cve-2024–23897&quot;</strong>: This is the magic part. Shodan’s database is updated with known vulnerabilities, allowing us to find systems that are specifically flagged as vulnerable to this CVE.</li></ul><p>Executing this simple query will give you a list of potentially vulnerable Jenkins servers, ready for the next step. It’s a goldmine for ethical hackers.</p><h3>Step 2: Leveraging a Pre-built Exploit Tool</h3><p>Now that we have our list of targets, we need a way to exploit the vulnerability. Writing an exploit from scratch can be time-consuming, but the open-source community often provides ready-to-use tools.</p><p>For this specific CVE, a tool is available on GitHub that simplifies the exploitation process. The tool can be found here:</p><p><a href="https://github.com/godylockz/CVE-2024-23897.git">GitHub - godylockz/CVE-2024-23897: POC for CVE-2024-23897 Jenkins File-Read</a></p><p>To use it, simply follow these steps:</p><ol><li>Open your terminal.</li><li>Use the git clone command to download the tool.</li><li>Install any required dependencies.</li><li>Run the tool, providing the URL of your target.</li></ol><p>With just a few commands, you have a powerful exploit at your fingertips.</p><h3>What Makes This Vulnerability So Dangerous?</h3><p>The <strong>CVE-2024–23897</strong> vulnerability is an <strong>Arbitrary File Read</strong> flaw. This means an attacker can read any file on the compromised server without authentication. The implications are severe:</p><ul><li><strong>Credential Theft:</strong> An attacker can read configuration files that may contain passwords or API keys.</li><li><strong>Sensitive Information Disclosure:</strong> Private keys, source code, and other sensitive data could be exposed.</li><li><strong>Pivot to Other Systems:</strong> By gaining information from one server, an attacker can use it to launch attacks on other connected systems.</li></ul><p>This ease of exploitation highlights a critical issue: the importance of timely patching and continuous security monitoring. A single unpatched vulnerability can open the door to a complete system compromise.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77bb8f7748af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Found a Broken Access Control in a Job Application API]]></title>
            <link>https://medium.com/@amrgomaa009/how-i-found-a-broken-access-control-in-a-job-application-api-72f083b8c113?source=rss-55342bd952c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/72f083b8c113</guid>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[access-control]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[jwt]]></category>
            <dc:creator><![CDATA[Amrgomaa]]></dc:creator>
            <pubDate>Sun, 17 Aug 2025 14:14:01 GMT</pubDate>
            <atom:updated>2025-08-17T14:23:18.444Z</atom:updated>
            <content:encoded><![CDATA[<p>When testing job application platforms, one of the first things I usually think about is:</p><p>👉 <em>“Does the system really check that I’m applying with my own account, or is it just trusting what I send?”</em></p><p>This exact thought led me to discover a <strong>Broken Access Control</strong> issue in a job application API. Although my report was marked as a duplicate, I believe the story and methodology are worth sharing, because it highlights a common security pitfall in modern APIs.<br>Understanding the Flow</p><p>Normally, the process of applying for a job looks simple:</p><ul><li>You log into the platform.</li><li>You click <strong>Apply</strong></li><li>Your profile data (name, email, CV, etc.) is sent to the backend</li></ul><p>At this point, I asked myself:</p><p>💡 <em>“Does the backend trust my authenticated identity (JWT) or does it trust whatever I put inside the request body?”</em></p><p>On the surface, the process looked simple:</p><ol><li>Log into the platform.</li></ol><p>2.Click <strong>Apply</strong> on a job.</p><p>3.Your details (name, email, CV, etc.) are sent to the backend.</p><p>Nothing unusual here. Everything worked as expected when I applied normally.</p><p>The server responded:</p><pre>HTTP/1.1 201 Created</pre><p>At this point, most testers would move on. But a small voice in my head kept asking:</p><p>💡 <em>“What if I just change the email in the request body?”</em></p><p>So I did exactly that. I intercepted the request, replaced the email field in the JSON body with another one, and sent it again.</p><p>The response?</p><pre>HTTP/1.1 400 Bad Request<br>Error: email not matched</pre><p>It looked like the system was doing some validation. Disappointing… but I wasn’t done yet.</p><h3>Digging Deeper: JWT Analysis</h3><p>Instead of giving up, I decided to decode my JWT on <a href="https://jwt.io/">jwt.io</a>.<br> That’s when things got interesting.</p><p>Inside the token payload, I noticed something odd:<br> 📌 The email wasn’t stored once — it appeared <strong>in two separate fields</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BpQ4W0cCWd2dnNjwgBZQNA.png" /></figure><p>That immediately sparked an idea.</p><h3>The Breakthrough</h3><p>What if I:</p><ol><li>Modified both email fields inside the JWT payload, and</li><li>Updated the email in the JSON body to match?</li></ol><p>So I did just that. I updated everything, sent the request again, and…</p><p>🔥 <strong>Boom:</strong></p><pre>HTTP/1.1 201 Created</pre><p>The application went through successfully — <strong>but under a completely spoofed email address</strong>.</p><h3>Real-World Proof</h3><p>The most shocking part came right after.<br> The platform actually sent a <strong>confirmation email</strong> to the spoofed account — an account that never even logged in or applied for the job.</p><p>📩 <em>This proved that I could submit applications on behalf of any registered (or even unregistered) user.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gmfb10veEdmRpD23AUPGsg.png" /></figure><p>Why This Matters</p><p>This wasn’t just a small bug. It meant I could:</p><ul><li>Apply to jobs on behalf of other people.</li><li>Impersonate candidates.</li><li>Undermine the integrity of the entire hiring process.</li></ul><p>All because the backend trusted <strong>both</strong> the JWT payload <strong>and</strong> the request body instead of enforcing identity strictly based on authentication.</p><h3>Key Takeaways</h3><ul><li><strong>Always trust the authenticated session, not user-controlled data.</strong></li><li>Duplicating sensitive fields (like email) in multiple places creates confusion and vulnerabilities.</li><li>Curiosity pays off. That small <em>“what if”</em> led me straight to the bug.</li></ul><p>Even though the report was marked as a duplicate, I walked away with a valuable reminder:</p><p>👉 Sometimes, the difference between “secure” and “broken” is just one extra field the developers forgot to validate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72f083b8c113" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>