Skip to content

Commit

Permalink
Less false positives for var_dump (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Nov 9, 2023
1 parent 89171c9 commit f3b86c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions artemis/reporting/modules/bruter/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ def is_password_file(found_url: FoundURL) -> bool:


def is_php_var_dump(found_url: FoundURL) -> bool:
if "/INSTALL" in found_url.url:
# Some installation documentation files have fragments that have been mistaken
# for var_dumps - let's skip them.
return False

if " => " in found_url.content_prefix and (
"array (" in found_url.content_prefix
or "array(" in found_url.content_prefix
Expand Down

0 comments on commit f3b86c5

Please sign in to comment.