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

Add new bad words #67

Open
Zodiac1978 opened this issue Jul 4, 2020 · 3 comments
Open

Add new bad words #67

Zodiac1978 opened this issue Jul 4, 2020 · 3 comments

Comments

@Zodiac1978
Copy link
Member

Zodiac1978 commented Jul 4, 2020

We could add some more words to the Regex check:
https://github.com/pluginkollektiv/antivirus/blob/master/inc/class-antivirus-checkinternals.php#L154

Like functions for adding new administrators (as seen in a recent hack I cleaned up):

wp_create_user
set_role
username_exists
email_exists
add_cap
WP_User

Maybe more concrete, like set_role( 'administrator' )

@Zodiac1978
Copy link
Member Author

Another one could be preventing to show errors:
error_reporting(0);

@Zodiac1978
Copy link
Member Author

After reading the blog post, we could add visitorTracker_isMob to the list of bad words.

From #14

@Zodiac1978
Copy link
Member Author

According to OWASP there are more filesystem function we could check for:
bzopen and gzopen and chgrp, chownand chmod

And some information disclosure functions like phpinfo, getenv, getmygid/pid/uid.

And for obfuscation functions like:
str_rot13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant