Aerosol Posted February 27, 2015 Report Posted February 27, 2015 ?Electronic Arts Origin Client 9.5.5 Multiple Privilege Escalation VulnerabilitiesVendor: Electronic Arts Inc.Product web page: https://www.origin.comAffected version: 9.5.5.2850 (353317) 9.5.3.636 (350385) 9.5.2.2829 (348065)Summary: Origin (formerly EA Download Manager (EADM)) is digital distributionsoftware from Electronic Arts that allows users to purchase games on the internetfor PC and mobile platforms, and download them with the Origin client (formerlyEA Download Manager, EA Downloader and EA Link).Desc#1: The application is vulnerable to an elevation of privileges vulnerabilitywhich can be used by a simple user that can change the executable file with abinary of choice. The vulnerability exist due to the improper permissions,with the 'F' flag (full) for the 'Everyone' and 'Users' group, for the'OriginClientService.exe' binary file, and for all the files in the 'Origin'directory. The service is installed by default to start on system boot withLocalSystem privileges. Attackers can replace the binary with their rootkit,and on reboot they get SYSTEM privileges.Desc#2: Origin client service also suffers from an unquoted search path issueimpacting the 'Origin Client Service' service for Windows deployed as part ofthe Origin Thin Setup bundle. This could potentially allow an authorized butnon-privileged local user to execute arbitrary code with elevated privilegeson the system. A successful attempt would require the local user to be able toinsert their code in the system root path undetected by the OS or other securityapplications where it could potentially be executed during application startupor reboot. If successful, the local user’s code would execute with the elevatedprivileges of the application.Tested on: Microsoft Windows 7 Professional SP1 (EN) Microsoft Windows 7 Ultimate SP1 (EN)Vulnerabilities discovered by Gjoko 'LiquidWorm' Krstic @zeroscienceAdvisory ID: ZSL-2015-5231Advisory URL: [url]http://www.zeroscience.mk/en/vulnerabilities/ZSL-2015-5231.php[/url]14.12.2014**************************************************************************C:\>sc qc "Origin Client Service"[SC] QueryServiceConfig SUCCESSSERVICE_NAME: Origin Client Service TYPE : 10 WIN32_OWN_PROCESS START_TYPE : 3 DEMAND_START ERROR_CONTROL : 1 NORMAL BINARY_PATH_NAME : C:\Program Files (x86)\Origin\OriginClientService.exe <-----< Unquoted path LOAD_ORDER_GROUP : TAG : 0 DISPLAY_NAME : Origin Client Service DEPENDENCIES : SERVICE_START_NAME : LocalSystemC:\>cacls "C:\Program Files (x86)\Origin\OriginClientService.exe"c:\Program Files (x86)\Origin\OriginClientService.exe Everyone:(ID)F <-----< Full control BUILTIN\Users:(ID)F <-----< Full control NT AUTHORITY\SYSTEM:(ID)F BUILTIN\Administrators:(ID)FC:\>****************************************************************************************************************************************************C:\>cscript XCACLS.vbs "C:\Program Files (x86)\Origin\*.exe"Microsoft (R) Windows Script Host Version 5.8Copyright (C) Microsoft Corporation. All rights reserved.Starting XCACLS.VBS (Version: 5.2) Script at 15.12.2014 19:46:41Startup directory:"C:\"Arguments Used: Filename = "C:\Program Files (x86)\Origin\*.exe"**************************************************************************File: C:\Program Files (x86)\Origin\EAProxyInstaller.exePermissions:Type Username Permissions InheritanceAllowed \Everyone Full Control This Folder OnlyAllowed BUILTIN\Users Full Control This Folder OnlyAllowed NT AUTHORITY\SYSTEM Full Control This Folder OnlyAllowed BUILTIN\Administrators Full Control This Folder OnlyNo Auditing setOwner: BUILTIN\Administrators****************************************************************************************************************************************************File: C:\Program Files (x86)\Origin\igoproxy64.exePermissions:Type Username Permissions InheritanceAllowed \Everyone Full Control This Folder OnlyAllowed BUILTIN\Users Full Control This Folder OnlyAllowed NT AUTHORITY\SYSTEM Full Control This Folder OnlyAllowed BUILTIN\Administrators Full Control This Folder OnlyNo Auditing setOwner: BUILTIN\Administrators****************************************************************************************************************************************************File: C:\Program Files (x86)\Origin\Origin.exePermissions:Type Username Permissions InheritanceAllowed \Everyone Full Control This Folder OnlyAllowed BUILTIN\Users Full Control This Folder OnlyAllowed NT AUTHORITY\SYSTEM Full Control This Folder OnlyAllowed BUILTIN\Administrators Full Control This Folder OnlyNo Auditing setOwner: BUILTIN\Administrators****************************************************************************************************************************************************File: C:\Program Files (x86)\Origin\OriginClientService.exePermissions:Type Username Permissions InheritanceAllowed \Everyone Full Control This Folder OnlyAllowed BUILTIN\Users Full Control This Folder OnlyAllowed NT AUTHORITY\SYSTEM Full Control This Folder OnlyAllowed BUILTIN\Administrators Full Control This Folder OnlyNo Auditing setOwner: BUILTIN\Administrators****************************************************************************************************************************************************File: C:\Program Files (x86)\Origin\OriginCrashReporter.exePermissions:Type Username Permissions InheritanceAllowed \Everyone Full Control This Folder OnlyAllowed BUILTIN\Users Full Control This Folder OnlyAllowed NT AUTHORITY\SYSTEM Full Control This Folder OnlyAllowed BUILTIN\Administrators Full Control This Folder OnlyNo Auditing setOwner: BUILTIN\Administrators****************************************************************************************************************************************************File: C:\Program Files (x86)\Origin\OriginER.exePermissions:Type Username Permissions InheritanceAllowed \Everyone Full Control This Folder OnlyAllowed BUILTIN\Users Full Control This Folder OnlyAllowed NT AUTHORITY\SYSTEM Full Control This Folder OnlyAllowed BUILTIN\Administrators Full Control This Folder OnlyNo Auditing setOwner: BUILTIN\Administrators****************************************************************************************************************************************************File: C:\Program Files (x86)\Origin\OriginUninstall.exePermissions:Type Username Permissions InheritanceAllowed \Everyone Full Control This Folder OnlyAllowed BUILTIN\Users Full Control This Folder OnlyAllowed NT AUTHORITY\SYSTEM Full Control This Folder OnlyAllowed BUILTIN\Administrators Full Control This Folder OnlyNo Auditing setOwner: BUILTIN\Administrators**************************************************************************Operation CompleteElapsed Time: 0,1796875 seconds.Ending Script at 15.12.2014 19:46:41C:\>**************************************************************************--**************************************************************************Changed permissions and service binary path name (vendor fix):--------------------------------------------------------------C:\>sc qc "Origin Client Service"[SC] QueryServiceConfig SUCCESSSERVICE_NAME: Origin Client Service TYPE : 10 WIN32_OWN_PROCESS START_TYPE : 3 DEMAND_START ERROR_CONTROL : 1 NORMAL BINARY_PATH_NAME : "C:\Program Files (x86)\Origin\OriginClientService.exe" <-----< Quoted path LOAD_ORDER_GROUP : TAG : 0 DISPLAY_NAME : Origin Client Service DEPENDENCIES : SERVICE_START_NAME : LocalSystemC:\>icacls "C:\Program Files (x86)\Origin\OriginClientService.exe"C:\Program Files (x86)\Origin\OriginClientService.exe NT AUTHORITY\SYSTEM:(I)(F) BUILTIN\Administrators:(I)(F) BUILTIN\Users:(I)(RX) <-----< Read and executeSuccessfully processed 1 files; Failed processing 0 filesC:\>**************************************************************************Source Quote