blitzstrike 1.0.34 → 1.0.38
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 +83 -0
- package/bench/corpus/java-cmd-vuln.md +8 -0
- package/bench/corpus/java-deser-vuln.md +8 -0
- package/bench/corpus/java-sqli-prep.md +9 -0
- package/bench/corpus/java-sqli-vuln.md +9 -0
- package/bench/corpus/java-ssrf-vuln.md +9 -0
- package/bench/corpus/java-xss-vuln.md +8 -0
- package/bench/corpus/java-xxe-vuln.md +10 -0
- package/bench/corpus/js-cmd-spawn.md +8 -0
- package/bench/corpus/js-cmd-vuln.md +8 -0
- package/bench/corpus/js-eval-vuln.md +8 -0
- package/bench/corpus/js-pathtraversal-vuln.md +8 -0
- package/bench/corpus/js-redirect-vuln.md +8 -0
- package/bench/corpus/js-sqli-param.md +8 -0
- package/bench/corpus/js-ssrf-vuln.md +8 -0
- package/bench/corpus/{js-xss-sanitized.md → js-xss-escape.md} +1 -1
- package/bench/corpus/js-xss-vuln.md +8 -0
- package/bench/corpus/php-cmd-authgated.md +8 -0
- package/bench/corpus/php-cmd-byref.md +11 -0
- package/bench/corpus/php-cmd-escaped.md +9 -0
- package/bench/corpus/php-cmd-escapeshellcmd.md +9 -0
- package/bench/corpus/php-cmd-intval.md +9 -0
- package/bench/corpus/php-cmd-passthru.md +9 -0
- package/bench/corpus/php-cmd-shell-exec.md +9 -0
- package/bench/corpus/php-cmd-transitive.md +10 -0
- package/bench/corpus/{php-command-injection-vuln.md → php-cmd-vuln.md} +1 -1
- package/bench/corpus/php-codeexec-assert.md +9 -0
- package/bench/corpus/php-codeexec-vuln.md +9 -0
- package/bench/corpus/php-fileupload-name.md +9 -0
- package/bench/corpus/php-fileupload-sanitized.md +9 -0
- package/bench/corpus/php-fileupload-vuln.md +9 -0
- package/bench/corpus/php-filewrite-vuln.md +9 -0
- package/bench/corpus/php-include-intval.md +9 -0
- package/bench/corpus/php-include-require.md +9 -0
- package/bench/corpus/php-include-vuln.md +9 -0
- package/bench/corpus/php-include-whitelist.md +10 -0
- package/bench/corpus/php-redirect-safe.md +9 -0
- package/bench/corpus/php-redirect-vuln.md +9 -0
- package/bench/corpus/php-sqli-authgated.md +9 -0
- package/bench/corpus/php-sqli-esc.md +9 -0
- package/bench/corpus/php-sqli-filter.md +9 -0
- package/bench/corpus/php-sqli-getvar.md +9 -0
- package/bench/corpus/php-sqli-interproc.md +10 -0
- package/bench/corpus/php-sqli-whereraw.md +9 -0
- package/bench/corpus/php-ssrf-curl.md +11 -0
- package/bench/corpus/php-ssrf-vuln.md +9 -0
- package/bench/corpus/php-ssrf-wpremote.md +9 -0
- package/bench/corpus/php-unserialize-vuln.md +9 -0
- package/bench/corpus/php-xss-attr.md +9 -0
- package/bench/corpus/php-xss-authgated.md +8 -0
- package/bench/corpus/php-xss-eschtml.md +9 -0
- package/bench/corpus/php-xss-htmlentities.md +9 -0
- package/bench/corpus/php-xss-return.md +9 -0
- package/bench/corpus/php-xss-ternary.md +9 -0
- package/bench/corpus/php-xss-vuln.md +9 -0
- package/bench/corpus/php-xxe-vuln.md +9 -0
- package/bench/corpus/php-zipslip-vuln.md +10 -0
- package/bench/corpus/py-cmd-subprocess.md +9 -0
- package/bench/corpus/{py-command-injection-vuln.md → py-cmd-vuln.md} +3 -3
- package/bench/corpus/py-deser-json.md +9 -0
- package/bench/corpus/py-deser-vuln.md +9 -0
- package/bench/corpus/py-eval-vuln.md +8 -0
- package/bench/corpus/py-pathtraversal-vuln.md +8 -0
- package/bench/corpus/py-sqli-param.md +9 -0
- package/bench/corpus/py-sqli-vuln.md +9 -0
- package/bench/corpus/py-ssrf-vuln.md +9 -0
- package/bench/corpus/py-xss-vuln.md +8 -0
- package/dist/index.js +1124 -86
- package/package.json +1 -1
- package/bench/corpus/java-command-injection-vuln.md +0 -7
- package/bench/corpus/php-file-upload-vuln.md +0 -9
- package/bench/corpus/py-command-injection-sanitized.md +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,89 @@ 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
|
+
## [1.0.38] — 2026-09-13
|
|
9
|
+
|
|
10
|
+
### Fixed (Phase 4 review)
|
|
11
|
+
|
|
12
|
+
- `diff_analyze` ignored the `language` argument for non-PHP code (bare `file`
|
|
13
|
+
without an extension resolved to `unknown`, silently returning 0 findings).
|
|
14
|
+
The engine now derives a probe extension from the declared language.
|
|
15
|
+
- `eagle_eye2` now surfaces `entry_points` (uncalled functions = potential unauth
|
|
16
|
+
entry points) and `unreachable` (dead code) — previously computed but hidden.
|
|
17
|
+
- Removed the unused `call_graph` field from `Eagle2Result.summary` (Map/Set-based,
|
|
18
|
+
not JSON-safe, never consumed).
|
|
19
|
+
- Removed the dead `nextCorrelationId` export from `audit.ts`.
|
|
20
|
+
|
|
21
|
+
## [1.0.37] — 2026-09-13
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- **Phase 4 — Differential security analysis** (`src/differential.ts`):
|
|
26
|
+
- `analyzeDifferential(old, new, language)` — compares two code versions and
|
|
27
|
+
surfaces only security-sensitive changes:
|
|
28
|
+
- **new vulnerability** (source→sink path present only in new code — authoritative, engine-backed)
|
|
29
|
+
- **fixed vulnerability** (path present only in old code)
|
|
30
|
+
- **new sink** / **new source** (line-level hints)
|
|
31
|
+
- **sanitizer removed** / **authorization removed** (high-severity signals)
|
|
32
|
+
- `analyzeDifferentialFiles(old_path, new_path)` — file-based comparison.
|
|
33
|
+
- `analyzeGitDiff(repo, base, head)` — runs across a git commit range.
|
|
34
|
+
- New MCP tool `diff_analyze` (supports file-pair, code-pair, or git-diff mode).
|
|
35
|
+
|
|
36
|
+
## [1.0.36] — 2026-09-13
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- **Phase 3 — Benchmark expansion** (`scripts/generate-corpus.py` + 70-fixture corpus):
|
|
41
|
+
- Corpus grown 10 → **70 fixtures** (49 vulnerable + 21 patched/safe), covering
|
|
42
|
+
11 sink types × 4 languages (PHP/JS/Python/Java) × vulnerable/patched pairs.
|
|
43
|
+
- Benchmark now scores **detection 1.0 / FP 0 / FN 0 / precision 1.0**.
|
|
44
|
+
- Benchmark PHP fixtures now run through **EAGLE-EYE 2.0** (`analyzeDataFlow2`),
|
|
45
|
+
so return/byref/ternary/transitive cases are measured.
|
|
46
|
+
|
|
47
|
+
### Fixed (engine gaps exposed by the expanded corpus)
|
|
48
|
+
|
|
49
|
+
- **PHP**: `include`/`require`/`include_once`/`require_once` and `eval` are
|
|
50
|
+
statement nodes (not calls) — now handled as sinks.
|
|
51
|
+
- **PHP**: `sinkClassOf` now prefixes `$` to property-lookup bases, so
|
|
52
|
+
`$wpdb->get_var`/`$wpdb->get_results` are classified correctly.
|
|
53
|
+
- **PHP**: method chains (`DB::table()->whereRaw()->get()`) — nested sinks are
|
|
54
|
+
now detected by recursing into the chain base.
|
|
55
|
+
- **PHP**: `in_array`/`preg_match`/`ctype_*`/`is_numeric` whitelist guards are
|
|
56
|
+
recognized as input-validation gates (sinks inside them are suppressed).
|
|
57
|
+
- **PHP**: `wp_safe_redirect` is the *safe* redirect (removed from the redirect sink).
|
|
58
|
+
- **Universal adapters**: added SSRF sinks (JS `http.get`/`axios`, Python
|
|
59
|
+
`requests.*`, Java `new URL`/`openConnection`), path-traversal (JS
|
|
60
|
+
`fs.readFile`), and XXE (Java `DocumentBuilder`/`SAXParser`).
|
|
61
|
+
- **Universal adapters**: parameterized SQL (`?` placeholder + params) and
|
|
62
|
+
Python `subprocess` list-form (no shell) are now recognized as safe.
|
|
63
|
+
|
|
64
|
+
## [1.0.35] — 2026-09-13
|
|
65
|
+
|
|
66
|
+
### Added
|
|
67
|
+
|
|
68
|
+
- **Phase 2 — EAGLE-EYE 2.0** (`src/callgraph.ts` + `src/eagle2.ts`):
|
|
69
|
+
- **Call graph** — sound (over-approximate) function/method resolution on a
|
|
70
|
+
PHP AST: name calls, `$this->m()`, static calls, and Class Hierarchy
|
|
71
|
+
Analysis (CHA) for `$obj->m()`.
|
|
72
|
+
- **Whole-program interprocedural taint** — call-graph worklist propagates
|
|
73
|
+
taint transitively across function boundaries (`outer -> inner -> sink`).
|
|
74
|
+
- **Return propagation** — `$x = helper($tainted)` taints `$x` iff the helper
|
|
75
|
+
returns a value derived from its parameter.
|
|
76
|
+
- **By-reference alias tracking** — `&$out` output params that write a source
|
|
77
|
+
taint the caller's variable.
|
|
78
|
+
- **Conditional flow** — ternary (`retif`) + if/else branches are merged
|
|
79
|
+
(sources unioned, sanitizers intersected — sound).
|
|
80
|
+
- **Authorization flow** — sinks guarded by a capability/nonce check are
|
|
81
|
+
flagged `auth_gated` with the *specific* gate name.
|
|
82
|
+
- New MCP tool `eagle_eye2` — prefer over `taint_scan` for accurate
|
|
83
|
+
cross-function reachability.
|
|
84
|
+
|
|
85
|
+
### Fixed
|
|
86
|
+
|
|
87
|
+
- Sink classification false positives: bare function-name sinks (`system(`, `exec(`, …)
|
|
88
|
+
now use `\b` word boundaries, so `outer_exec(...)` is no longer misclassified
|
|
89
|
+
as command execution.
|
|
90
|
+
|
|
8
91
|
## [1.0.33] — 2026-09-13
|
|
9
92
|
|
|
10
93
|
### Added
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
- id: java-xxe-vuln
|
|
2
|
+
- language: java
|
|
3
|
+
- vulnerable: true
|
|
4
|
+
- sink_type: xml_processing
|
|
5
|
+
```java
|
|
6
|
+
InputStream in = request.getInputStream();
|
|
7
|
+
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
|
|
8
|
+
DocumentBuilder db = dbf.newDocumentBuilder();
|
|
9
|
+
db.parse(in);
|
|
10
|
+
```
|