diff options
| author | jvoisin | 2020-04-25 15:29:00 +0200 |
|---|---|---|
| committer | jvoisin | 2020-04-25 15:29:00 +0200 |
| commit | 7f5f00eaa6be38e4fe39e3eb6424c2be7fd40907 (patch) | |
| tree | 8bae4ec7ce341d725bd8f931f085e4e3ab603f19 /config/default.rules | |
| parent | bbdf470f4e2d87d90c9ea11f4ce572e4416ffeab (diff) | |
Fix and improve the previous commit
Diffstat (limited to '')
| -rw-r--r-- | config/default.rules | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/default.rules b/config/default.rules index 9dfa68e..040a54b 100644 --- a/config/default.rules +++ b/config/default.rules | |||
| @@ -46,7 +46,8 @@ sp.disable_function.function("putenv").param("setting").value_r("LD_").drop() | |||
| 46 | sp.disable_function.function("putenv").param("setting").value_r("GCONV_").drop() | 46 | sp.disable_function.function("putenv").param("setting").value_r("GCONV_").drop() |
| 47 | 47 | ||
| 48 | # Since people are stupid enough to use `extract` on things like $_GET or $_POST, we might as well mitigate this vector | 48 | # Since people are stupid enough to use `extract` on things like $_GET or $_POST, we might as well mitigate this vector |
| 49 | sp.disable_function.function("extract").param("array").value_r("^_").drop() | 49 | sp.disable_function.function("extract").param("var_array").value_r("^_").drop() |
| 50 | sp.disable_function.function("extract").param("extract_type").value("0").drop() | ||
| 50 | 51 | ||
| 51 | # This is also burned: | 52 | # This is also burned: |
| 52 | # ini_set('open_basedir','..');chdir('..');…;chdir('..');ini_set('open_basedir','/');echo(file_get_contents('/etc/passwd')); | 53 | # ini_set('open_basedir','..');chdir('..');…;chdir('..');ini_set('open_basedir','/');echo(file_get_contents('/etc/passwd')); |
