Skip to content

Commit

Permalink
Add ZM_LOG_INJECT config parameter to disable unprivileged log inject…
Browse files Browse the repository at this point in the history
…ion through api.
  • Loading branch information
Isaac Connor committed Oct 6, 2022
1 parent de2866f commit 73d9f24
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in
Expand Up @@ -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',
Expand Down

0 comments on commit 73d9f24

Please sign in to comment.