ZoneMinder
ZoneMinder: Post-Auth RCE in config api
ZoneMinder is a free, open source closed-circuit television software application. Prior to 1.38.4, any authenticated user can use the /api/configs/edit/{name}.json endpoint to modify protected configuration settings because ConfigsController::edit() does not enforce the System=Edit authorization requirement and its system-variable protection is ineffective. An attacker can set ZM_PATH_FFMPEG to a command-bearing value and trigger an exec() sink in web/views/image.php or web/includes/Event.php by requesting frame extraction. This permits arbitrary command execution with the privileges of the web server user and can expose private camera feeds, recordings, and database data or establish persistence. This issue is fixed in version 1.38.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 1.36.38
- >= 1.37.61, < 1.38.4
Fixed in 1.38.4
Mitigation
Upgrade zoneminder to 1.38.4 or later.
References
- Vendor advisory github.com/ZoneMinder/zoneminder/security/advi…
- Patch github.com/ZoneMinder/zoneminder/pull/4987
- Patch github.com/ZoneMinder/zoneminder/commit/5add2f…
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.