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

2016-06-20T00:00:00
ID ZSL-2016-5331
Type zeroscience
Reporter Gjoko Krstic
Modified 2016-06-20T00:00:00

Description

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

                                        
                                            &lt;html&gt;&lt;head&gt;&lt;title&gt;403 Nothing to see.&lt;/title&gt;
&lt;link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon"&gt;
&lt;style type="text/css"&gt;
&lt;!--
body {
	background-color: #000;
}
body,td,th {
	font-family: Verdana, Geneva, sans-serif;
}
a:link {
	color: #008FEF;
	text-decoration: none;
}
a:visited {
	color: #008FEF;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
	color: #666;
}
a:active {
	text-decoration: none;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body bgcolor=black&gt;
&lt;center&gt;
&lt;font color="#7E88A3" size="2"&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;h1&gt;403 Nothing to see.&lt;/h1&gt;

You do not have the powah for this request /403.shtml&lt;br /&gt;&lt;br /&gt;
&lt;font size="2"&gt;&lt;a href="https://www.zeroscience.mk"&gt;https://www.zeroscience.mk&lt;/a&gt;&lt;/font&gt;
&lt;/font&gt;&lt;/center&gt;
&lt;/body&gt;&lt;/html&gt;