diff options
| author | bohwaz | 2024-03-24 19:04:23 +0100 |
|---|---|---|
| committer | jvoisin | 2024-06-09 17:16:29 +0200 |
| commit | 95afce1fe46c91025b5c53aa05582e09c6534cd0 (patch) | |
| tree | 1434edba252ecf46434c4dfc77747af5253a507f /config/default_php8.rules | |
| parent | b40d5d9e15ae0c60146fc62c27178d1a500f4b11 (diff) | |
Forbid file:// protocol in Curl
Diffstat (limited to '')
| -rw-r--r-- | config/default_php8.rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/default_php8.rules b/config/default_php8.rules index a6edfbe..0490654 100644 --- a/config/default_php8.rules +++ b/config/default_php8.rules | |||
| @@ -114,6 +114,10 @@ sp.disable_function.function("curl_setopt").param("value").value("2").allow(); | |||
| 114 | sp.disable_function.function("curl_setopt").param("option").value("64").drop().alias("Please don't turn CURLOPT_SSL_VERIFYCLIENT off."); | 114 | sp.disable_function.function("curl_setopt").param("option").value("64").drop().alias("Please don't turn CURLOPT_SSL_VERIFYCLIENT off."); |
| 115 | sp.disable_function.function("curl_setopt").param("option").value("81").drop().alias("Please don't turn CURLOPT_SSL_VERIFYHOST off."); | 115 | sp.disable_function.function("curl_setopt").param("option").value("81").drop().alias("Please don't turn CURLOPT_SSL_VERIFYHOST off."); |
| 116 | 116 | ||
| 117 | # Ensure that file:// protocol is not allowed in CURL | ||
| 118 | sp.disable_function.function("curl_setopt").param("value").value_r("file://").drop().alias("file:// protocol is disabled"); | ||
| 119 | sp.disable_function.function("curl_init").param("url").value_r("file://").drop().alias("file:// protocol is disabled"); | ||
| 120 | |||
| 117 | # File upload | 121 | # File upload |
| 118 | sp.disable_function.function("move_uploaded_file").param("to").value_r("\\.ph").drop(); | 122 | sp.disable_function.function("move_uploaded_file").param("to").value_r("\\.ph").drop(); |
| 119 | sp.disable_function.function("move_uploaded_file").param("to").value_r("\\.ht").drop(); | 123 | sp.disable_function.function("move_uploaded_file").param("to").value_r("\\.ht").drop(); |
