Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(security): apply existing ZAP informational policy explicitly

Rahman4b389548f4a9
diff --git a/.github/workflows/dast.yml b/.github/workflows/dast.yml
index a3f356c3..9d157ca7 100644
--- a/.github/workflows/dast.yml
+++ b/.github/workflows/dast.yml
@@ -39,7 +39,9 @@ jobs:
target: ${{ vars.MSO_DAST_URL }}
docker_name: ghcr.io/zaproxy/zaproxy@sha256:781a2bdaea47324e7bab583e2263f21d257b0aee61ed51521a5be45f5f5081ef
rules_file_name: security/zap-baseline.conf
- cmd_options: -m 2
+ # The pinned action forwards rules_file_name only for IGNORE entries.
+ # Pass the existing INFO-only policy to ZAP explicitly; do not ignore warnings.
+ cmd_options: -m 2 -c security/zap-baseline.conf
fail_action: true
allow_issue_writing: false
artifact_name: zap-baseline-report
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 12565c78..257b5d8a 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -12,6 +12,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `security` apply existing ZAP informational policy explicitly
- `security` require executed passive scan evidence
- `browser` retain private viewer connectivity without server access
- `release` align Node support and read-only browser reconnects
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index 371e20b4..9cc67c35 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -8,6 +8,10 @@ pins, passive scope, rule classifications and alert failures remain unchanged.
Tests exercise the CLI refusal and workflow wiring. Security assurance guidance now
separates successful code/dependency/secret checks from historical alert dismissals
and passive-scan execution; no dismissal or badge attestation is performed.
+The first executed hosted scan exposed a second wiring error: the pinned ZAP action
+only forwarded its policy input when it found IGNORE entries. Pass the existing
+INFO-only file explicitly with `-c`; preserve all five informational findings, new
+warning failures and the original policy bytes rather than inventing new exceptions.
## 2026-09-18 — Keep private viewer routing client-verifiable
diff --git a/docs/SECURITY-ASSURANCE.md b/docs/SECURITY-ASSURANCE.md
index c705057b..8512bbec 100644
--- a/docs/SECURITY-ASSURANCE.md
+++ b/docs/SECURITY-ASSURANCE.md
@@ -45,6 +45,11 @@ skipping the scanner. An accepted target alone is not a pass: inspect the comple
ZAP step, its findings and the report artifact. The existing rule classifications and
warning/failure behavior remain unchanged. Baseline coverage is unauthenticated and
passive, not an authenticated penetration test or proof about every host service.
+The pinned action's helper forwards `rules_file_name` only when it recognizes an
+`IGNORE` entry. Because the reviewed policy uses `INFO`, `cmd_options` also passes
+that same committed file with `-c`. This applies the already-reviewed classifications;
+it does not add an ignore or disable failures for new warnings. Reports retain all
+five informational signals.
## GitHub security controls
diff --git a/scripts/dast-target.test.ts b/scripts/dast-target.test.ts
index c8ae7ab3..780d3701 100644
--- a/scripts/dast-target.test.ts
+++ b/scripts/dast-target.test.ts
@@ -29,6 +29,10 @@ describe("passive DAST requires an explicit safe target", () => {
expect(workflow).toContain("fail_action: true");
expect(workflow).toContain("allow_issue_writing: false");
expect(workflow).toContain("rules_file_name: security/zap-baseline.conf");
+ expect(workflow).toContain("cmd_options: -m 2 -c security/zap-baseline.conf");
+ const rules = readFileSync("security/zap-baseline.conf", "utf8").split("\n").filter(line => line && !line.startsWith("#"));
+ expect(rules.map(line => line.split("\t")[0])).toEqual(["10015", "10049", "10055", "10096", "90004"]);
+ expect(rules.every(line => line.split("\t")[1] === "INFO")).toBe(true);
expect(workflow).not.toContain("-I");
});
});