Skip to content

test: add 15 TypeScript security scanner fixtures - #212

Open
WNZhao wants to merge 1 commit into
profullstack:masterfrom
WNZhao:test/typescript-security-fixtures
Open

test: add 15 TypeScript security scanner fixtures#212
WNZhao wants to merge 1 commit into
profullstack:masterfrom
WNZhao:test/typescript-security-fixtures

Conversation

@WNZhao

@WNZhao WNZhao commented Aug 24, 2026

Copy link
Copy Markdown

Summary

  • add 15 inert TypeScript security-scanner fixtures under vulns/typescript/
  • cover code/command/SQL injection, DOM XSS, traversal, credentials, randomness, SSRF, prototype pollution, regex DoS, redirects, log injection, partial comparison, unsafe deserialization, and archive traversal
  • refresh generated vulnerability catalogs

Validation

  • every .ts module parses and loads with Node 24 native type stripping; all payloads remain unreachable
  • all 15 files contain both VULNERABLE: and SAFE: markers
  • bash scripts/validate-test-case.sh (all 6 groups passed)
  • git diff --check

All examples remain unreachable behind NEVER_RUN = false.

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