diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index 9c8164a9b9..046c1e4b80 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -1287,6 +1287,20 @@ our @options = ( type => $types{boolean}, category => 'logging', }, + { + name => 'ZM_LOG_INJECT', + default => 'no', + description => 'Allow log injection via API by unprivileged users.', + help => q` + When enabled (default is off), this option will allow users without System:Edit + permissions to inject javascript console or other messages into the ZoneMinder log. + Before 1.36.27 Users were able to abuse this functionality to create a denial of service by + filling up the logs. This feature is useful in debugging and detecting errors + experienced by end users, but requires trust of users and monitoring of resources. + `, + type => $types{boolean}, + category => 'logging', + }, { name => 'ZM_LOG_DEBUG', default => 'no',