Aloaha Credential Provider Monitor 5.0.226 Local Privilege Escalation Vulnerability

Title: Aloaha Credential Provider Monitor 5.0.226 Local Privilege Escalation Vulnerability
Advisory ID: ZSL-2013-5124
Type: Local
Impact: Privilege Escalation
Risk: (2/5)
Release Date: 20.01.2013
Summary
Aloaha Credential Provider represents one of the most dramatic changes in the Windows Vista / 7 logon screen, making it much easier to implement new user authentication scenarios that are supported by the OS. To be able to logon via Smartcard to a windows machine requires usually the machine being a member of a domain. With the Aloaha Credential Provider that is not required, the logon screen is the first thing users see when they turn on the computer.
Description
The Aloaha Credential Provider Service 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 'Everyone' group, for the 'AloahaCredentialProviderService.exe' binary file. The service was shipped with Aloaha PDF Saver and possibly every SmartCard Software package from Aloaha. The files are installed in the 'Wrocklage' directory which has the Everyone group assigned to it with full permissions making every single file inside vulnerable to change by any user on the affected machine. After you replace the binary with your rootkit, on reboot you get SYSTEM privileges.
Vendor
Aloaha Software - Wrocklage Intermedia GmbH - http://www.aloaha.com
Affected Version
5.0.226
Tested On
Microsoft Windows 7 Ultimate SP1 (EN) 32bit/64bit
Vendor Status
N/A
PoC
aloaha_pe.txt
Credits
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
References
[1] http://www.exploit-db.com/exploits/24258/
[2] http://cxsecurity.com/issue/WLB-2013010157
[3] http://packetstormsecurity.com/files/119674
[4] http://secunia.com/advisories/51885
[5] http://www.securityfocus.com/bid/57466
[6] http://xforce.iss.net/xforce/xfdb/81412
[7] http://www.securelist.com/en/advisories/51885
[8] http://www.osvdb.org/show/osvdb/89454
[9] http://www.securitylab.ru/vulnerability/436547.php
[10] http://www.eeye.com/resources/security-center/research/zero-day-tracker/2013/20130120
Changelog
[20.01.2013] - Initial release
[21.01.2013] - Added reference [3] and [4]
[22.01.2013] - Added reference [5], [6] and [7]
[24.01.2013] - Added reference [8] and [9]
[14.06.2013] - Added reference [10]
Contact
Zero Science Lab

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