summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/default.rules8
-rw-r--r--src/snuffleupagus.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/config/default.rules b/config/default.rules
index 0fa4878..818e73d 100644
--- a/config/default.rules
+++ b/config/default.rules
@@ -73,6 +73,14 @@ sp.cookie.name("PHPSESSID").samesite("lax");
73 sp.disable_function.function("putenv").param("assignment").value_r("GCONV_").drop() 73 sp.disable_function.function("putenv").param("assignment").value_r("GCONV_").drop()
74@end_condition; 74@end_condition;
75 75
76# https://github.com/php/php-src/issues/22035
77# CURLOPT_SSLENGINE = 10089
78@condition PHP_VERSION_ID < 80000;
79 sp.disable_function.function("curl_setopt").param("option").value("10089").drop()
80@condition PHP_VERSION_ID >= 80000;
81 sp.disable_function.function("curl_setopt").param("option").value("10089").drop()
82@end_condition;
83
76# Since people are stupid enough to use `extract` on things like $_GET or $_POST, we might as well mitigate this vector 84# Since people are stupid enough to use `extract` on things like $_GET or $_POST, we might as well mitigate this vector
77@condition PHP_VERSION_ID < 80000; 85@condition PHP_VERSION_ID < 80000;
78sp.disable_function.function("extract").pos("0").value_r("^_").drop() 86sp.disable_function.function("extract").pos("0").value_r("^_").drop()
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c
index ca7e6d4..6b0a327 100644
--- a/src/snuffleupagus.c
+++ b/src/snuffleupagus.c
@@ -279,7 +279,7 @@ PHP_MINFO_FUNCTION(snuffleupagus) {
279 php_info_print_table_start(); 279 php_info_print_table_start();
280 php_info_print_table_row( 280 php_info_print_table_row(
281 2, "snuffleupagus support", 281 2, "snuffleupagus support",
282 SPG(is_config_valid) ? "enabled" : "disabled"); 282 SPG(is_config_valid) == SP_CONFIG_VALID ? "enabled" : "disabled");
283 php_info_print_table_row(2, "Version", PHP_SNUFFLEUPAGUS_VERSION); 283 php_info_print_table_row(2, "Version", PHP_SNUFFLEUPAGUS_VERSION);
284 php_info_print_table_row(2, "Valid config", valid_config); 284 php_info_print_table_row(2, "Valid config", valid_config);
285 php_info_print_table_end(); 285 php_info_print_table_end();