Schneider Electric Pelco Sarix/Spectra Cameras Root Remote Code Execution

Title: Schneider Electric Pelco Sarix/Spectra Cameras Root Remote Code Execution
Advisory ID: ZSL-2017-5417
Type: Local/Remote
Impact: System Access
Risk: (4/5)
Release Date: 10.07.2017
Pelco offers the broadest selection of IP cameras designed for security surveillance in a wide variety of commercial and industrial settings. From our industry-leading fixed and high-speed IP cameras to panoramic, thermal imaging, explosionproof and more, we offer a camera for any environment, any lighting condition and any application. When nothing but the best will do. Sarix™ Enhanced Range cameras provide the most robust feature-set for your mission-critical applications. With SureVision™ 3.0, Sarix Enhanced delivers the best possible image in difficult lighting conditions such as a combination of bright areas, shaded areas, and intense light. Designed with superior reliability, fault tolerance, and processing speed, these rugged fixed IP cameras ensure you always get the video that you need.
The affected cameras suffer from authenticated remote code execution vulnerability. The POST parameter 'enable_leds' located in the update() function called via the GeneralSetupController.php script is not properly sanitised before being used in writeLedConfig() function to enable led state to on or off. A remote attacker can exploit this issue and execute arbitrary system commands granting her system access with root privileges using a specially crafted request and escape sequence to system shell.
Schneider Electric SE -
Affected Version
Sarix Enhanced - Model: IME219 (Firmware:
Sarix Enhanced - Model: IME119 (Firmware:
Sarix - Model: D5230 (Firmware:
Sarix - Model: ID10DN (Firmware:
Spectra Enhanced - Model: D6230 (Firmware:
Tested On
Linux 2.6.10_mvl401-1721-pelco_evolution #1 Tue Nov 18 21:15:30 EST 2014 armv5tejl unknown
MontaVista(R) Linux(R) Professional Edition 4.0.1 (0600980)
Vendor Status
[07.04.2017] Vulnerabilities discovered.
[28.04.2017] Vendor contacted.
[09.07.2017] No response from the vendor.
[10.07.2017] Public security advisory released.
[14.02.2019] Vendor releases public advisory.
Vulnerability discovered by Gjoko Krstic - <>
[10.07.2017] - Initial release
[01.08.2017] - Added reference [1], [2] and [3]
[07.08.2017] - Added reference [4]
[23.02.2019] - Added vendor status and reference [5] and [6]
Zero Science Lab