Home / Market / web perimeter owasp 2025 audit

web perimeter owasp 2025 audit

Passive, non-destructive web perimeter security auditing mapped to OWASP Top 10:2025 surface leads, CDN Unkeyed Header Web Cache Poisoning (X-Forwarded-Host), supply chain manifest exposure, git object dumping prevention (/.git/HEAD), cryptographic headers, and AI crawler boundary governance (llms.txt, robots.txt). Use when auditing production domains, configuring Cloudflare/Vercel/Nginx edge security, or preparing pre-launch perimeter checks.

skill★ 3173660 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- name: web-perimeter-owasp-2025-audit description: Passive, non-destructive web perimeter security auditing mapped to OWASP Top 10:2025 surface leads, CDN Unkeyed Header Web Cache Poisoning (X-Forwarded-Host), supply chain manifest exposure, git object dumping prevention (/.git/HEAD), cryptographic headers, and AI crawler boundary governance (llms.txt, robots.txt). Use when auditing production domains, configuring Cloudflare/Vercel/Nginx edge security, or preparing pre-launch perimeter checks. metadata: origin: ECC

---

Web Perimeter Security Audit (OWASP Top 10:2025 Surface Leads)

Conduct non-destructive, deterministic perimeter security audits against web applications, APIs, and CDN edges. Map observable edge findings to relevant OWASP Top 10:2025 categories as perimeter leads, and verify fixes with reproducible checks before shipping to production.

Scope & Unverified Application-Layer Areas

External HTTP response headers, CDN cache behavior, crawler policies, and disclosure files only inspect the publicly observable edge perimeter. Passing this checklist does not establish full OWASP Top 10:2025 compliance. Always report the following application-layer areas as unverified by perimeter probing unless backed by separate code review and authenticated testing:

Important Safety Contract

  1. Fail closed before sending any request if CB_A or CB_B is empty, equal, or does not match ^[0-9a-f]{16}$.
  2. Send a clean request with ?__cb=${CB_A} (--connect-timeout 3 --max-time 5), repeat the identical ?__cb=${CB_A} request at most twice (max 3 requests total, --max-time 5 each) to confirm a cache HIT, and then send a single clean request with ?__cb=${CB_B} (--max-time 5) and verify it produces a cache MISS.
  3. If HIT followed by MISS is not confirmed within those bounded attempts, abort the live probe and run it only against an isolated staging environment.

When to Activate

Perimeter Audit Workflow

