Skip to content

refactor AppScanReader to use provided CWE #93

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

Merged

Conversation

darkspirit510
Copy link
Contributor

@darkspirit510 darkspirit510 commented Aug 18, 2024

This PR refactors the AppScanReader to simply use CWE number from result file instead of hardcoded matching. I also removed all Code for old version because at least v9 (which, according to comment, counts as "old version") already has all the required fields. In other words, the refactored class reads both v9 and v10 without problems.

After talking to @davewichers, I removed a small "hack" in the old reader which changed the CWE based on the path. This does not affect overall score since it only changes a few (2?) results.

@darkspirit510 darkspirit510 deleted the refactor-appscan-reader branch August 21, 2024 07:45
@darkspirit510 darkspirit510 restored the refactor-appscan-reader branch August 21, 2024 07:45
@darkspirit510 darkspirit510 reopened this Aug 21, 2024
@davewichers davewichers merged commit 381ef89 into OWASP-Benchmark:main Aug 26, 2024
2 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.

2 participants