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

generate_rules.php: Don't whitelist files if the function name is actually a method of a class #484

Merged
merged 2 commits into from
Mar 24, 2024

Conversation

bohwaz
Copy link
Contributor

@bohwaz bohwaz commented Mar 23, 2024

If the files are using code like $db->exec('INSERT INTO...'); or MyClass::assert(true === true); these will be marked as whitelisted by the script, but they should not be, as they're not actually running the dangerous functions.

@jvoisin jvoisin merged commit 435977a into jvoisin:master Mar 24, 2024
17 checks passed
@jvoisin
Copy link
Owner

jvoisin commented Mar 24, 2024

Good catch, thanks!

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.

2 participants