blitzstrike 2.4.76 → 2.4.77

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 CHANGED
@@ -5,6 +5,18 @@ 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.77] — 2026-09-17
9
+
10
+ ### Changed — SQLi Node/Python coverage + missing_authz root-path precision
11
+
12
+ - `detectSqlInjection` now matches Node/Python sinks (`pool.query`, `client.query`,
13
+ `connection.query`, `db.query`, `pg.query`, `sequelize.query`, `knex.raw`,
14
+ `sqlx::query(&format!`, `cursor.execute` / `.execute`) and recognizes Node
15
+ template-literal `${var}`, Python f-string `{var}`, and JS `+ var` interpolation
16
+ as string-built queries (cross-file case).
17
+ - `detectRouteAuthz` now skips root/empty paths (`@app.get("/")`) as public-by-design
18
+ (was flagging the index route), plus `home`/`index`/`root` route segments.
19
+
8
20
  ## [2.4.76] — 2026-09-17
9
21
 
10
22
  ### Fixed — config/manifest files were not scanned (whole-class FN)
package/dist/index.js CHANGED
@@ -16098,7 +16098,7 @@ var init_framework_security = __esm(() => {
16098
16098
  { framework: "aspnet", entry: /\[Http(?:Get|Post|Put|Delete|Patch)\b/g, auth: /\[Authorize|User\.Identity|IsInRole|AuthorizeAsync|\[AllowAnonymous|IAuthorizationService/, window: 2 },
16099
16099
  { framework: "rails", entry: /class\s+\w+\s*<\s*ApplicationController/g, auth: /before_action\s+:authenticate|before_action\s+:authorize|authenticate_user!|authorize\s+|current_user|authenticate/, window: 6 }
16100
16100
  ];
16101
- PUBLIC_ROUTE_RE = /['"`]\/?(?:(?:api|v1|v2|o|auth|adminapi)\/)?(?:register|login|logout|signup|signin|forgot-password|reset-password|health|healthz|ready|status|version|ping|static|public|assets|css|js|img|favicon|echo|config|docs|openapi|swagger|robots|sitemap|graphql|graphiql|query|upload|callback|webhook)[/'"?]|['"`]\/?['"`]$/i;
16101
+ PUBLIC_ROUTE_RE = /['"`]\/?(?:(?:api|v1|v2|o|auth|adminapi)\/)?(?:register|login|logout|signup|signin|forgot-password|reset-password|health|healthz|ready|status|version|ping|static|public|assets|css|js|img|favicon|echo|config|docs|openapi|swagger|robots|sitemap|graphql|graphiql|query|upload|callback|webhook|home|index|root)[/'"?]|['"`]\/?['"`](?!["'`])/i;
16102
16102
  });
16103
16103
 
16104
16104
  // src/complex-bugs.ts
@@ -16543,7 +16543,7 @@ function detectUnrestrictedUpload(code, file, out) {
16543
16543
  }
16544
16544
  function detectSqlInjection(code, file, out) {
16545
16545
  const ls = lines2(code);
16546
- const sinkRe = /\$wpdb->(get_results|get_col|get_var|get_row|query)\s*\(|->query\s*\(|->execute\s*\(|mysqli_query\s*\(|pg_query\s*\(|DB::unprepared\s*\(|[->.]whereRaw\s*\(|[->.]selectRaw\s*\(/g;
16546
+ const sinkRe = /\$wpdb->(get_results|get_col|get_var|get_row|query)\s*\(|[->.]query\s*\(|[->.]execute\s*\(|mysqli_query\s*\(|pg_query\s*\(|DB::unprepared\s*\(|[->.]whereRaw\s*\(|[->.]selectRaw\s*\(|sqlx::query(?:_as)?\s*\(\s*&\s*format!|sequelize\.query\s*\(|knex\.raw\s*\(|\bpool\.query\s*\(|\bclient\.query\s*\(|\bconnection\.query\s*\(|\bdb\.query\s*\(|\bpg\.query\s*\(/g;
16547
16547
  let m;
16548
16548
  while ((m = sinkRe.exec(code)) !== null) {
16549
16549
  const ln = lineNo2(code, m.index);
@@ -16554,8 +16554,8 @@ function detectSqlInjection(code, file, out) {
16554
16554
  continue;
16555
16555
  if (SOURCE_TOKENS3.test(scope))
16556
16556
  continue;
16557
- const inlineConcat = /(\.\s*\$[A-Za-z_]\w*|\+\s*[A-Za-z_$]\w*)/.test(l);
16558
- const assignConcat = /(?:^|\n)\s*\$[A-Za-z_]\w*\s*(?:\.=|=)\s*[^;\n]*["'][^"']*["']\s*\.\s*\$[A-Za-z_]\w*/.test(scope);
16557
+ const inlineConcat = /(\.\s*\$[A-Za-z_]\w*|\+\s*[A-Za-z_$]\w*|\$\{[^}]+\}|<<\s*[A-Za-z_$]|\{[A-Za-z_]\w*\})/.test(l);
16558
+ const assignConcat = /(?:^|\n)\s*\$[A-Za-z_]\w*\s*(?:\.=|=)\s*[^;\n]*["'][^"']*["']\s*\.\s*\$[A-Za-z_]\w*/.test(scope) || /(?:^|\n)\s*(?:const|let|var)\s+[A-Za-z_$]\w*\s*=\s*`[^`]*\$\{[^}]+\}[^`]*`/.test(scope) || /(?:^|\n)\s*[A-Za-z_]\w*\s*=\s*f["']/.test(scope);
16559
16559
  if (!inlineConcat && !assignConcat)
16560
16560
  continue;
16561
16561
  out.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blitzstrike",
3
- "version": "2.4.76",
3
+ "version": "2.4.77",
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": {