ZoneMinder
ZoneMinder: Authenticated OS Command Injection via unsanitized Monitor Name in event export (download_functions.php)
ZoneMinder is a free, open source closed-circuit television software application. Prior to 1.38.3, downloadEvents() manually wraps a monitor Name value in single quotes instead of using escapeshellarg() before placing it in shell commands when a user with monitor-create or monitor-edit permission stores a monitor Name containing shell metacharacters and a user with Events View permission exports that monitor's events. In this attack mechanism, the stored monitor Name reaches both the ffmpeg concatenation command and the tar or zip archive command and breaks out of manual quoting. Arbitrary commands execute as the web server user. This issue is fixed in version 1.38.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.37.48, < 1.38.3
Fixed in 1.38.3
Mitigation
Upgrade zoneminder to 1.38.3 or later.
References
- Vendor advisory github.com/ZoneMinder/zoneminder/security/advi…
- Patch github.com/ZoneMinder/zoneminder/commit/2de2ae…
- Patch github.com/ZoneMinder/zoneminder/commit/b3a7c0…
2 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.