blitzstrike 2.4.83 → 2.4.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/index.js +247 -5
- package/intelligence/cwe_map.json +5 -0
- package/intelligence/patterns.json +117 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,46 @@ All notable changes to Blitz Strike are documented here.
|
|
|
5
5
|
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [2.4.85] — 2026-09-17
|
|
9
|
+
|
|
10
|
+
### Added — CORS, XSS (DOM sinks), and subdomain-takeover detectors
|
|
11
|
+
|
|
12
|
+
- New `cors_misconfiguration` detector — Access-Control-Allow-Origin reflects the
|
|
13
|
+
request Origin (or is `*`) while credentials are allowed (CWE-942); handles the
|
|
14
|
+
`setHeader('…', …)` comma shape and raw-header/wildcard shapes.
|
|
15
|
+
- New `xss` detector — user-controlled input reaching a DOM/JS sink (innerHTML,
|
|
16
|
+
dangerouslySetInnerHTML, document.write, .html(), eval, insertAdjacentHTML),
|
|
17
|
+
fired only when a source (req/location/URLSearchParams/…) is in the same file and
|
|
18
|
+
the sink value is not a constant string (CWE-79).
|
|
19
|
+
- New `subdomain_takeover` detector — a DNS CNAME/AliasTarget/DNSName/route53 record
|
|
20
|
+
pointing at a claimable service (github.io / herokuapp.com / amazonaws.com / …)
|
|
21
|
+
(CWE-404). 24 takeover-able fingerprints.
|
|
22
|
+
- Wired into patterns.json (29), cwe_map (69), severity VRT_MAP, synonyms, and the
|
|
23
|
+
verify harness (now 28/28 TP+TN). Complex-bug scan description + system prompt
|
|
24
|
+
updated.
|
|
25
|
+
|
|
26
|
+
Competitive analysis source: Awarexone/Agentic-Bug-Hunter (web2-vuln-classes).
|
|
27
|
+
|
|
28
|
+
## [2.4.84] — 2026-09-17
|
|
29
|
+
|
|
30
|
+
### Added — hunting doctrine + always-rejected kill-list (LLM-facing methodology)
|
|
31
|
+
|
|
32
|
+
- New `hunting_doctrine()` tool — the high-ROI heuristics the agent applies while
|
|
33
|
+
choosing targets/endpoints/classes: the Sibling Rule (check every sibling
|
|
34
|
+
endpoint — ~30% of paid IDOR/auth bugs), A→B Signal Method, impact-first,
|
|
35
|
+
follow-the-money, less-saturated classes, new==unreviewed, two-account IDOR test,
|
|
36
|
+
PoC escalation, credential-proof, CI/CD + SAML/SSO attack surface, 20-minute
|
|
37
|
+
rotation.
|
|
38
|
+
- New `kill_list(type)` tool — a deterministic always-rejected classifier: missing
|
|
39
|
+
headers, self-XSS, open-redirect-alone, SSRF-DNS-only, GraphQL-introspection-alone,
|
|
40
|
+
logout CSRF, missing cookie flags, rate-limit-on-non-critical, version disclosure
|
|
41
|
+
are N/A standalone (chain to real impact first). Run BEFORE submission_gate.
|
|
42
|
+
- System prompt now carries the compressed doctrine inline; `missing_authz` pattern's
|
|
43
|
+
validation mandates the two-account IDOR test (attacker A → victim B).
|
|
44
|
+
|
|
45
|
+
Competitive analysis source: Awarexone/Agentic-Bug-Hunter (rules/hunting.md +
|
|
46
|
+
reporting.md).
|
|
47
|
+
|
|
8
48
|
## [2.4.83] — 2026-09-17
|
|
9
49
|
|
|
10
50
|
### Added — Web3 / Solidity audit (10 bug classes + Foundry PoC)
|
package/dist/index.js
CHANGED
|
@@ -16320,6 +16320,9 @@ function detectComplexBugs(code, file) {
|
|
|
16320
16320
|
detectRustFormatString(code, file, out);
|
|
16321
16321
|
detectJwtAlgConfusion(code, file, out);
|
|
16322
16322
|
detectCacheDeception(code, file, out);
|
|
16323
|
+
detectCorsMisconfig(code, file, out);
|
|
16324
|
+
detectXss(code, file, out);
|
|
16325
|
+
detectSubdomainTakeover(code, file, out);
|
|
16323
16326
|
out.push(...detectWrongSanitizer(code, file));
|
|
16324
16327
|
out.push(...detectMissingAuthz(code, file));
|
|
16325
16328
|
const seen = new Set;
|
|
@@ -16913,6 +16916,89 @@ function detectCacheDeception(code, file, out) {
|
|
|
16913
16916
|
detail: "The reverse proxy caches static-extension URLs using a cache key that excludes the session cookie, while a backend route (often a greedy regex like /account(/.*)?) returns per-session private data for such URLs. An attacker can poison the cache with a victim's session response and re-fetch it anonymously. Include the cookie in the cache key, or don't cache cookie-authenticated responses."
|
|
16914
16917
|
});
|
|
16915
16918
|
}
|
|
16919
|
+
function detectCorsMisconfig(code, file, out) {
|
|
16920
|
+
const clean = stripCommentsOnly(code);
|
|
16921
|
+
const ls = lines2(code);
|
|
16922
|
+
const hasCredentials = /Access-Control-Allow-Credentials['"]?\s*(?::|,|=)\s*['"]?true/i.test(clean) || /\ballow_credentials\s*=\s*True\b/i.test(clean) || /\bcredentials\s*:\s*true\b/i.test(clean) || /\bwithCredentials\s*:\s*true\b/i.test(clean);
|
|
16923
|
+
const reflected = /Access-Control-Allow-Origin['"]?\s*(?::|,|=)\s*['"]?\*['"]?/i.test(clean) || /Access-Control-Allow-Origin['"]?\s*(?::|,|=)\s*[^,;\n]*\borigin\b/i.test(clean) || /allow_origins?\s*=\s*\[\s*['"]\*['"]\s*\]/i.test(clean) || /@CrossOrigin\s*\(\s*origins\s*=\s*['"]\*['"]/i.test(clean);
|
|
16924
|
+
if (!hasCredentials || !reflected)
|
|
16925
|
+
return;
|
|
16926
|
+
const ln = lineNo2(code, clean.search(/Access-Control-Allow-Origin|allow_origins|@CrossOrigin|CORS\s*\(/i));
|
|
16927
|
+
out.push({
|
|
16928
|
+
file,
|
|
16929
|
+
line: ln,
|
|
16930
|
+
type: "cors_misconfiguration",
|
|
16931
|
+
category: "CORS misconfiguration (reflected origin + credentials)",
|
|
16932
|
+
severity: "high",
|
|
16933
|
+
evidence: (ls[ln - 1] ?? "").trim(),
|
|
16934
|
+
detail: "Access-Control-Allow-Origin reflects the request Origin (or is '*') while Access-Control-Allow-Credentials is true — any website can read the victim's authenticated responses cross-origin (CWE-942). Validate the Origin against a static allowlist and never combine a reflected/wildcard origin with credentials."
|
|
16935
|
+
});
|
|
16936
|
+
}
|
|
16937
|
+
function detectXss(code, file, out) {
|
|
16938
|
+
const clean = stripCommentsOnly(code);
|
|
16939
|
+
const ls = lines2(code);
|
|
16940
|
+
const hasSource = /\b(?:req\.(?:query|params|body|cookies|headers)|request\.(?:get|args|form|json|values|headers|params)|location\.(?:hash|search|href)|window\.location|document\.(?:URL|referrer)|URLSearchParams|searchParams\.get|getElementById\([^)]*\)\.value|routeParams|queryParams|this\.props|params\s*[:=])/i.test(clean) || /\b(?:req\.(?:query|params|body)|request\.(?:get|args|json|values)|location\.(?:hash|search))\b/i.test(clean);
|
|
16941
|
+
if (!hasSource)
|
|
16942
|
+
return;
|
|
16943
|
+
const sinkRe = /dangerouslySetInnerHTML|\.innerHTML\s*=|\.outerHTML\s*=|document\.write\s*\(|insertAdjacentHTML\s*\(|\.html\s*\(|eval\s*\(/g;
|
|
16944
|
+
let m;
|
|
16945
|
+
const seen = new Set;
|
|
16946
|
+
while ((m = sinkRe.exec(clean)) !== null) {
|
|
16947
|
+
const ln = lineNo2(code, m.index);
|
|
16948
|
+
if (seen.has(ln))
|
|
16949
|
+
continue;
|
|
16950
|
+
const line = ls[ln - 1] ?? "";
|
|
16951
|
+
const rest = line.slice(line.indexOf(m[0]) + m[0].length);
|
|
16952
|
+
if (/^\s*["'`]/.test(rest))
|
|
16953
|
+
continue;
|
|
16954
|
+
if (m[0] === "eval(" && /^\s*["'`]/.test(rest))
|
|
16955
|
+
continue;
|
|
16956
|
+
if (m[0] === "dangerouslySetInnerHTML" && !/__html\s*:\s*[^'"`]/.test(line))
|
|
16957
|
+
continue;
|
|
16958
|
+
seen.add(ln);
|
|
16959
|
+
out.push({
|
|
16960
|
+
file,
|
|
16961
|
+
line: ln,
|
|
16962
|
+
type: "xss",
|
|
16963
|
+
category: "Cross-site scripting (user input into a DOM sink)",
|
|
16964
|
+
severity: "high",
|
|
16965
|
+
evidence: line.trim(),
|
|
16966
|
+
detail: "User-controlled input reaches a DOM/JS sink (innerHTML / dangerouslySetInnerHTML / document.write / .html() / eval / insertAdjacentHTML). If the value is not sanitized or context-encoded, an attacker injects script that runs in a victim's session (CWE-79). Use textContent/value assignment, a DOM-purify allowlist, or a framework's escaping — never assign raw user data to an HTML sink."
|
|
16967
|
+
});
|
|
16968
|
+
}
|
|
16969
|
+
}
|
|
16970
|
+
function detectSubdomainTakeover(code, file, out) {
|
|
16971
|
+
const clean = stripCommentsOnly(code);
|
|
16972
|
+
const ls = lines2(code);
|
|
16973
|
+
const fingerprint = /(?:\.github\.io|\.s3[.-]?[a-z0-9-]*\.amazonaws\.com|\.herokuapp\.com|\.azurewebsites\.net|\.cloudfront\.net|\.fastly\.net|\.myshopify\.com|\.zendesk\.com|\.uservoice\.com|\.bitbucket\.io|\.readme\.io|\.ghost\.io|\.surge\.sh|\.netlify\.app|\.vercel\.app|\.firebaseapp\.com|\.elasticbeanstalk\.com|\.pantheon\.io|\.wordpress\.com|\.tumblr\.com|\.helpscoutdocs\.com|\.cargo\.site|\.getresponse\.com|\.teamwork\.com)\b/i;
|
|
16974
|
+
const targetRe = /["']([a-z0-9.-]+\.[a-z]{2,})["']/g;
|
|
16975
|
+
const seen = new Set;
|
|
16976
|
+
const ls2 = lines2(clean);
|
|
16977
|
+
for (let i = 0;i < ls2.length; i++) {
|
|
16978
|
+
const line = ls2[i];
|
|
16979
|
+
if (!/(?:CNAME|AliasTarget|DNSName|aws_route53_record|dns_zone|records?\s*[:=]\s*\[)/i.test(line))
|
|
16980
|
+
continue;
|
|
16981
|
+
let t;
|
|
16982
|
+
while ((t = targetRe.exec(line)) !== null) {
|
|
16983
|
+
const target = t[1];
|
|
16984
|
+
if (!fingerprint.test(target))
|
|
16985
|
+
continue;
|
|
16986
|
+
const ln = i + 1;
|
|
16987
|
+
if (seen.has(ln))
|
|
16988
|
+
continue;
|
|
16989
|
+
seen.add(ln);
|
|
16990
|
+
out.push({
|
|
16991
|
+
file,
|
|
16992
|
+
line: ln,
|
|
16993
|
+
type: "subdomain_takeover",
|
|
16994
|
+
category: "Subdomain takeover (CNAME to a claimable service)",
|
|
16995
|
+
severity: "high",
|
|
16996
|
+
evidence: (ls[ln - 1] ?? "").trim(),
|
|
16997
|
+
detail: `A DNS record points \`${target}\` at a service that can be claimed by an attacker (GitHub Pages/S3/Heroku/…). If the target is unclaimed/removed, an attacker registers it and hosts content on the victim's subdomain (cookie theft, phishing, same-origin attack). Verify the target resolves to a 'not found'/unclaimed service, then remove the dangling record.`
|
|
16998
|
+
});
|
|
16999
|
+
}
|
|
17000
|
+
}
|
|
17001
|
+
}
|
|
16916
17002
|
var SOURCE_TOKENS3, MAGIC_METHODS, SECRET_FIELD_RE, SECRET_PLACEHOLDER_RE, ENTROPY_EXCLUDE_VAR;
|
|
16917
17003
|
var init_complex_bugs = __esm(() => {
|
|
16918
17004
|
init_security_state();
|
|
@@ -17138,10 +17224,39 @@ $r = openai.chat.completions.create(['messages' => [['role' => 'user', 'content'
|
|
|
17138
17224
|
id: "cache-deception",
|
|
17139
17225
|
detector: "cache_deception",
|
|
17140
17226
|
file: "nginx.conf",
|
|
17141
|
-
positive: `location ~*
|
|
17227
|
+
positive: `location ~* .(css|js|png|jpg|gif|ico|svg)$ { proxy_cache ctf_cache; proxy_cache_valid 200 5m; }
|
|
17142
17228
|
proxy_cache_key "$scheme$request_method$request_uri";
|
|
17143
17229
|
`,
|
|
17144
17230
|
negative: `location / { proxy_pass http://backend; }
|
|
17231
|
+
`
|
|
17232
|
+
},
|
|
17233
|
+
{
|
|
17234
|
+
id: "cors-misconfig",
|
|
17235
|
+
detector: "cors_misconfiguration",
|
|
17236
|
+
file: "server.js",
|
|
17237
|
+
positive: `res.setHeader('Access-Control-Allow-Origin', req.headers.origin);
|
|
17238
|
+
res.setHeader('Access-Control-Allow-Credentials', 'true');
|
|
17239
|
+
`,
|
|
17240
|
+
negative: `res.setHeader('Access-Control-Allow-Origin', 'https://app.example.com');
|
|
17241
|
+
`
|
|
17242
|
+
},
|
|
17243
|
+
{
|
|
17244
|
+
id: "xss-dom-sink",
|
|
17245
|
+
detector: "xss",
|
|
17246
|
+
file: "page.js",
|
|
17247
|
+
positive: `const u = new URLSearchParams(location.search).get('name');
|
|
17248
|
+
document.getElementById('out').innerHTML = u;
|
|
17249
|
+
`,
|
|
17250
|
+
negative: `document.getElementById('out').innerHTML = '<b>static</b>';
|
|
17251
|
+
`
|
|
17252
|
+
},
|
|
17253
|
+
{
|
|
17254
|
+
id: "subdomain-takeover",
|
|
17255
|
+
detector: "subdomain_takeover",
|
|
17256
|
+
file: "dns.tf",
|
|
17257
|
+
positive: `resource "aws_route53_record" "blog" { name = "blog.example.com" type = "CNAME" records = ["oldblog.github.io"] }
|
|
17258
|
+
`,
|
|
17259
|
+
negative: `resource "aws_route53_record" "www" { name = "www.example.com" type = "A" records = ["1.2.3.4"] }
|
|
17145
17260
|
`
|
|
17146
17261
|
}
|
|
17147
17262
|
];
|
|
@@ -34383,7 +34498,21 @@ var ALIASES = {
|
|
|
34383
34498
|
"web cache deception": "cache_deception",
|
|
34384
34499
|
"cache deception": "cache_deception",
|
|
34385
34500
|
"cache poisoning": "cache_deception",
|
|
34386
|
-
"cache key injection": "cache_deception"
|
|
34501
|
+
"cache key injection": "cache_deception",
|
|
34502
|
+
cors: "cors_misconfiguration",
|
|
34503
|
+
"cors misconfiguration": "cors_misconfiguration",
|
|
34504
|
+
"cors misconfig": "cors_misconfiguration",
|
|
34505
|
+
"cross origin resource sharing": "cors_misconfiguration",
|
|
34506
|
+
xss: "xss",
|
|
34507
|
+
"cross site scripting": "xss",
|
|
34508
|
+
"cross-site scripting": "xss",
|
|
34509
|
+
"dom xss": "xss",
|
|
34510
|
+
"reflected xss": "xss",
|
|
34511
|
+
"stored xss": "xss",
|
|
34512
|
+
"subdomain takeover": "subdomain_takeover",
|
|
34513
|
+
takeover: "subdomain_takeover",
|
|
34514
|
+
"dangling dns": "subdomain_takeover",
|
|
34515
|
+
"dangling cname": "subdomain_takeover"
|
|
34387
34516
|
};
|
|
34388
34517
|
function normalize(term) {
|
|
34389
34518
|
return term.trim().toLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
|
|
@@ -58897,7 +59026,10 @@ var VRT_MAP = {
|
|
|
58897
59026
|
rust_unsafe: { vrt: "insecure_design > unsafe_memory_operations", priority: "P3", severity: "medium", rationale: "transmute/from_raw_parts/assume_init bypass the borrow checker — a hint that needs bounds verification; memory corruption if attacker-controlled." },
|
|
58898
59027
|
rust_format_string: { vrt: "injection > format_string_injection", priority: "P2", severity: "high", rationale: "An attacker-controlled format string can read or corrupt memory via format specifiers." },
|
|
58899
59028
|
jwt_alg_confusion: { vrt: "authentication > jwt_algorithm_confusion", priority: "P1", severity: "critical", rationale: "A verifier accepting HS256 with public-key HMAC lets an attacker forge admin tokens (CVE-2015-9235)." },
|
|
58900
|
-
cache_deception: { vrt: "cryptographic_failure > web_cache_deception", priority: "P2", severity: "high", rationale: "Cookie-less static cache keys leak per-session private responses to anonymous callers." }
|
|
59029
|
+
cache_deception: { vrt: "cryptographic_failure > web_cache_deception", priority: "P2", severity: "high", rationale: "Cookie-less static cache keys leak per-session private responses to anonymous callers." },
|
|
59030
|
+
cors_misconfiguration: { vrt: "configuration > cors_misconfiguration", priority: "P3", severity: "medium", rationale: "A reflected/wildcard origin with credentials lets any website read authenticated responses cross-origin (CWE-942)." },
|
|
59031
|
+
xss: { vrt: "injection > cross_site_scripting", priority: "P2", severity: "high", rationale: "User input into a DOM sink executes script in the victim's origin (CWE-79)." },
|
|
59032
|
+
subdomain_takeover: { vrt: "configuration > subdomain_takeover", priority: "P3", severity: "medium", rationale: "A dangling CNAME lets an attacker host content on the victim's subdomain (CWE-404)." }
|
|
58901
59033
|
};
|
|
58902
59034
|
function severityCalibrate(input) {
|
|
58903
59035
|
const type = input.type?.toLowerCase() ?? "";
|
|
@@ -60646,6 +60778,100 @@ contract Evil {
|
|
|
60646
60778
|
`;
|
|
60647
60779
|
}
|
|
60648
60780
|
|
|
60781
|
+
// src/doctrine.ts
|
|
60782
|
+
var ALWAYS_REJECTED = [
|
|
60783
|
+
{ type: "missing_headers", reason: "CSP / HSTS / X-Frame-Options headers alone — never accepted standalone." },
|
|
60784
|
+
{ type: "graphql_introspection", reason: "GraphQL introspection alone — informational; it only maps the attack surface." },
|
|
60785
|
+
{ type: "self_xss", reason: "Self-XSS — the attacker can only execute against themselves." },
|
|
60786
|
+
{ type: "open_redirect", reason: "Open redirect alone — informational without an OAuth/token-theft chain." },
|
|
60787
|
+
{ type: "ssrf_dns_only", reason: "SSRF with a DNS callback only — no data read, no impact." },
|
|
60788
|
+
{ type: "logout_csrf", reason: "Logout CSRF — no security impact." },
|
|
60789
|
+
{ type: "missing_cookie_flags", reason: "Missing cookie flags (Secure/HttpOnly/SameSite) alone — informational." },
|
|
60790
|
+
{ type: "rate_limit_noncritical", reason: "Rate-limit on a non-critical form — informational." },
|
|
60791
|
+
{ type: "version_disclosure", reason: "Banner/version disclosure without a working exploit." }
|
|
60792
|
+
];
|
|
60793
|
+
function norm(s) {
|
|
60794
|
+
return s.toLowerCase().replace(/[^a-z0-9]+/g, "_");
|
|
60795
|
+
}
|
|
60796
|
+
function killList(type) {
|
|
60797
|
+
if (!type)
|
|
60798
|
+
return { rejected: false, matches: ALWAYS_REJECTED };
|
|
60799
|
+
const t = norm(type);
|
|
60800
|
+
const matches = ALWAYS_REJECTED.filter((x) => {
|
|
60801
|
+
const n = norm(x.type);
|
|
60802
|
+
return t.includes(n) || n.includes(t);
|
|
60803
|
+
});
|
|
60804
|
+
return { rejected: matches.length > 0, matches };
|
|
60805
|
+
}
|
|
60806
|
+
var HUNTING_DOCTRINE = [
|
|
60807
|
+
{
|
|
60808
|
+
id: "sibling_rule",
|
|
60809
|
+
title: "The Sibling Rule",
|
|
60810
|
+
rule: "Check EVERY sibling endpoint. If /api/user/123/orders requires auth, also check /api/user/123/export, /delete, /share. This explains ~30% of all paid IDOR/auth bugs."
|
|
60811
|
+
},
|
|
60812
|
+
{
|
|
60813
|
+
id: "a_b_signal",
|
|
60814
|
+
title: "A→B Signal Method",
|
|
60815
|
+
rule: "When bug A is confirmed, STOP and hunt B and C before writing the report. A confirmed bug signals a class of developer mistake — finding B costs 10x less than finding A. Time-box 20 minutes; if B is not confirmed, submit A and move on."
|
|
60816
|
+
},
|
|
60817
|
+
{
|
|
60818
|
+
id: "impact_first",
|
|
60819
|
+
title: "Impact-First",
|
|
60820
|
+
rule: "Ask 'what is the worst thing that happens if auth/validation is broken HERE?' — nothing valuable → skip. Admin/PII/fund-theft → hunt."
|
|
60821
|
+
},
|
|
60822
|
+
{
|
|
60823
|
+
id: "follow_money",
|
|
60824
|
+
title: "Follow the Money",
|
|
60825
|
+
rule: "Billing / credits / refunds / wallet flows have the most developer shortcuts. Price manipulation, payment races, quota bypass = high ROI."
|
|
60826
|
+
},
|
|
60827
|
+
{
|
|
60828
|
+
id: "less_saturated",
|
|
60829
|
+
title: "Hunt Less-Saturated Classes",
|
|
60830
|
+
rule: "High competition (skip unless target-specific): XSS, SSRF basics, open redirect alone. Low competition: cache poisoning, race conditions, business logic, HTTP request smuggling, CI/CD."
|
|
60831
|
+
},
|
|
60832
|
+
{
|
|
60833
|
+
id: "new_unreviewed",
|
|
60834
|
+
title: "New == Unreviewed",
|
|
60835
|
+
rule: "Features <30 days old have the lowest security maturity. Monitor commits; hunt new features first."
|
|
60836
|
+
},
|
|
60837
|
+
{
|
|
60838
|
+
id: "two_account",
|
|
60839
|
+
title: "Two-Account IDOR Test",
|
|
60840
|
+
rule: "Never test IDOR with one account. Account A = attacker (your request), Account B = victim (whose data you read). The report must state: 'sent Account A's token with Account B's id and received Account B's data.'"
|
|
60841
|
+
},
|
|
60842
|
+
{
|
|
60843
|
+
id: "poc_escalation",
|
|
60844
|
+
title: "PoC Escalation",
|
|
60845
|
+
rule: "IDOR → show the victim's actual data (not just 200 OK). XSS → show cookie exfiltration (not alert). SSRF → show the internal service response (not just a DNS callback). SQLi → show real database content (not just an error)."
|
|
60846
|
+
},
|
|
60847
|
+
{
|
|
60848
|
+
id: "credential_proof",
|
|
60849
|
+
title: "Credential Leaks Need Exploitation Proof",
|
|
60850
|
+
rule: "An API key alone is Informational. Prove what it accesses (S3 read, DB, admin panel) via validate_leaked_key — then it is Medium/High."
|
|
60851
|
+
},
|
|
60852
|
+
{
|
|
60853
|
+
id: "cicd_surface",
|
|
60854
|
+
title: "CI/CD Is Attack Surface",
|
|
60855
|
+
rule: "GitHub Actions / GitLab CI hold critical secrets. Check public repos BEFORE reporting: pull_request_target + checkout of the PR branch (attacker code runs with repo secrets), ${{github.event.issue.title}} in a run: block (expression injection → secret exfil), artifact download without hash check."
|
|
60856
|
+
},
|
|
60857
|
+
{
|
|
60858
|
+
id: "saml_sso",
|
|
60859
|
+
title: "SAML / SSO = Highest Auth Bug Density",
|
|
60860
|
+
rule: "If the target uses SSO, test: XML signature wrapping (XSW), comment injection (admin<!---->@company.com), signature stripping, NameID manipulation in the unsigned field. SAML bugs pay High–Critical (SSO bypass across the platform)."
|
|
60861
|
+
},
|
|
60862
|
+
{
|
|
60863
|
+
id: "rotation",
|
|
60864
|
+
title: "20-Minute Rotation",
|
|
60865
|
+
rule: "Every 20 minutes ask 'am I making progress?'. No → rotate to the next endpoint / subdomain / class. Fresh context finds more bugs than brute force."
|
|
60866
|
+
}
|
|
60867
|
+
];
|
|
60868
|
+
function huntingDoctrine() {
|
|
60869
|
+
return {
|
|
60870
|
+
doctrine: HUNTING_DOCTRINE,
|
|
60871
|
+
always_rejected: ALWAYS_REJECTED
|
|
60872
|
+
};
|
|
60873
|
+
}
|
|
60874
|
+
|
|
60649
60875
|
// src/enterprise-benchmark.ts
|
|
60650
60876
|
import { existsSync as existsSync14, readFileSync as readFileSync25, readdirSync as readdirSync6, statSync as statSync3 } from "node:fs";
|
|
60651
60877
|
import { join as join23, resolve } from "node:path";
|
|
@@ -60903,7 +61129,7 @@ function createServer2() {
|
|
|
60903
61129
|
` + `- A hard block (Cloudflare/WAF/IP-block/captcha) is NOT the end: mark the finding blocked + note the required vantage (residential / authorized / correct-SNI / --resolve direct-to-origin), then CONTINUE to the next lead (origin bypass, non-prod cluster, mobile APK, subdomain).
|
|
60904
61130
|
` + `- Keep trying every lead AND every chain step until each is verified/executed or blocked, THEN generate_report. Never deliver a bare surface map, and never stop at 'found X' when X enables more.
|
|
60905
61131
|
|
|
60906
|
-
` + "TWO PATHS:\\n" + "- Source path on disk -> blitz_scan / taint_file / eagle_eye2 (static).\\n" + "- Live URL -> live_recon / active_scan / strike_verify (web-hunting).\\n\\n" + "DEEPEN A FINDING: attack_plan(target, tech, params) to get the prioritized vector plan (decide what to test next with data); list_chains (escalation), chain_links (compose), technique_lookup(cls), payload_lookup, bypass_lookup (blocked). Ground any detector hit empirically with pattern_lookup(id) — it returns the class's CWE, real-world signature, escalation chains, citable references, per-class bypass techniques, and the high-value assets (crown jewels) that class hits, so a raw hit becomes a class-aware finding. Resolve free-form terminology first with synonym_lookup(term) (IDOR/BOLA/SQLi/prompt-injection → canonical id). For an llm_injection hit, its pattern carries a validation discipline — the RUN-TWICE RULE (reproduce token-for-token across two fresh sessions), NON-GUESSABLE ANCHOR (must leak a real key/URL, not a plausible guess), and OOB PROOF (a verifiable callback log) — apply all three before reporting. BEFORE generating a report, run submission_gate(...) and only ship a finding that passes all 7 questions (reproducible, in-scope, real-impact, no-privileged-assumption, verified-live, evidence-redacted, severity-derived); one false = kill it. Calibrate severity with severity_calibrate(type, cvss) to get a P1–P5 tier + VRT-style category. Start each engagement with engagement_scaffold(target, scope) for the folder + scope.md structure, and check data_refresh() to confirm the data layers are consistent. Phase doctrine: read_skill(bs-orchestrate-engagement | bs-web-hunting | bs-source-audit | bs-verify-finding). Campaign plan: read_playbook(target-type). On any failure call retry_guidance(signal) / model_fallback(signal) before giving up.\n" + "KNOWLEDGE BASE (discover, don't guess): skillLookup(topic) / listSkills for the 40 attack-path + hunting skills (ap-*, hp-*, bs-*); list_attack_vectors / attack_vectors(cat) for the 34-category vector taxonomy; taxonomy(kind) for OWASP/CWE/ASVS/API-top-10; read_playbook(type) for the 17 campaign playbooks; list_manuals / read_tool_manual for 317 tool references; list_tools / run_catalog_tool for the 141-tool catalog. Every tool, skill, and data layer is reachable from these. CROSS-TARGET INTELLIGENCE: strike_resolve auto-records confirmed/false_positive verdicts into the empirical ledger; query it with intelligence(action=hit_rates/top_vectors/recall) so a new target on a known tech inherits historical hit-rates (attack_plan already blends them into success_probability). intelligence(action=recall, tech, target) is the per-engagement pattern recall — it returns which patterns historically CONFIRMED on that tech (prioritize them) versus which only ever produced false positives (avoid them), so a new engagement starts from the empirical playbook of past ones. LIVE PENTEST + TARGETING (black-box, WAF-safe): cache_gap(base_url, endpoint) fuzzes path-normalization + static-extension variants for cache deception/poisoning; blind_oracle(base_url, param, value) detects which SINK a param reaches (sql/ssti/xss) via benign arithmetic (id=1+0, test${7*7}) WITHOUT a malicious payload; param_precedence(base_url, param, A, B) maps duplicate-parameter precedence (first/last-wins) for WAF-bypass. OOB (out-of-band) PROOF for BLIND vulns: oob_start() spins an interactsh listener (unique *.oast.* domain, streams DNS/HTTP interactions — the standard for public targets) or a local HTTP listener for local labs; inject the canary, then oob_poll(id) until the hit arrives; oob_stop(id) to clean up. A blind SSRF/XXE/SQLi/command-injection is CONFIRMED only when the canary actually arrives — never from a guess. SOURCE TARGETING: action_surface(code) maps every wp_ajax_* action to its vuln class + DERIVED priority (what to look for WHERE); security_state(sanitizers, sink) gives a wrong-context sanitization verdict; framework_knowledge(framework) returns auth/nonce primitives for 9 frameworks; variant_scan(root, signature) mass-sweeps an install base for ONE bug family; patch_analyze(old, new) REVERSES a security patch into the 0-day, and its mine_signature feeds variant_scan to sweep unpatched copies. All of these are DETECTION HINTS — verify each live (strike_verify / browser_validate) before it enters the report. NEWEST DETECTORS — understand AND try them: variant_scan also emits priv_esc (privilege escalation — a role/capability/user change fed by request input, traced cross-file via reverse call-graph, e.g. set_role($id, sanitize_key($_POST['um-role'])) or update_user_meta(...,'wp_capabilities', $_POST[...])) and flags uploadAllow=>array('all') unrestricted-upload configs as file_upload (the file-manager/connector shape). TO TRY a priv_esc hit: submit the role field with 'administrator' (or send wp_capabilities meta) and confirm the account actually gains admin. TO TRY an unrestricted-upload hit: POST a .php/.phtml and confirm it lands web-reachable + executes. variant_scan also emits hardcoded_secret (CWE-798) in three tiers: a secret field (api_key/db_password/access_token/aws_*) assigned a literal (HIGH), a known secret FORMAT (JWT eyJ…/AWS AKIA…/GitHub ghp_…/Slack xoxb-…/…) regardless of name (HIGH), or a high-entropy suspect token (MEDIUM — verify before reporting). Verify a frontend/JS secret live via drive_devtools (inspect the JS bundle / network response and confirm the key is actually exposed), and for a backend secret confirm it is reachable/valid. A static hit is a HYPOTHESIS until verified live — never report unverified. For a repo, also scan_git_history(root) — secrets DELETED from HEAD still live in .git history (the removed-later-is-not-fixed trap), and it feeds every recovered pre-deletion blob through the same secret detector. Once you recover a credential, prove it is still ACTIVE with validate_leaked_key(apiBase, endpoints, key|blobUrl) — a READ-ONLY differential test (401-without-key vs 200-with-key = auth bypass PROVEN). Two supply-chain detectors: dependency_confusion (a manifest/build file resolving a package from a public registry — pypi.org/npmjs.org --extra-index-url, or a scoped @company/pkg with no private registry) and ml_supply_chain (torch.load without weights_only=True / joblib.load / np.load(allow_pickle=True) / keras load_model on an untrusted model → pickle RCE). Rust is supported end-to-end: the taint engine (blitz_scan / taint_file) maps Rust sinks (std::process::Command, sqlx/diesel, reqwest/hyper, std::fs, serde/bincode) to the classic classes, plus two Rust-specific detectors — rust_unsafe (transmute / assume_init / from_raw_parts / ptr::* — memory-unsafety surface, CWE-119) and rust_format_string (println!/format! with a variable as the format string — CWE-134). The sqlx query! compile-time macro is treated as safe (suppressed). Two more web-class detectors: jwt_alg_confusion (a JWT verifier that dispatches on the token's alg header and accepts BOTH RS256 and HS256, with the HS256 HMAC secret derived from public/shared key material — CWE-347; the attacker sets alg=HS256 and signs with the public key to forge admin tokens) and cache_deception (a reverse proxy caching static-extension URLs with a cache key that omits the session cookie, over a session-authenticated backend — CWE-525; the victim's cached private response is re-fetched anonymously). TO TRY a jwt_alg_confusion hit: fetch the public key (/.well-known/jwks.json), forge an HS256 token signed with that public key, and confirm admin access. TO TRY a cache_deception hit: request an authenticated path with a static extension appended (.css/.js) and re-fetch it anonymously. WEB3: for Solidity/EVM, call web3_audit(code|path) — a deterministic 10-class smart-contract audit (reentrancy, unchecked return, unchecked arithmetic, tx.origin auth, signature replay, unprotected selfdestruct, delegatecall-to-user-input, missing access control, timestamp dependence, spot-price oracle manipulation, unbounded loop) returning ranked findings (class/CWE/severity/line), then foundry_poc(class, contract) to generate an executable Foundry test that PROVES the bug. A web3 hit is a HYPOTHESIS until the Foundry PoC reproduces it.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
|
|
61132
|
+
` + "TWO PATHS:\\n" + "- Source path on disk -> blitz_scan / taint_file / eagle_eye2 (static).\\n" + "- Live URL -> live_recon / active_scan / strike_verify (web-hunting).\\n\\n" + "DEEPEN A FINDING: attack_plan(target, tech, params) to get the prioritized vector plan (decide what to test next with data); list_chains (escalation), chain_links (compose), technique_lookup(cls), payload_lookup, bypass_lookup (blocked). Ground any detector hit empirically with pattern_lookup(id) — it returns the class's CWE, real-world signature, escalation chains, citable references, per-class bypass techniques, and the high-value assets (crown jewels) that class hits, so a raw hit becomes a class-aware finding. Resolve free-form terminology first with synonym_lookup(term) (IDOR/BOLA/SQLi/prompt-injection → canonical id). For an llm_injection hit, its pattern carries a validation discipline — the RUN-TWICE RULE (reproduce token-for-token across two fresh sessions), NON-GUESSABLE ANCHOR (must leak a real key/URL, not a plausible guess), and OOB PROOF (a verifiable callback log) — apply all three before reporting. BEFORE generating a report, run submission_gate(...) and only ship a finding that passes all 7 questions (reproducible, in-scope, real-impact, no-privileged-assumption, verified-live, evidence-redacted, severity-derived); one false = kill it. Calibrate severity with severity_calibrate(type, cvss) to get a P1–P5 tier + VRT-style category. Start each engagement with engagement_scaffold(target, scope) for the folder + scope.md structure, and check data_refresh() to confirm the data layers are consistent. Phase doctrine: read_skill(bs-orchestrate-engagement | bs-web-hunting | bs-source-audit | bs-verify-finding). Campaign plan: read_playbook(target-type). On any failure call retry_guidance(signal) / model_fallback(signal) before giving up. HUNTING DOCTRINE (maximize payout rate): (1) SIBLING RULE — if one endpoint requires auth, check every sibling (/export /delete /share); ~30% of paid IDOR/auth bugs come from siblings. (2) A→B SIGNAL — a confirmed bug signals a class of developer mistake; hunt B and C (20-min box) before reporting. (3) TWO-ACCOUNT IDOR — always test with attacker account A reading victim account B, and state it in the report. (4) PoC ESCALATION — IDOR shows victim data (not 200), XSS shows cookie exfil (not alert), SSRF shows internal response (not DNS), SQLi shows DB content (not error). (5) FOLLOW THE MONEY — billing/credits/refunds/wallet flows. (6) Kill weak findings with kill_list(type) BEFORE the gate — missing headers, self-XSS, open-redirect-alone, SSRF-DNS-only, GraphQL-introspection-alone are always N/A standalone. (7) CI/CD + SAML/SSO are critical attack surfaces (pull_request_target, expression injection, XML signature wrapping, comment injection). Full doctrine: hunting_doctrine().\n" + "KNOWLEDGE BASE (discover, don't guess): skillLookup(topic) / listSkills for the 40 attack-path + hunting skills (ap-*, hp-*, bs-*); list_attack_vectors / attack_vectors(cat) for the 34-category vector taxonomy; taxonomy(kind) for OWASP/CWE/ASVS/API-top-10; read_playbook(type) for the 17 campaign playbooks; list_manuals / read_tool_manual for 317 tool references; list_tools / run_catalog_tool for the 141-tool catalog. Every tool, skill, and data layer is reachable from these. CROSS-TARGET INTELLIGENCE: strike_resolve auto-records confirmed/false_positive verdicts into the empirical ledger; query it with intelligence(action=hit_rates/top_vectors/recall) so a new target on a known tech inherits historical hit-rates (attack_plan already blends them into success_probability). intelligence(action=recall, tech, target) is the per-engagement pattern recall — it returns which patterns historically CONFIRMED on that tech (prioritize them) versus which only ever produced false positives (avoid them), so a new engagement starts from the empirical playbook of past ones. LIVE PENTEST + TARGETING (black-box, WAF-safe): cache_gap(base_url, endpoint) fuzzes path-normalization + static-extension variants for cache deception/poisoning; blind_oracle(base_url, param, value) detects which SINK a param reaches (sql/ssti/xss) via benign arithmetic (id=1+0, test${7*7}) WITHOUT a malicious payload; param_precedence(base_url, param, A, B) maps duplicate-parameter precedence (first/last-wins) for WAF-bypass. OOB (out-of-band) PROOF for BLIND vulns: oob_start() spins an interactsh listener (unique *.oast.* domain, streams DNS/HTTP interactions — the standard for public targets) or a local HTTP listener for local labs; inject the canary, then oob_poll(id) until the hit arrives; oob_stop(id) to clean up. A blind SSRF/XXE/SQLi/command-injection is CONFIRMED only when the canary actually arrives — never from a guess. SOURCE TARGETING: action_surface(code) maps every wp_ajax_* action to its vuln class + DERIVED priority (what to look for WHERE); security_state(sanitizers, sink) gives a wrong-context sanitization verdict; framework_knowledge(framework) returns auth/nonce primitives for 9 frameworks; variant_scan(root, signature) mass-sweeps an install base for ONE bug family; patch_analyze(old, new) REVERSES a security patch into the 0-day, and its mine_signature feeds variant_scan to sweep unpatched copies. All of these are DETECTION HINTS — verify each live (strike_verify / browser_validate) before it enters the report. NEWEST DETECTORS — understand AND try them: variant_scan also emits priv_esc (privilege escalation — a role/capability/user change fed by request input, traced cross-file via reverse call-graph, e.g. set_role($id, sanitize_key($_POST['um-role'])) or update_user_meta(...,'wp_capabilities', $_POST[...])) and flags uploadAllow=>array('all') unrestricted-upload configs as file_upload (the file-manager/connector shape). TO TRY a priv_esc hit: submit the role field with 'administrator' (or send wp_capabilities meta) and confirm the account actually gains admin. TO TRY an unrestricted-upload hit: POST a .php/.phtml and confirm it lands web-reachable + executes. variant_scan also emits hardcoded_secret (CWE-798) in three tiers: a secret field (api_key/db_password/access_token/aws_*) assigned a literal (HIGH), a known secret FORMAT (JWT eyJ…/AWS AKIA…/GitHub ghp_…/Slack xoxb-…/…) regardless of name (HIGH), or a high-entropy suspect token (MEDIUM — verify before reporting). Verify a frontend/JS secret live via drive_devtools (inspect the JS bundle / network response and confirm the key is actually exposed), and for a backend secret confirm it is reachable/valid. A static hit is a HYPOTHESIS until verified live — never report unverified. For a repo, also scan_git_history(root) — secrets DELETED from HEAD still live in .git history (the removed-later-is-not-fixed trap), and it feeds every recovered pre-deletion blob through the same secret detector. Once you recover a credential, prove it is still ACTIVE with validate_leaked_key(apiBase, endpoints, key|blobUrl) — a READ-ONLY differential test (401-without-key vs 200-with-key = auth bypass PROVEN). Two supply-chain detectors: dependency_confusion (a manifest/build file resolving a package from a public registry — pypi.org/npmjs.org --extra-index-url, or a scoped @company/pkg with no private registry) and ml_supply_chain (torch.load without weights_only=True / joblib.load / np.load(allow_pickle=True) / keras load_model on an untrusted model → pickle RCE). Rust is supported end-to-end: the taint engine (blitz_scan / taint_file) maps Rust sinks (std::process::Command, sqlx/diesel, reqwest/hyper, std::fs, serde/bincode) to the classic classes, plus two Rust-specific detectors — rust_unsafe (transmute / assume_init / from_raw_parts / ptr::* — memory-unsafety surface, CWE-119) and rust_format_string (println!/format! with a variable as the format string — CWE-134). The sqlx query! compile-time macro is treated as safe (suppressed). Two more web-class detectors: jwt_alg_confusion (a JWT verifier that dispatches on the token's alg header and accepts BOTH RS256 and HS256, with the HS256 HMAC secret derived from public/shared key material — CWE-347; the attacker sets alg=HS256 and signs with the public key to forge admin tokens) and cache_deception (a reverse proxy caching static-extension URLs with a cache key that omits the session cookie, over a session-authenticated backend — CWE-525; the victim's cached private response is re-fetched anonymously). TO TRY a jwt_alg_confusion hit: fetch the public key (/.well-known/jwks.json), forge an HS256 token signed with that public key, and confirm admin access. TO TRY a cache_deception hit: request an authenticated path with a static extension appended (.css/.js) and re-fetch it anonymously. Three more detectors: cors_misconfiguration (Access-Control-Allow-Origin reflects the request Origin or is '*' while credentials are true — CWE-942; any site reads the victim's authenticated responses), xss (user input into a DOM sink — innerHTML / dangerouslySetInnerHTML / document.write / .html() / eval — CWE-79), and subdomain_takeover (a dangling CNAME/AliasTarget to a claimable service like *.github.io/*.herokuapp.com/*.amazonaws.com — CWE-404). TO TRY a cors hit: send an evil Origin + confirm the response echoes it with Allow-Credentials:true. TO TRY an xss hit: confirm the sink executes (drive_devtools). TO TRY a takeover hit: verify the CNAME target resolves to an unclaimed/not-found page. WEB3: for Solidity/EVM, call web3_audit(code|path) — a deterministic 10-class smart-contract audit (reentrancy, unchecked return, unchecked arithmetic, tx.origin auth, signature replay, unprotected selfdestruct, delegatecall-to-user-input, missing access control, timestamp dependence, spot-price oracle manipulation, unbounded loop) returning ranked findings (class/CWE/severity/line), then foundry_poc(class, contract) to generate an executable Foundry test that PROVES the bug. A web3 hit is a HYPOTHESIS until the Foundry PoC reproduces it.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
|
|
60907
61133
|
` + `- When a lead needs DOM/JS precision — DOM-XSS sink execution, AJAX endpoint + payload interception, JS runtime errors, redirect chains, SSO/token flow, or anything a static HTML glance cannot prove — call drive_devtools(target). It spawns chrome-devtools-mcp and drives a REAL headless browser (navigate -> list_network_requests -> list_console_messages -> evaluate_script), giving reproducible evidence instead of a guess.
|
|
60908
61134
|
` + `- Before calling it, check_mcp() to confirm the browser MCP is available; if not, blitzstrike install-tools or npm i -g chrome-devtools-mcp. Never substitute eyeballing minified JS or a static sink guess when a live browser can PROVE it. This is the precision + consistency layer.
|
|
60909
61135
|
` + "EXTERNAL MCP SERVERS (verified, connect them — NOT one-shot CLIs): chrome-devtools-mcp (29 tools: list_network_requests/get_network_request for raw HTTP interception, list_console_messages for JS errors + DOM-XSS, evaluate_script to run JS, take_screenshot) -> stdio chrome-devtools-mcp --headless --chromeArg=--no-sandbox --chromeArg=--disable-gpu (as root/container this is MANDATORY or the browser crashes; add --proxyServer http://127.0.0.1:8080 to route through Burp, --acceptInsecureCerts for bad TLS). burp-suite-mcp (proxy history + active scan + repeater) -> NOT npm: build the JAR (git clone https://github.com/PortSwigger/mcp-server.git && cd mcp-server && ./gradlew embedProxyJar), load it in Burp Extensions, then connect the client to http://127.0.0.1:9876 (SSE) or the stdio proxy java -jar mcp-proxy-all.jar --sse-url http://127.0.0.1:9876."
|
|
@@ -61885,6 +62111,22 @@ ${statusLine}` : statusLine },
|
|
|
61885
62111
|
}, async ({ class_, contract }) => {
|
|
61886
62112
|
return { content: [{ type: "text", text: foundryPoc(class_, contract ?? "Vulnerable") }] };
|
|
61887
62113
|
});
|
|
62114
|
+
server.registerTool("kill_list", {
|
|
62115
|
+
title: "Always-rejected finding kill-list (pre-gate)",
|
|
62116
|
+
description: "Deterministic always-rejected check: pass a finding type (open_redirect, missing_headers, self_xss, graphql_introspection, ssrf_dns_only, …) to get rejected:true when it is a known weak class that must NOT be submitted standalone (chain it to real impact first). Omit the type to enumerate the full kill-list. Run this BEFORE submission_gate — it takes 30 seconds to kill a bad lead.",
|
|
62117
|
+
inputSchema: {
|
|
62118
|
+
type: string2().optional().describe("Finding type to check (e.g. open_redirect, self_xss, missing_headers); omit to list all")
|
|
62119
|
+
}
|
|
62120
|
+
}, async ({ type }) => {
|
|
62121
|
+
return { content: [{ type: "text", text: JSON.stringify(killList(type)) }] };
|
|
62122
|
+
});
|
|
62123
|
+
server.registerTool("hunting_doctrine", {
|
|
62124
|
+
title: "High-ROI hunting doctrine (sibling rule, A→B, follow-the-money)",
|
|
62125
|
+
description: "Return the hunting doctrine — the high-ROI heuristics the agent applies while selecting targets/endpoints/classes: the Sibling Rule (check every sibling endpoint — ~30% of paid IDOR/auth bugs), A→B Signal Method, impact-first, follow-the-money, less-saturated classes, new==unreviewed, two-account IDOR test, PoC escalation, credential-proof, CI/CD + SAML/SSO attack surface, 20-minute rotation, plus the always-rejected kill-list. Use when deciding WHAT to hunt next.",
|
|
62126
|
+
inputSchema: {}
|
|
62127
|
+
}, async () => {
|
|
62128
|
+
return { content: [{ type: "text", text: JSON.stringify(huntingDoctrine()) }] };
|
|
62129
|
+
});
|
|
61888
62130
|
server.registerTool("param_precedence", {
|
|
61889
62131
|
title: "Duplicate parameter precedence fuzzer (WAF-bypass oracle)",
|
|
61890
62132
|
description: "LIVE (black-box): determine how the app resolves duplicate parameters + alternate delimiters (; , %26 %3b | [] %00 + #). Reveals the WAF-bypass vector — if the WAF validates one value and the app binds another, inject via the disagreement. Deterministic: baseline A/B + differential per variant.",
|
|
@@ -62476,7 +62718,7 @@ ${statusLine}` : statusLine },
|
|
|
62476
62718
|
});
|
|
62477
62719
|
server.registerTool("complex_scan", {
|
|
62478
62720
|
title: "Complex-bug scan (deserialization / type juggling / mass assignment / prototype pollution / CRLF / path confusion / SSRF / XXE / SSTI / wrong-context sanitization / missing authz+nonce)",
|
|
62479
|
-
description: "Complex-bug detection beyond taint: deserialization→POP gadget chain (unserialize + magic method), type juggling (loose ==/!= vs hash/secret), mass assignment (extract/parse_str without a safe flag), prototype pollution (unsafe merge of request data), CRLF/header injection (user input into a header), path confusion (user input into a file path without canonicalization), SSRF (user-controlled URL with no host allowlist), XXE (user XML parsed without disabling entities), SSTI (user input into a template render with no sandbox), wrong-context sanitization (sanitize_text_field() into a SQL query),
|
|
62721
|
+
description: "Complex-bug detection beyond taint: deserialization→POP gadget chain (unserialize + magic method), type juggling (loose ==/!= vs hash/secret), mass assignment (extract/parse_str without a safe flag), prototype pollution (unsafe merge of request data), CRLF/header injection (user input into a header), path confusion (user input into a file path without canonicalization), SSRF (user-controlled URL with no host allowlist), XXE (user XML parsed without disabling entities), SSTI (user input into a template render with no sandbox), wrong-context sanitization (sanitize_text_field() into a SQL query), missing authorization/nonce on WordPress entry points (wp_ajax_* / admin_post_* / register_rest_route without current_user_can, nonce verification, or permission_callback), CORS misconfiguration (reflected/wildcard origin + credentials), XSS (user input into a DOM sink: innerHTML / dangerouslySetInnerHTML / document.write / .html / eval), and subdomain takeover (CNAME/AliasTarget to a claimable service).",
|
|
62480
62722
|
inputSchema: { path: string2().describe("Source file path") }
|
|
62481
62723
|
}, async ({ path }) => {
|
|
62482
62724
|
const code = readFileSync27(path, "utf8");
|
|
@@ -342,6 +342,11 @@
|
|
|
342
342
|
"cwe": "CWE-525",
|
|
343
343
|
"name": "Use of Web Browser Cache Containing Sensitive Information",
|
|
344
344
|
"category": "cryptographic_failure"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"id": "cors_misconfiguration",
|
|
348
|
+
"cwe": "CWE-942",
|
|
349
|
+
"name": "Overly Permissive Cross-domain Whitelist (CORS)"
|
|
345
350
|
}
|
|
346
351
|
]
|
|
347
352
|
}
|
|
@@ -388,7 +388,10 @@
|
|
|
388
388
|
],
|
|
389
389
|
"payout_min": 1000,
|
|
390
390
|
"payout_max": 10000,
|
|
391
|
-
"typical_payout": "$1K–$10K"
|
|
391
|
+
"typical_payout": "$1K–$10K",
|
|
392
|
+
"validation": [
|
|
393
|
+
"Two-account test: attacker account A reads victim account B's object (A's token + B's id -> B's data). A single self-account test does not prove IDOR."
|
|
394
|
+
]
|
|
392
395
|
},
|
|
393
396
|
{
|
|
394
397
|
"id": "missing_nonce",
|
|
@@ -837,6 +840,119 @@
|
|
|
837
840
|
"payout_min": 1000,
|
|
838
841
|
"payout_max": 10000,
|
|
839
842
|
"typical_payout": "$1K–$10K"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"id": "cors_misconfiguration",
|
|
846
|
+
"name": "CORS Misconfiguration",
|
|
847
|
+
"cwe": "CWE-942",
|
|
848
|
+
"severity": "high",
|
|
849
|
+
"signature": "Access-Control-Allow-Origin reflects the request Origin (or is *) while credentials are allowed",
|
|
850
|
+
"chains": [
|
|
851
|
+
"cors_misconfig_data_theft",
|
|
852
|
+
"cors_misconfig_to_session_theft"
|
|
853
|
+
],
|
|
854
|
+
"references": [
|
|
855
|
+
"CWE-942",
|
|
856
|
+
"OWASP WSTG-CLNT-01",
|
|
857
|
+
"PortSwigger — CORS vulnerability with basic origin reflection"
|
|
858
|
+
],
|
|
859
|
+
"real_world": "A server echoes the request Origin header into Access-Control-Allow-Origin while also sending Access-Control-Allow-Credentials: true. Any website the victim visits can then make credentialed requests and read the victim's authenticated responses cross-origin (session theft, account data exfil).",
|
|
860
|
+
"detection_signatures": [
|
|
861
|
+
"Access-Control-Allow-Origin = request Origin (reflected)",
|
|
862
|
+
"Access-Control-Allow-Origin: * + Access-Control-Allow-Credentials: true",
|
|
863
|
+
"allow_origins=[\"*\"] + allow_credentials=True (Flask/Django CORS)"
|
|
864
|
+
],
|
|
865
|
+
"chain_templates": [
|
|
866
|
+
"cors_misconfig_data_theft",
|
|
867
|
+
"cors_misconfig_to_session_theft"
|
|
868
|
+
],
|
|
869
|
+
"bypass_techniques": [
|
|
870
|
+
"null origin (sandboxed iframe) reflected",
|
|
871
|
+
"subdomain of the attacker reflected by a naive suffix/prefix check",
|
|
872
|
+
"Origin with the target as a suffix (evil.com-target.com)"
|
|
873
|
+
],
|
|
874
|
+
"crown_jewels": [
|
|
875
|
+
"authenticated JSON API responses",
|
|
876
|
+
"session/CSRF tokens",
|
|
877
|
+
"account settings + PII"
|
|
878
|
+
],
|
|
879
|
+
"payout_min": 500,
|
|
880
|
+
"payout_max": 5000,
|
|
881
|
+
"typical_payout": "$500–$5K"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"id": "xss",
|
|
885
|
+
"name": "Cross-Site Scripting (XSS)",
|
|
886
|
+
"cwe": "CWE-79",
|
|
887
|
+
"severity": "high",
|
|
888
|
+
"signature": "user-controlled input reaches a DOM/JS sink (innerHTML / dangerouslySetInnerHTML / document.write / .html / eval)",
|
|
889
|
+
"chains": [
|
|
890
|
+
"xss_to_account_takeover"
|
|
891
|
+
],
|
|
892
|
+
"references": [
|
|
893
|
+
"CWE-79",
|
|
894
|
+
"OWASP WSTG-INPV-02",
|
|
895
|
+
"PortSwigger — DOM-based XSS"
|
|
896
|
+
],
|
|
897
|
+
"real_world": "A DOM sink (innerHTML, document.write, dangerouslySetInnerHTML, jQuery .html(), eval) is fed user-controlled input without sanitization/encoding. The injected script runs in the victim's origin, stealing cookies, hijacking the session, or exfiltrating data.",
|
|
898
|
+
"detection_signatures": [
|
|
899
|
+
"dangerouslySetInnerHTML={{__html: <var>}}",
|
|
900
|
+
"element.innerHTML = <var>",
|
|
901
|
+
"document.write(<var>) / .html(<var>) with a request/location source nearby"
|
|
902
|
+
],
|
|
903
|
+
"chain_templates": [
|
|
904
|
+
"xss_to_account_takeover"
|
|
905
|
+
],
|
|
906
|
+
"bypass_techniques": [
|
|
907
|
+
"context-specific encoding (HTML/attribute/JS/URL) mismatches",
|
|
908
|
+
"DOM clobbering (form/iframe name overrides)",
|
|
909
|
+
"CSP bypass via nonce reuse / unsafe-inline gaps"
|
|
910
|
+
],
|
|
911
|
+
"crown_jewels": [
|
|
912
|
+
"session cookies (document.cookie)",
|
|
913
|
+
"admin panel actions via CSRF tokens",
|
|
914
|
+
"victim PII in the DOM"
|
|
915
|
+
],
|
|
916
|
+
"payout_min": 500,
|
|
917
|
+
"payout_max": 5000,
|
|
918
|
+
"typical_payout": "$500–$5K"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"id": "subdomain_takeover",
|
|
922
|
+
"name": "Subdomain Takeover",
|
|
923
|
+
"cwe": "CWE-404",
|
|
924
|
+
"severity": "high",
|
|
925
|
+
"signature": "a DNS CNAME/AliasTarget points at a service that can be claimed by an attacker (GitHub Pages/S3/Heroku/…)",
|
|
926
|
+
"chains": [
|
|
927
|
+
"subdomain_takeover",
|
|
928
|
+
"subdomain_takeover_to_cookie_theft"
|
|
929
|
+
],
|
|
930
|
+
"references": [
|
|
931
|
+
"CWE-404",
|
|
932
|
+
"OWASP WSTG-CONFIG-10",
|
|
933
|
+
"Can I Take Over XYZ (EdOverflow)"
|
|
934
|
+
],
|
|
935
|
+
"real_world": "A dangling DNS record (CNAME/AliasTarget) points to a service the org no longer owns (e.g. a deleted GitHub Pages repo, S3 bucket, or Heroku app). An attacker re-registers that name and serves arbitrary content from the victim's subdomain — phishing, cookie theft via a parent-domain cookie, and same-origin attacks.",
|
|
936
|
+
"detection_signatures": [
|
|
937
|
+
"CNAME/AliasTarget/DNSName -> *.github.io / *.herokuapp.com / *.amazonaws.com / …",
|
|
938
|
+
"aws_route53_record type=CNAME with an unclaimed service target"
|
|
939
|
+
],
|
|
940
|
+
"chain_templates": [
|
|
941
|
+
"subdomain_takeover",
|
|
942
|
+
"subdomain_takeover_to_cookie_theft"
|
|
943
|
+
],
|
|
944
|
+
"bypass_techniques": [
|
|
945
|
+
"check the CNAME resolves to an NXDOMAIN / 'not found' / unclaimed page",
|
|
946
|
+
"verify via the service's provisioning page (GitHub 404 'repo not found')"
|
|
947
|
+
],
|
|
948
|
+
"crown_jewels": [
|
|
949
|
+
"wildcard-scoped parent-domain cookies",
|
|
950
|
+
"subdomains of SSO/portal/main domains",
|
|
951
|
+
"email-deliverability subdomains (SPF/DKIM trust)"
|
|
952
|
+
],
|
|
953
|
+
"payout_min": 500,
|
|
954
|
+
"payout_max": 5000,
|
|
955
|
+
"typical_payout": "$500–$5K"
|
|
840
956
|
}
|
|
841
957
|
]
|
|
842
958
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blitzstrike",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.85",
|
|
4
4
|
"description": "Blitz Strike — a universal MCP security-audit toolbelt. BLITZ sweeps the attack surface, EAGLE-EYE traces source-to-sink, STRIKE verifies live. 57 attack chains, 130-tool catalog, intelligence data layer. One server, every agent.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|