blitzstrike 1.0.27 → 1.0.28

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.
@@ -0,0 +1,7 @@
1
+ - id: java-command-injection-vuln
2
+ - language: java
3
+ - vulnerable: true
4
+ - sink_type: command_execution
5
+ ```java
6
+ class A { void f() { String cmd = request.getParameter("cmd"); Runtime.getRuntime().exec(cmd); } }
7
+ ```
@@ -0,0 +1,8 @@
1
+ - id: js-sqli-vuln
2
+ - language: javascript
3
+ - vulnerable: true
4
+ - sink_type: sql_execution
5
+ ```javascript
6
+ const id = req.query.id;
7
+ db.query("SELECT * FROM t WHERE id=" + id);
8
+ ```
@@ -0,0 +1,8 @@
1
+ - id: js-xss-sanitized
2
+ - language: javascript
3
+ - vulnerable: false
4
+ - sink_type: html_render
5
+ ```javascript
6
+ const x = req.query.x;
7
+ res.send(escapeHtml(x));
8
+ ```
@@ -0,0 +1,9 @@
1
+ - id: php-command-injection-vuln
2
+ - language: php
3
+ - vulnerable: true
4
+ - sink_type: command_execution
5
+ ```php
6
+ <?php
7
+ $cmd = $_GET["cmd"];
8
+ system($cmd);
9
+ ```
@@ -0,0 +1,9 @@
1
+ - id: php-file-upload-vuln
2
+ - language: php
3
+ - vulnerable: true
4
+ - sink_type: file_operations
5
+ ```php
6
+ <?php
7
+ $file = $_FILES["upload"];
8
+ move_uploaded_file($file["tmp_name"], "/uploads/" . $file["name"]);
9
+ ```
@@ -0,0 +1,9 @@
1
+ - id: php-sqli-prepared
2
+ - language: php
3
+ - vulnerable: false
4
+ - sink_type: sql_execution
5
+ ```php
6
+ <?php
7
+ $id = $_GET["id"];
8
+ $wpdb->query($wpdb->prepare("SELECT * FROM t WHERE id=%d", $id));
9
+ ```
@@ -0,0 +1,9 @@
1
+ - id: php-sqli-vuln
2
+ - language: php
3
+ - vulnerable: true
4
+ - sink_type: sql_execution
5
+ ```php
6
+ <?php
7
+ $id = $_GET["id"];
8
+ $wpdb->query("SELECT * FROM t WHERE id=$id");
9
+ ```
@@ -0,0 +1,9 @@
1
+ - id: php-xss-sanitized
2
+ - language: php
3
+ - vulnerable: false
4
+ - sink_type: html_render
5
+ ```php
6
+ <?php
7
+ $name = $_GET["name"];
8
+ echo htmlspecialchars($name);
9
+ ```
@@ -0,0 +1,9 @@
1
+ - id: py-command-injection-sanitized
2
+ - language: python
3
+ - vulnerable: false
4
+ - sink_type: command_execution
5
+ ```python
6
+ import os, shlex
7
+ x = request.args.get("cmd")
8
+ os.system(shlex.quote(x))
9
+ ```
@@ -0,0 +1,9 @@
1
+ - id: py-command-injection-vuln
2
+ - language: python
3
+ - vulnerable: true
4
+ - sink_type: command_execution
5
+ ```python
6
+ import os
7
+ x = request.args.get("cmd")
8
+ os.system(x)
9
+ ```
package/dist/index.js CHANGED
@@ -50593,6 +50593,7 @@ function reportJson(findings, opts = {}) {
50593
50593
  import { readFileSync as readFileSync9, readdirSync as readdirSync4, writeFileSync as writeFileSync2, rmSync } from "node:fs";
50594
50594
  import { join as join7 } from "node:path";
50595
50595
  import { fileURLToPath as fileURLToPath5 } from "node:url";
50596
+ import { tmpdir } from "node:os";
50596
50597
  var ROOT4 = join7(fileURLToPath5(new URL(".", import.meta.url)), "..");
50597
50598
  var CORPUS = join7(ROOT4, "bench", "corpus");
50598
50599
  function parseCorpusFile(path) {
@@ -50660,7 +50661,7 @@ function loadCorpus() {
50660
50661
  function detect(entry) {
50661
50662
  const lang = entry.language;
50662
50663
  if (lang === "php") {
50663
- const tmp = join7(ROOT4, "bench", ".tmp.php");
50664
+ const tmp = join7(tmpdir(), `blitzstrike-bench-${entry.id}-${process.pid}.php`);
50664
50665
  writeFileSync2(tmp, entry.code);
50665
50666
  const r = analyzeTaint(tmp);
50666
50667
  rmSync(tmp, { force: true });
package/package.json CHANGED
@@ -1,27 +1,28 @@
1
1
  {
2
2
  "name": "blitzstrike",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
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": {
7
7
  "blitzstrike": "dist/index.js"
8
8
  },
9
9
  "files": [
10
- "dist",
11
- "chains.json",
12
- "tools-catalog.json",
13
- "intelligence",
14
- "skills",
15
- "manuals",
16
- "opencode-agents",
17
- "LICENSE",
18
- "README.md",
19
10
  "CHANGELOG.md",
20
11
  "CONTRIBUTING.md",
21
- "SECURITY.md",
12
+ "LICENSE",
13
+ "README.md",
22
14
  "ROADMAP.md",
15
+ "SECURITY.md",
23
16
  "THIRD-PARTY-NOTICES.md",
24
- "docs"
17
+ "bench",
18
+ "chains.json",
19
+ "dist",
20
+ "docs",
21
+ "intelligence",
22
+ "manuals",
23
+ "opencode-agents",
24
+ "skills",
25
+ "tools-catalog.json"
25
26
  ],
26
27
  "scripts": {
27
28
  "build": "bun build src/index.ts --outdir dist --target node --format esm",