1. Exposed Artifacts, CORS & Cache Isolation Leads (Related to A01 / A02:2025)

  1. Direct Git Object & Config Artifact Exposure (git-dumper vector):
  1. CORS Arbitrary Origin Reflection:
  1. Unkeyed Header Web Cache Poisoning (Bounded Probe & Local Staging Fixture):
     set -euo pipefail
     CB_A="$(openssl rand -hex 8)"
     CB_B="$(openssl rand -hex 8)"
     if [[ ! "${CB_A}" =~ ^[0-9a-f]{16}$ ]] || [[ ! "${CB_B}" =~ ^[0-9a-f]{16}$ ]] || [[ "${CB_A}" == "${CB_B}" ]]; then
       echo "Fail closed: invalid cache-buster entropy" >&2
       exit 1
     fi

     WORK_DIR="$(mktemp -d)"
     trap 'rm -rf "${WORK_DIR}"' EXIT

     TARGET_BASE="https://example.com/"
     # Step 1: Prove query-key isolation (max 3 attempts for HIT on CB_A, then MISS on CB_B)
     CACHE_HIT=0
     for attempt in 1 2 3; do
       curl -sS --connect-timeout 3 --max-time 5 -D "${WORK_DIR}/iso_a_headers.txt" -o /dev/null "${TARGET_BASE}?__cb=${CB_A}"
       if grep -Eiq '^(cf-cache-status:\s*HIT|x-cache:\s*Hit|age:\s*[1-9])' "${WORK_DIR}/iso_a_headers.txt"; then
         CACHE_HIT=1
         break
       fi
     done
     curl -sS --connect-timeout 3 --max-time 5 -D "${WORK_DIR}/iso_b_headers.txt" -o /dev/null "${TARGET_BASE}?__cb=${CB_B}"
     if [[ "${CACHE_HIT}" -ne 1 ]] || ! grep -Eiq '^(cf-cache-status:[[:space:]]*MISS([[:space:]]|$)|x-cache:[[:space:]]*Miss([[:space:]]|$))' "${WORK_DIR}/iso_b_headers.txt" || grep -Eiq '^(cf-cache-status:[[:space:]]*HIT|x-cache:[[:space:]]*Hit|age:[[:space:]]*[1-9])' "${WORK_DIR}/iso_b_headers.txt"; then
       echo "Aborting live probe: query-key cache isolation not proven; use isolated staging." >&2
       exit 1
     fi

     # Step 2: Isolated GET probe on a fresh cache-buster key
     CB_PROBE="$(openssl rand -hex 8)"
     [[ "${CB_PROBE}" =~ ^[0-9a-f]{16}$ && "${CB_PROBE}" != "${CB_A}" && "${CB_PROBE}" != "${CB_B}" ]] || exit 1
     PROBE_URL="${TARGET_BASE}?__cb=${CB_PROBE}"

     curl -sS --connect-timeout 3 --max-time 5 \
       -D "${WORK_DIR}/probe_headers.txt" -o "${WORK_DIR}/probe_body.txt" "${PROBE_URL}" \
       -H "X-Forwarded-Host: cache-probe.invalid" \
       -H "X-Forwarded-Scheme: nothttps"

     # Step 3: Clean follow-up GET to the identical URL without probe headers
     curl -sS --connect-timeout 3 --max-time 5 \
       -D "${WORK_DIR}/clean_headers.txt" -o "${WORK_DIR}/clean_body.txt" "${PROBE_URL}"

To validate your detection logic locally without touching external networks, run this loopback fixture:

     python3 - << 'EOF'
     import http.server, threading, urllib.request

     STORE = {}
     class EdgeFixture(http.server.BaseHTTPRequestHandler):
         def log_message(self, *args): pass
         def do_GET(self):
             mode, _, query = self.path.partition("?")
             xfh = self.headers.get("X-Forwarded-Host", "clean.example")
             # /vulnerable caches by query only (unkeyed X-Forwarded-Host)
             # /safe includes X-Forwarded-Host in the cache key (negative control)
             key = (mode, query) if mode == "/vulnerable" else (mode, query, xfh)
             if key in STORE:
                 body, hit = STORE[key], "HIT"
             else:
                 body = f"<link href='https://{xfh}/app.js'>".encode()
                 STORE[key], hit = body, "MISS"
             self.send_response(200)
             self.send_header("CF-Cache-Status", hit)
             self.end_headers()
             self.wfile.write(body)

     srv = http.server.HTTPServer(("127.0.0.1", 0), EdgeFixture)
     port = srv.server_port
     threading.Thread(target=srv.serve_forever, daemon=True).start()

     def check_path(path):
         url = f"http://127.0.0.1:{port}{path}?__cb=deadbeef01234567"
         req1 = urllib.request.Request(url, headers={"X-Forwarded-Host": "cache-probe.invalid"})
         urllib.request.urlopen(req1, timeout=3).read()
         resp2 = urllib.request.urlopen(url, timeout=3)
         body2 = resp2.read().decode()
         hit2 = resp2.headers.get("CF-Cache-Status")
         return hit2 == "HIT" and "cache-probe.invalid" in body2

     assert check_path("/vulnerable") is True, "Expected positive replay detection on /vulnerable"
     assert check_path("/safe") is False, "Expected negative control to stay clean on /safe"
     srv.shutdown()
     print("Staging fixture verified: positive replay detected and negative control clean.")
     EOF

2. Software Supply Chain & Integrity Leads (Related to A03 / A08:2025)

  1. Public Lockfile & Registry Config Exposure: