Zero Science Lab » ACROS Security 0patch (0PatchServicex64.exe) Unquoted Service Path Privilege Escalation

ACROS Security 0patch (0PatchServicex64.exe) Unquoted Service Path Privilege Escalation

Title: ACROS Security 0patch (0PatchServicex64.exe) Unquoted Service Path Privilege Escalation
Advisory ID: ZSL-2016-5331
Type: Local
Impact: Privilege Escalation
Risk: (2/5)
Release Date: 20.06.2016
Summary
0patch (pronounced 'zero patch') is a platform for instantly distributing, applying and removing microscopic binary patches to/from running processes without having to restart these processes (much less reboot the entire computer).
Description
The application suffers from an unquoted search path issue impacting the service '0patchservice' for Windows deployed as part of 0patch solution. 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
ACROS, d.o.o. - https://www.0patch.com
Affected Version
2016.05.19.539
Tested On
Microsoft Windows 7 Ultimate SP1 (EN)
Microsoft Windows 7 Professional SP1 (EN)
Vendor Status
[08.06.2016] Vulnerability discovered.
[08.06.2016] Contact with the vendor.
[08.06.2016] Vendor replies asking more details.
[09.06.2016] Sent details to the vendor.
[09.06.2016] Vendor confirms the issue, assigning Bug ID:419 internally.
[13.06.2016] Vendor fixes the issue internally scheduling patch release date.
[20.06.2016] Vendor releases version 2016.06.14.850 to address this issue.
[20.06.2016] Coordinated public security advisory released.
PoC
0patch_eop.txt
Credits
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
High five to Mitja!
References
[1] https://0patch.blogspot.com/2016/06/new-release-0patch-agent-20160614850.html
[2] https://www.exploit-db.com/exploits/39984/
[3] https://cxsecurity.com/issue/WLB-2016060154
[4] https://exchange.xforce.ibmcloud.com/vulnerabilities/114317
[5] https://packetstormsecurity.com/files/137556
Changelog
[20.06.2016] - Initial release
[24.06.2016] - Added reference [4]
[25.06.2016] - Added reference [5]
Contact
Zero Science Lab

Web: http://www.zeroscience.mk
e-mail: lab@zeroscience.mk