Lucene search

K
zeroscienceGjoko KrsticZSL-2017-5418
HistoryJul 10, 2017 - 12:00 a.m.

Schneider Electric Pelco VideoXpert Privilege Escalations

2017-07-1000:00:00
Gjoko Krstic
zeroscience.mk
87

CVSS2

7.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Authentication

SINGLE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:H/Au:S/C:C/I:C/A:C

CVSS3

7.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

AI Score

7.2

Confidence

High

EPSS

0.002

Percentile

61.3%

Title: Schneider Electric Pelco VideoXpert Privilege Escalations
Advisory ID: ZSL-2017-5418
Type: Local
Impact: Privilege Escalation
Risk: (3/5)
Release Date: 10.07.2017

Summary

VideoXpert is a video management solution designed for scalability, fitting the needs surveillance operations of any size. VideoXpert Ultimate can also aggregate other VideoXpert systems, tying multiple video management systems into a single interface.

Description

The application is vulnerable to an elevation of privileges vulnerability which can be used by a simple user that can change the executable file with a binary of choice. The vulnerability exist due to the improper permissions, with the β€˜F’ flag (full) for the β€˜Users’ group, for several binary files. The service is installed by default to start on system boot with LocalSystem privileges. Attackers can replace the binary with their rootkit, and on reboot they get SYSTEM privileges.

VideoXpert services also suffer from an unquoted search path issue impacting the β€˜VideoXpert Core’ and β€˜VideoXpert Exports’ services for Windows deployed as part of the VideoXpert Setup bundle. This could potentially allow an authorized but non-privileged local user to execute arbitrary code with elevated privileges on the system. A successful attempt would require the local user to be able to insert their code in the system root path undetected by the OS or other security applications where it could potentially be executed during application startup or reboot. If successful, the local user’s code would execute with the elevated privileges of the application.

Vendor

Schneider Electric SE - <https://www.pelco.com>

Affected Version

Core Software 1.12.105
Media Gateway Software 1.12.26
Exports 1.12

Tested On

Microsoft Windows 7 Professional SP1 (EN)

Vendor Status

[05.04.2017] Vulnerabilities discovered.
[28.04.2017] Vendor contacted.
[09.07.2017] No response from the vendor.
[10.07.2017] Public security advisory released.
[05.12.2017] Vendor releases version 2.1 to address this issue.

PoC

pelcovideoxpert_eop.txt

Credits

Vulnerability discovered by Gjoko Krstic - <[email protected]>

References

[1] <https://www.exploit-db.com/exploits/42310/&gt;
[2] <https://packetstormsecurity.com/files/143316&gt;
[3] <https://cxsecurity.com/issue/WLB-2017070078&gt;
[4] <https://exchange.xforce.ibmcloud.com/vulnerabilities/129662&gt;
[5] <https://www.schneider-electric.com/b2b/en/support/cybersecurity/security-notifications.jsp&gt;
[6] <https://www.schneider-electric.com/en/download/document/SEVD-2017-339-01/&gt;
[7] SEVD-2017-339-01- Pelco VideoXpert Enterprise (.pdf)
[8] <https://cve.mitre.org/cgi-bin/cvename.cgi?name=2017-9966&gt;
[9] <https://ics-cert.us-cert.gov/advisories/ICSA-17-355-02&gt;
[10] <https://www.securityfocus.com/bid/102338&gt;
[11] <http://securityaffairs.co/wordpress/67108/hacking/pelco-videoxpert-flaws.html&gt;
[12] <https://www.cybersecurity-help.cz/vdb/SB2017122204&gt;
[13] <https://nvd.nist.gov/vuln/detail/CVE-2017-9966&gt;
[14] <http://www.isssource.com/schneider-clears-pelco-vulnerabilities/&gt;
[15] <http://www.securityweek.com/schneider-electric-patches-flaws-pelco-video-management-system&gt;

Changelog

[10.07.2017] - Initial release
[01.08.2017] - Added reference [1], [2] and [3]
[07.08.2017] - Added reference [4]
[05.12.2017] - Added vendor status
[13.12.2017] - Added reference [5], [6], [7] and [8]
[13.01.2018] - Added reference [9], [10], [11], [12], [13], [14] and [15]

