Skip to content

Fix non_printable exploit rule #117

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juchi
Copy link

@juchi juchi commented Apr 4, 2025

The detection pattern here seems to be incorrect, as every non printable character is excluded from the match, therefore including any printable char to the match.
This leads to a huge amount of false positives, like any function declaration public function myFunc().

I also added the "u" flag in the regex, as PHP comments including non english characters (like french "é") would also raise a false positive.

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.

1 participant