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

engine: improving rule and adding tests for java 1, 3, 4 #710

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

nathanmartinszup
Copy link
Contributor

Signed-off-by: Nathan Martins nathan.martins@zup.com.br

- What I did
HS-JAVA-1, HS-JAVA-3 and HS-JAVA-4 were taking both secure and vulnerable code, added new regex to avoid false positives. Also added vulnerable, safe samples and tests.

Samples:

HS-JAVA-1: https://find-sec-bugs.github.io/bugs.htm#XXE_XMLREADER
HS-JAVA-3: https://find-sec-bugs.github.io/bugs.htm#XXE_DOCUMENT
HS-JAVA-4: https://find-sec-bugs.github.io/bugs.htm#XXE_SAXPARSER

- How to verify it

- Description for the changelog

Signed-off-by: Nathan Martins <nathan.martins@zup.com.br>
@matheusalcantarazup matheusalcantarazup merged commit 9c7148f into main Oct 25, 2021
@matheusalcantarazup matheusalcantarazup deleted the feature/java-engine-tests branch October 25, 2021 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement This issue is not a Bug nor a Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: create unit tests for rules of horusec-engine
3 participants