← 返回列表
全部 Skill›测试与安全 Testing & Security›web-perimeter-owasp-2025-audit

web-perimeter-owasp-2025-audit

作者 @affaan-m · 语言 en
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.
测试与安全 Testing & Security测试需海外环境执行命令访问网络敏感路径待翻译
存储库
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
309,846
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

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:

  • Authorization & Object-Level Access Control (A01:2025): BOLA/IDOR, tenant isolation, and privilege escalation require authenticated multi-role integration tests (OWASP Authorization Cheat Sheet).
  • Authentication & Session Lifecycle (A07:2025): MFA enforcement, credential stuffing defenses, token rotation, and server-side session revocation cannot be proven from Set-Cookie flags alone (OWASP Authentication Cheat Sheet).
  • Injection & Business Logic Processing (A05 / A06:2025): SQL/NoSQL/command injection, SSRF, and race conditions require source analysis (SAST) and targeted DAST (OWASP Injection Prevention Cheat Sheet).
  • Internal Security Logging & Alerting (A09:2025): Audit trail completeness, tamper resistance, and SIEM alerting must be verified inside the telemetry pipeline (OWASP Logging Cheat Sheet).

Important Safety Contract

  • Never send destructive payloads, brute-force traffic, or unisolated cache-poisoning probes against shared production cache keys.
  • Before sending any X-Forwarded-Host or X-Forwarded-Scheme probe against a live target, first prove query-key isolation using fresh, validated hexadecimal cache-busters (set -euo pipefail, CB_A=$(openssl rand -hex 8) and CB_B=$(openssl rand -hex 8)):
  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.
  • Use a private mktemp -d working directory with trap cleanup for all captured headers and bodies; never write to predictable shared /tmp filenames.
  • Verify real HTTP responses rather than relying on framework defaults; reverse proxies and CDNs frequently strip or override upstream headers.
  • Treat 403 Forbidden on directory roots (such as /.git/) as insufficient unless direct object paths (/.git/HEAD, /.git/config) also return 404/403.
  • Keep all checks local by default (curl / standard system tools). Only invoke external CLIs or remote scorecard APIs when the user explicitly opts in and approves sharing the target hostname.

When to Activate

  • Auditing a live domain or staging environment before launch
  • Reviewing Cloudflare, Vercel, AWS CloudFront, Nginx, or Next.js middleware security configurations
  • Investigating CDN Web Cache Poisoning (X-Forwarded-Host, X-Forwarded-Scheme) or CORS origin reflection
  • Hardening supply chain artifacts (package-lock.json, /.npmrc, /.yarnrc.yml, source maps) and AI crawler boundaries (llms.txt, robots.txt, security.txt)

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):
  • Disabling directory indexing on /.git/ (403 Forbidden) does not prevent repository reconstruction if direct object paths remain readable.
  • Probe each path using a bounded, file-specific signature (--connect-timeout 3 --max-time 5) without printing sensitive contents:
  • /.git/HEAD: check if status is 200 and the first line matches ^ref: refs/ or a 40-character hex SHA (^[0-9a-f]{40}$).
  • /.git/config: check if status is 200 and the body contains [core] or a [remote " section header.
  • /docker-compose.yml: check if status is 200 and the body contains a top-level services: block.
  • Environment configuration paths (such as /<dotenv-artifact>): check if status is 200 and lines match ^[A-Z][A-Z0-9_]+= without <!DOCTYPE or <html, reporting only a boolean detection signal and never echoing secret values.
  1. CORS Arbitrary Origin Reflection:
  • Send Origin: https://evil-probe.invalid with --connect-timeout 3 --max-time 5.
  • If the response reflects Access-Control-Allow-Origin: https://evil-probe.invalid together with Access-Control-Allow-Credentials: true, record it as a **HIGH-priority perimet
评论
Aaffaan-m
affaan-m
affaan-m/ECC
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@affaan-m
所属大类测试与安全 Testing & Security / 测试
国内可用性需海外环境
最近源活动—
风险提示执行命令、访问网络、敏感路径
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。