test-cases: add CWE-942 (go) - #86
Open
CSTRSK wants to merge 67 commits into
Open
Conversation
…(Ruby path traversal) Three new scanner test cases in languages/categories with zero coverage: - javascript/command-injection-shelljs.js (CWE-77, cmd injection via string concat vs execFile argv) - java/hidden-backdoor-endpoint.java (CWE-912, magic-token backdoor on health route) - ruby/relative-path-traversal.rb (CWE-23, ../ escape vs expand_path containment) All follow the five safety rules (if (false)/NEVER_RUN guards, .invalid/.example hosts, no side effects). Catalog regenerated: 65 test cases, 49 CWEs.
Four new scanner test cases in previously uncovered categories: - javascript/bruteforce-no-rate-limit.js (CWE-307, no lockout vs fail-counter) - python/missing-object-level-authz.py (CWE-285, IDOR fetch vs owner-scoped query) - go/stack-trace-exposed.go (CWE-200, debug.Stack to client vs server-side log) - java/unbounded-request-collection.java (CWE-400, readAllBytes vs size-capped) All follow the five safety rules (if (false)/NEVER_RUN/ignore-tag guards, no network, no side effects). Catalog regenerated: 69 test cases, 53 CWEs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New scanner test case for CWE-942 in go. Catalog regenerated.