blitzstrike 2.4.103 → 2.4.104
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 +15 -0
- package/dist/index.js +62 -2
- package/intelligence/cwe_map.json +10 -0
- package/intelligence/patterns.json +62 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ 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.104] — 2026-09-17
|
|
9
|
+
|
|
10
|
+
### Added — two client-side detectors (postMessage + client-trusted flag)
|
|
11
|
+
|
|
12
|
+
- `postmessage_no_origin_check` (CWE-345, medium): a `window.addEventListener
|
|
13
|
+
("message")` / `onmessage` handler that reads `event.data` but never validates
|
|
14
|
+
`event.origin` — any site can drive the handler. Detector fires only when the
|
|
15
|
+
handler reads `.data` with no `.origin` check anywhere in scope.
|
|
16
|
+
- `client_trusted_flag` (CWE-807/639, high): a privilege/entitlement flag
|
|
17
|
+
(isAdmin / withVip / premium / hidden / …) read from request input and used in
|
|
18
|
+
a security decision — the client asserts its own privilege. Detector requires a
|
|
19
|
+
flag-like key from a request source PLUS a decision context (if/where/role/
|
|
20
|
+
permission). Both grounded (pattern + CWE + severity + synonym + chain) and
|
|
21
|
+
covered by fire-vs-clean regression checks.
|
|
22
|
+
|
|
8
23
|
## [2.4.103] — 2026-09-17
|
|
9
24
|
|
|
10
25
|
### Added — version-precise fingerprint-first (semver narrowing)
|
package/dist/index.js
CHANGED
|
@@ -16323,6 +16323,8 @@ function detectComplexBugs(code, file) {
|
|
|
16323
16323
|
detectCorsMisconfig(code, file, out);
|
|
16324
16324
|
detectXss(code, file, out);
|
|
16325
16325
|
detectSubdomainTakeover(code, file, out);
|
|
16326
|
+
detectPostMessageOrigin(code, file, out);
|
|
16327
|
+
detectClientTrustedFlag(code, file, out);
|
|
16326
16328
|
out.push(...detectWrongSanitizer(code, file));
|
|
16327
16329
|
out.push(...detectMissingAuthz(code, file));
|
|
16328
16330
|
const seen = new Set;
|
|
@@ -16989,6 +16991,54 @@ function detectXss(code, file, out) {
|
|
|
16989
16991
|
});
|
|
16990
16992
|
}
|
|
16991
16993
|
}
|
|
16994
|
+
function detectPostMessageOrigin(code, file, out) {
|
|
16995
|
+
const clean = stripCommentsOnly(code);
|
|
16996
|
+
const ls = lines2(clean);
|
|
16997
|
+
for (let i = 0;i < ls.length; i++) {
|
|
16998
|
+
const line = ls[i];
|
|
16999
|
+
if (!/(?:addEventListener\s*\(\s*["']message["']|\.onmessage\s*=|onmessage\s*[:=])/i.test(line))
|
|
17000
|
+
continue;
|
|
17001
|
+
const scope = ls.slice(i, Math.min(i + 13, ls.length)).join(`
|
|
17002
|
+
`);
|
|
17003
|
+
if (!/\.data\b/.test(scope))
|
|
17004
|
+
continue;
|
|
17005
|
+
if (/\.origin\b/.test(scope))
|
|
17006
|
+
continue;
|
|
17007
|
+
out.push({
|
|
17008
|
+
file,
|
|
17009
|
+
line: i + 1,
|
|
17010
|
+
type: "postmessage_no_origin_check",
|
|
17011
|
+
category: "postMessage handler without origin check",
|
|
17012
|
+
severity: "medium",
|
|
17013
|
+
evidence: line.trim(),
|
|
17014
|
+
detail: "A postMessage listener reads event.data but never validates event.origin — any website can deliver a crafted message to this handler (CWE-345). Validate event.origin against a static allowlist before acting on event.data."
|
|
17015
|
+
});
|
|
17016
|
+
}
|
|
17017
|
+
}
|
|
17018
|
+
function detectClientTrustedFlag(code, file, out) {
|
|
17019
|
+
const clean = stripCommentsOnly(code);
|
|
17020
|
+
const ls = lines2(clean);
|
|
17021
|
+
const flagKey = /\b(?:is_?admin|with_?vip|is_?premium|with_?hidden|is_?pro|is_?paid|is_?verified|is_?moderator|is_?staff|is_?owner|with_?admin|has_?admin|is_?trusted)\b/i;
|
|
17022
|
+
const sourceRead = /(?:\$_GET|\$_POST|\$_REQUEST|req\.(?:query|body|params)|request\.(?:args|form|get|json|values)|queryParams|searchParams)\s*[\[\(\.]/i;
|
|
17023
|
+
for (let i = 0;i < ls.length; i++) {
|
|
17024
|
+
const line = ls[i];
|
|
17025
|
+
if (!sourceRead.test(line) || !flagKey.test(line))
|
|
17026
|
+
continue;
|
|
17027
|
+
const scope = ls.slice(i, Math.min(i + 4, ls.length)).join(`
|
|
17028
|
+
`);
|
|
17029
|
+
if (!/(?:if\s*\(|\?[^;]*:|WHERE|authoriz|permission|access|role|is_?admin|vip|premium)\b/i.test(scope))
|
|
17030
|
+
continue;
|
|
17031
|
+
out.push({
|
|
17032
|
+
file,
|
|
17033
|
+
line: i + 1,
|
|
17034
|
+
type: "client_trusted_flag",
|
|
17035
|
+
category: "Client-trusted flag (security decision from request input)",
|
|
17036
|
+
severity: "high",
|
|
17037
|
+
evidence: line.trim(),
|
|
17038
|
+
detail: "A flag-like value (isAdmin / withVip / premium / hidden / …) is read from request input and drives a security decision. The client must never assert its own privilege — derive the flag from server state (session/DB), not the request (CWE-807 / CWE-639)."
|
|
17039
|
+
});
|
|
17040
|
+
}
|
|
17041
|
+
}
|
|
16992
17042
|
function detectSubdomainTakeover(code, file, out) {
|
|
16993
17043
|
const clean = stripCommentsOnly(code);
|
|
16994
17044
|
const ls = lines2(code);
|
|
@@ -34562,7 +34612,15 @@ var ALIASES = {
|
|
|
34562
34612
|
"host header": "host_header",
|
|
34563
34613
|
"host header injection": "host_header",
|
|
34564
34614
|
"host header poisoning": "host_header",
|
|
34565
|
-
"password reset poisoning": "host_header"
|
|
34615
|
+
"password reset poisoning": "host_header",
|
|
34616
|
+
postmessage: "postmessage_no_origin_check",
|
|
34617
|
+
"post message": "postmessage_no_origin_check",
|
|
34618
|
+
"missing origin check": "postmessage_no_origin_check",
|
|
34619
|
+
"client trusted flag": "client_trusted_flag",
|
|
34620
|
+
"client trusted boolean": "client_trusted_flag",
|
|
34621
|
+
"client controlled flag": "client_trusted_flag",
|
|
34622
|
+
"privilege flag": "client_trusted_flag",
|
|
34623
|
+
"entitlement flag": "client_trusted_flag"
|
|
34566
34624
|
};
|
|
34567
34625
|
function normalize(term) {
|
|
34568
34626
|
return term.trim().toLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
|
|
@@ -59213,6 +59271,8 @@ var VRT_MAP = {
|
|
|
59213
59271
|
command_injection: { vrt: "injection > os_command_injection", priority: "P1", severity: "critical", rationale: "User input reaches a shell (system/exec/popen) → arbitrary command execution, full host takeover." },
|
|
59214
59272
|
nosql_injection: { vrt: "injection > nosql_injection", priority: "P1", severity: "critical", rationale: "NoSQL operator injection reaches a database query → auth bypass or data exfiltration." },
|
|
59215
59273
|
host_header: { vrt: "injection > host_header_injection", priority: "P3", severity: "medium", rationale: "A reflected/trusted Host header can poison password-reset links or enable cache poisoning → account takeover in the right flow." },
|
|
59274
|
+
postmessage_no_origin_check: { vrt: "client_side > postmessage_origin_missing", priority: "P3", severity: "medium", rationale: "A postMessage listener that never checks event.origin lets any site drive the handler (CWE-345)." },
|
|
59275
|
+
client_trusted_flag: { vrt: "broken_access_control > client_trusted_flag", priority: "P1", severity: "high", rationale: "A privilege flag read from request input lets the client assert its own privilege (CWE-807/639)." },
|
|
59216
59276
|
deserialization: { vrt: "injection > insecure_deserialization", priority: "P1", severity: "critical", rationale: "Deserialization escalated via a gadget chain → code execution." },
|
|
59217
59277
|
xxe: { vrt: "injection > xml_external_entity", priority: "P1", severity: "critical", rationale: "XXE reads local files or reaches internal services." },
|
|
59218
59278
|
file_upload: { vrt: "insecure_design > unrestricted_file_upload", priority: "P1", severity: "critical", rationale: "A web-reachable uploaded file of an executable type → code execution." },
|
|
@@ -62044,7 +62104,7 @@ function createServer2() {
|
|
|
62044
62104
|
` + `- 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).
|
|
62045
62105
|
` + `- 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.
|
|
62046
62106
|
|
|
62047
|
-
` + "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. Generate the concrete reproduction recipe with auto_poc(type, base_url, endpoint, param) — it emits the exact marker request + negative control + expected differential + Patchstack-style title, so 'reproducible' is executable, not abstract. 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 — AUTOMATE it with sibling_scan(base_url, endpoint, token_a, token_b), the deterministic live logic-bug prober (sibling enumeration + differential IDOR + auth matrix + mass assignment + rate limit, evidence-first). (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(). WHAT TO HUNT NEXT: watchlist() returns the ranked CWE frequency + high-value CVEs with payout + a saturated flag (prioritize high-freq/high-payout/not-saturated: missing-authz, SQLi, SSRF, deserialization; skip saturated XSS/CSRF/open-redirect unless they chain into takeover). PRECISION GUARD: resolve_check(host) detects when an ISP/country redirects the domain to a blocking/sinkhole page (gambling/adult/streaming niches) — audit the PUBLIC IP, never the sinkhole.\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 13-class smart-contract audit (reentrancy incl. ERC721/ERC1155 callback 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 incl. slot0/latestRoundData, unbounded loop, abi.encodePacked hash collision, missing address(0) validation) returning ranked findings (class/CWE/severity/line), then foundry_poc(class, contract) to generate an executable Foundry test, and foundry_run(contract_code, poc_code|class_) to actually EXECUTE it — a PASSING PoC test is the proof that the exploit reproduces (deterministic: forge's own test verdict). A web3 hit is a HYPOTHESIS until the Foundry PoC reproduces it.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
|
|
62107
|
+
` + "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. Generate the concrete reproduction recipe with auto_poc(type, base_url, endpoint, param) — it emits the exact marker request + negative control + expected differential + Patchstack-style title, so 'reproducible' is executable, not abstract. 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 — AUTOMATE it with sibling_scan(base_url, endpoint, token_a, token_b), the deterministic live logic-bug prober (sibling enumeration + differential IDOR + auth matrix + mass assignment + rate limit, evidence-first). (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(). WHAT TO HUNT NEXT: watchlist() returns the ranked CWE frequency + high-value CVEs with payout + a saturated flag (prioritize high-freq/high-payout/not-saturated: missing-authz, SQLi, SSRF, deserialization; skip saturated XSS/CSRF/open-redirect unless they chain into takeover). PRECISION GUARD: resolve_check(host) detects when an ISP/country redirects the domain to a blocking/sinkhole page (gambling/adult/streaming niches) — audit the PUBLIC IP, never the sinkhole.\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. Two more client-side detectors: postmessage_no_origin_check (a window message listener that reads event.data but never validates event.origin — CWE-345; any site can drive the handler) and client_trusted_flag (a privilege/entitlement flag like isAdmin/withVip/premium read from request input and used in a security decision — CWE-807/639; derive the flag from server state, never the client). TO TRY a postMessage hit: send a crafted message from an attacker origin and confirm the handler acts on it. TO TRY a client-trusted-flag hit: flip the flag param to true and confirm the privilege is actually granted. WEB3: for Solidity/EVM, call web3_audit(code|path) — a deterministic 13-class smart-contract audit (reentrancy incl. ERC721/ERC1155 callback 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 incl. slot0/latestRoundData, unbounded loop, abi.encodePacked hash collision, missing address(0) validation) returning ranked findings (class/CWE/severity/line), then foundry_poc(class, contract) to generate an executable Foundry test, and foundry_run(contract_code, poc_code|class_) to actually EXECUTE it — a PASSING PoC test is the proof that the exploit reproduces (deterministic: forge's own test verdict). A web3 hit is a HYPOTHESIS until the Foundry PoC reproduces it.\n" + `PRECISION ANALYSIS — chrome-devtools MCP is MANDATORY, not optional:
|
|
62048
62108
|
` + `- 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.
|
|
62049
62109
|
` + `- 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.
|
|
62050
62110
|
` + "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."
|
|
@@ -347,6 +347,16 @@
|
|
|
347
347
|
"id": "cors_misconfiguration",
|
|
348
348
|
"cwe": "CWE-942",
|
|
349
349
|
"name": "Overly Permissive Cross-domain Whitelist (CORS)"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "postmessage_no_origin_check",
|
|
353
|
+
"cwe": "CWE-345",
|
|
354
|
+
"name": "Insufficient Verification of Data Authenticity"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"id": "client_trusted_flag",
|
|
358
|
+
"cwe": "CWE-807",
|
|
359
|
+
"name": "Reliance on Untrusted Inputs in a Security Decision"
|
|
350
360
|
}
|
|
351
361
|
]
|
|
352
362
|
}
|
|
@@ -1051,6 +1051,68 @@
|
|
|
1051
1051
|
"payout_min": 500,
|
|
1052
1052
|
"payout_max": 5000,
|
|
1053
1053
|
"typical_payout": "$500\u2013$5K"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"id": "postmessage_no_origin_check",
|
|
1057
|
+
"name": "postMessage handler without origin check",
|
|
1058
|
+
"cwe": "CWE-345",
|
|
1059
|
+
"real_world": "A window message listener reads event.data without validating event.origin. Any website can deliver a crafted message to the handler and drive its privileged action (DOM mutation, token handoff, function call).",
|
|
1060
|
+
"detection_signatures": [
|
|
1061
|
+
"addEventListener('message') / onmessage that reads .data but never checks .origin"
|
|
1062
|
+
],
|
|
1063
|
+
"chain_templates": [
|
|
1064
|
+
"xss_to_account_takeover"
|
|
1065
|
+
],
|
|
1066
|
+
"references": [
|
|
1067
|
+
"CWE-345",
|
|
1068
|
+
"OWASP A07:2021 Identification and Authentication Failures"
|
|
1069
|
+
],
|
|
1070
|
+
"bypass_techniques": [
|
|
1071
|
+
"wildcard '*' postMessage targetOrigin",
|
|
1072
|
+
"missing event.origin comparison",
|
|
1073
|
+
"origin check against the wrong window/source"
|
|
1074
|
+
],
|
|
1075
|
+
"crown_jewels": [
|
|
1076
|
+
"auth tokens handed off via postMessage",
|
|
1077
|
+
"privileged parent-frame APIs",
|
|
1078
|
+
"DOM XSS via postMessage data"
|
|
1079
|
+
],
|
|
1080
|
+
"severity": "medium",
|
|
1081
|
+
"payout_min": 500,
|
|
1082
|
+
"payout_max": 5000,
|
|
1083
|
+
"typical_payout": "$500\u2013$5K"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"id": "client_trusted_flag",
|
|
1087
|
+
"name": "Client-trusted privilege flag",
|
|
1088
|
+
"cwe": "CWE-807",
|
|
1089
|
+
"real_world": "A privilege/entitlement flag (isAdmin/withVip/premium/hidden) is read from request input and used in a security decision. The client asserts its own privilege instead of the server deriving it from session/DB state.",
|
|
1090
|
+
"detection_signatures": [
|
|
1091
|
+
"request-input flag (isAdmin/withVip/premium) driving an if/role/access decision"
|
|
1092
|
+
],
|
|
1093
|
+
"chain_templates": [
|
|
1094
|
+
"mass_assignment_to_admin_takeover"
|
|
1095
|
+
],
|
|
1096
|
+
"references": [
|
|
1097
|
+
"CWE-807",
|
|
1098
|
+
"CWE-639",
|
|
1099
|
+
"OWASP A01:2021 Broken Access Control"
|
|
1100
|
+
],
|
|
1101
|
+
"bypass_techniques": [
|
|
1102
|
+
"withVip/withHidden boolean toggling",
|
|
1103
|
+
"isAdmin role param",
|
|
1104
|
+
"premium entitlement flag",
|
|
1105
|
+
"hidden resource access via a client flag"
|
|
1106
|
+
],
|
|
1107
|
+
"crown_jewels": [
|
|
1108
|
+
"admin role",
|
|
1109
|
+
"paid/premium content",
|
|
1110
|
+
"hidden resources"
|
|
1111
|
+
],
|
|
1112
|
+
"severity": "high",
|
|
1113
|
+
"payout_min": 1000,
|
|
1114
|
+
"payout_max": 15000,
|
|
1115
|
+
"typical_payout": "$1K\u2013$15K"
|
|
1054
1116
|
}
|
|
1055
1117
|
]
|
|
1056
1118
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blitzstrike",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.104",
|
|
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": {
|