Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSquare1 committed Mar 5, 2024
1 parent dfc5336 commit 8a7d602
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/exploits/cve_2024_27198_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ def testCVE202427198_whenSafe_reportNothing(
text="Check that the URL is correct.",
status_code=404,
)
target = definitions.Target("http", "localhost", 8089)

accept = exploit_instance.accept(target)
vulnerabilities = exploit_instance.check(target)
accept = exploit_instance.accept(
definitions.Target("http", "localhost", 80, "/login.html")
)
vulnerabilities = exploit_instance.check(
definitions.Target("http", "localhost", 80, "/lol?jsp=/app/rest/users;.jsp")
)

assert accept is True
assert len(vulnerabilities) == 0

0 comments on commit 8a7d602

Please sign in to comment.