zoneminder/web/api/app
Isaac Connor ffe6362dc3 fix: harden web interface against injection and SSRF vulnerabilities
FilterTerm.php:
- Replace eval() with safe compare() method for SystemLoad, DiskPercent,
  and DiskBlocks filter conditions (RCE via crafted op/val)
- Validate operator against allowlist in constructor
- Sanitize collate field to alphanumeric/underscore only (SQLi)

onvifprobe.php:
- Use escapeshellarg() on interface, device_ep, soapversion, username,
  and password arguments passed to execONVIF() (command injection)

Event.php:
- Use escapeshellarg() on all arguments to zmvideo.pl instead of
  escapeshellcmd() on the whole command (command injection via format)
- Anchor scale regex with ^ and $ to prevent partial matches

image.php:
- Restrict proxy URL scheme to http/https only (SSRF via file:// etc)

filterdebug.php:
- Use already-sanitized $fid instead of raw $_REQUEST['fid'] (XSS)

MonitorsController.php:
- Use escapeshellarg() on token, username, password, and monitor id
  in zmu shell command instead of escapeshellcmd() on whole command

HostController.php:
- Use escapeshellarg() on path in du command (command injection via mid)
- Remove space from daemon name allowlist (argument injection)

EventsController.php:
- Remove single quotes from interval expression regex (SQLi)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:30:49 -04:00
..
Config feat: add Notification model, controller, and route refs #4684 2026-03-05 19:47:29 -05:00
Console further merges from cakephp 2.10.8 2018-03-21 13:09:55 -04:00
Controller fix: harden web interface against injection and SSRF vulnerabilities 2026-03-08 23:30:49 -04:00
Model fix: sanitize monitor Device path to prevent command injection (GHSA-g66m-77fq-79v9) 2026-03-08 13:19:03 -04:00
Plugin Put back to 3.0 2023-02-01 14:34:05 -05:00
View Add Tags support to API 2023-11-03 13:33:28 -04:00
vendor Merged Angular UI branch API to master 2015-06-11 02:58:58 +00:00
webroot Upgrade cakephp to 2.10.24 2021-03-31 12:11:12 -04:00
index.php Upgrade cakephp to 2.10.24 2021-03-31 12:11:12 -04:00