Contact

Zero Science Lab

Web: <http://www.zeroscience.mk>
e-mail: [email protected]

<html><body><p>Schneider Electric Pelco VideoXpert Privilege Escalations


Vendor: Schneider Electric SE
Product web page: https://www.pelco.com
Affected version: Core Software 1.12.105
                  Media Gateway Software 1.12.26
                  Exports 1.12


Summary: VideoXpert is a video management solution designed for
scalability, fitting the needs surveillance operations of any size.
VideoXpert Ultimate can also aggregate other VideoXpert systems,
tying multiple video management systems into a single interface.

Desc: The application is vulnerable to an elevation of privileges
vulnerability which can be used by a simple user that can change
the executable file with a binary of choice. The vulnerability exist
due to the improper permissions, with the 'F' flag (full) for the
'Users' group, for several binary files. The service is installed
by default to start on system boot with LocalSystem privileges.
Attackers can replace the binary with their rootkit, and on reboot
they get SYSTEM privileges.

VideoXpert services also suffer from an unquoted search path issue
impacting the 'VideoXpert Core' and 'VideoXpert Exports' services
for Windows deployed as part of the VideoXpert Setup bundle. This
could potentially allow an authorized but non-privileged local user
to execute arbitrary code with elevated privileges on the system. A 
successful attempt would require the local user to be able to insert
their code in the system root path undetected by the OS or other security
applications where it could potentially be executed during application
startup or reboot. If successful, the local user’s code would execute
with the elevated privileges of the application.

Tested on: Microsoft Windows 7 Professional SP1 (EN)


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2017-5418
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2017-5418.php


05.04.2017

--


C:\Program Files\Pelco\Core&gt;sc qc "VideoXpert Core"
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: VideoXpert Core
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 2   AUTO_START  (DELAYED)
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : C:\Program Files\Pelco\Core\tools\nssm.exe
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : VideoXpert Core
        DEPENDENCIES       :
        SERVICE_START_NAME : LocalSystem


C:\&gt;cacls "C:\Program Files\Pelco\Core\tools\nssm.exe"
C:\Program Files\Pelco\Core\tools\nssm.exe NT AUTHORITY\SYSTEM:(ID)F
                                           BUILTIN\Administrators:(ID)F
                                           BUILTIN\Users:(ID)R


C:\ProgramData\Pelco\Core\db\bin&gt;cacls * |findstr "Users:(ID)F"
C:\ProgramData\Pelco\Core\db\bin\libeay32.dll BUILTIN\Users:(ID)F
C:\ProgramData\Pelco\Core\db\bin\mongod.exe BUILTIN\Users:(ID)F
C:\ProgramData\Pelco\Core\db\bin\mongos.exe BUILTIN\Users:(ID)F
C:\ProgramData\Pelco\Core\db\bin\nssm.exe BUILTIN\Users:(ID)F
C:\ProgramData\Pelco\Core\db\bin\ssleay32.dll BUILTIN\Users:(ID)F


C:\&gt;cacls "C:\ProgramData\Pelco\Exports\bin\nssm.exe"
C:\ProgramData\Pelco\Exports\bin\nssm.exe BUILTIN\Users:(ID)F
                                          NT AUTHORITY\SYSTEM:(ID)F
                                          BUILTIN\Administrators:(ID)F


C:\&gt;cacls "C:\ProgramData\Pelco\Gateway\bin\nssm.exe"
C:\ProgramData\Pelco\Gateway\bin\nssm.exe BUILTIN\Users:(ID)F
                                          NT AUTHORITY\SYSTEM:(ID)F
                                          BUILTIN\Administrators:(ID)F



C:\Users\senad&gt;sc qc "VideoXpert Exports"
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: VideoXpert Exports
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : C:\ProgramData\Pelco\Exports\bin\nssm.exe
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : VideoXpert Exports
        DEPENDENCIES       :
        SERVICE_START_NAME : LocalSystem

</p></body></html>

CVSS2

7.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Authentication

SINGLE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:H/Au:S/C:C/I:C/A:C

CVSS3

7.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

AI Score

7.2

Confidence

High

EPSS

0.002

Percentile

61.3%

Related for ZSL-2017-5418