Skip to content

Clear the Checkmarx critical and high findings from the 11/09 scan - #36

Merged
TungYenTsai merged 1 commit into
mainfrom
fix/checkmarx-critical-high-20261109
Nov 9, 2026
Merged

TungYenTsai merged 1 commit into
mainfrom
fix/checkmarx-critical-high-20261109

Conversation

@TungYenTsai

Copy link
Copy Markdown
Collaborator

Summary

The Checkmarx scan of main (123cfb2) on 2026-11-09 reported one critical and one high finding. Release requires both levels to be 0.

Severity Query Location Fix
Critical Stored XSS tests/e2e/lib/Cdp.php:36 The CDP handshake failure message no longer includes the raw response
High Client DOM XSS from AJAX frontend/AdminLTE3_ComVer/js/main.js:97 Removed changeBlock(), which wrote an AJAX response into the DOM. Nothing calls it; UrlModal uses its own changeBlockUrlModal()

The high finding was first reported now because this scan included frontend/ (243,700 LOC / 1,119 files vs 108,205 / 485 on 10/22). main.js itself is unchanged since the initial release.

Verification

  • Checkmarx full rescan of this commit (853f786): critical 0, high 0. Remaining medium findings match the previous scan.
  • Browser E2E on dev6: 179/179 passed, 0 CSP violations. This covers the admin pages that load main.js.
  • Unit tests: 850 passed before a 15-minute timeout stopped the run (the test database was slow). This change touches no PHP application code.
  • gitleaks: no leaks.

No screen behavior changes.

🤖 Generated with Claude Code

The scan of main (123cfb2) reported one critical Stored XSS and one high
Client DOM XSS from AJAX:

- tests/e2e/lib/Cdp.php put the raw CDP handshake response into an
  exception message. It now reports a fixed message instead.
- frontend/AdminLTE3_ComVer/js/main.js defined changeBlock(), which wrote
  an AJAX response straight into the DOM. Nothing calls it (UrlModal uses
  its own changeBlockUrlModal), so it is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TungYenTsai
TungYenTsai merged commit c8abc72 into main Nov 9, 2026
2 checks passed
@TungYenTsai
TungYenTsai deleted the fix/checkmarx-critical-high-20261109 branch November 9, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant