Skip to content

Commit

Permalink
Lockdown of the logging directives
Browse files Browse the repository at this point in the history
This is done to prevent an attacker who obtained
arbitrary code execution to mess with the logging
configuration.
  • Loading branch information
jvoisin committed Jun 7, 2020
1 parent c709d4f commit e9ca6c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/default.rules
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,8 @@ sp.disable_function.function("curl_setopt").param("option").value("81").drop().a
#File upload
sp.disable_function.function("move_uploaded_file").param("destination").value_r("\\.ph").drop();
sp.disable_function.function("move_uploaded_file").param("destination").value_r("\\.ht").drop();

# Logging lockdown
sp.disable_function.function("ini_set").param("varname").value_r("error_log").drop()
sp.disable_function.function("ini_set").param("varname").value_r("error_reporting").drop()
sp.disable_function.function("ini_set").param("varname").value_r("display_errors").drop()

0 comments on commit e9ca6c3

Please sign in to comment.