Skip to content

Commit

Permalink
added dangerous extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
bef committed Jan 7, 2022
1 parent db2c556 commit b499678
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/detect_dangerous_extensions.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## This example rules file shows how to detect and disable certain potentially
## dangerous or unwanted extensions.

@condition extension_loaded("runkit7");
@error "The runkit7 extension can be used to rename classes and functions, thereby circumventing any filters set by Snuffleupagus. Please disable runkit7.";

@condition extension_loaded("FFI");
@warning "FFI extension is loaded. Disabling via 'ffi.enable=false'";
sp.ini_protection.enable();
sp.ini.key("ffi.enable").set("false").ro();
@end_condition;

0 comments on commit b499678

Please sign in to comment.