Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snyk reports on child CWEs for PathTraversal and password hashing #90

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

sebsnyk
Copy link
Contributor

@sebsnyk sebsnyk commented Aug 14, 2024

This updates BenchmarkScore to reflect Snyks behavior of reporting the specific child CWE instead of the expected parent CWE for both path traversal and weak hash CWEs.

@davewichers
Copy link
Contributor

Hey - thanks for the contribution, but the proper way to do this is to fix it in SnykReader, not in BenchmarkScore. Please move your fix to SnykReader. SnykReader extends SarifReader, which has a method called mapCwe() which you can override in SnykReader() to implement this mapping.

@davewichers davewichers merged commit 64f72b2 into OWASP-Benchmark:main Aug 15, 2024
1 check passed
davewichers added a commit that referenced this pull request Aug 15, 2024
… (#91)

* Snyk reports on child CWEs for PathTraversal and password hashing

* Move CWE mapping logic into SnykReader itself & add tests

Looks good to me. Thanks for fixing.

Co-authored-by: Sebastian Roth <[email protected]>
@sebsnyk sebsnyk deleted the snyk-cwes branch September 2, 2024 09:43
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.

2 participants