Skip to content

security: fix NodeGoat vulnerabilities and add STRIDE report - #2

Merged
dorboz merged 9 commits into
masterfrom
work/ghaith
Nov 3, 2026
Merged

dorboz merged 9 commits into
masterfrom
work/ghaith

Conversation

@dorboz

@dorboz dorboz commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

This pull request integrates Ghaith's security improvements into OWASP NodeGoat.

Security fixes

Prevent server-side JavaScript injection in Contributions by removing eval().

Prevent NoSQL injection in Allocations by replacing $where with a validated MongoDB query.

Restrict /benefits GET and POST routes to administrators using isAdmin.

Isolate user memos by filtering MongoDB queries using the authenticated userId.

Testing

Contributions security validation tests passed.

Allocations security validation tests passed.

Manual BEFORE / AFTER tests performed.

Cypress E2E authorization test updated.

GitHub Actions: Lint, Semgrep, E2E, Gitleaks, Trivy and Syft SBOM completed successfully.

Documentation

STRIDE threat analysis.

Pentest BEFORE / AFTER report.

Security evidence and screenshots.

10-page PDF security report.
Review

Please review the security changes and check for integration conflicts before merging into master.

@dorboz
dorboz merged commit 8dd99cb into master Nov 3, 2026
16 checks passed
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