ID

VAR-201003-1099


CVE

CVE-2010-0532


TITLE

Windows Run on Apple iTunes Elevation of privilege vulnerability in installation packages

Trust: 0.8

sources: JVNDB: JVNDB-2010-001339

DESCRIPTION

Race condition in the installation package in Apple iTunes before 9.1 on Windows allows local users to gain privileges by replacing an unspecified file with a Trojan horse. Apple iTunes is prone to a local privilege-escalation vulnerability. Successfully exploiting this issue may allow an attacker to execute arbitrary code with SYSTEM-level privileges. Versions prior to Apple iTunes 9.1 on Microsoft Windows platforms are vulnerable. Note: This BID was originally titled 'Apple iTunes Privilege Escalation and Denial of Service Vulnerabilities'; the denial-of-service issue has been given its own record (BID 39113) to better document it. Local users can replace unknown files with files carrying Trojan horses to obtain permissions. ---------------------------------------------------------------------- Secunia CSI + Microsoft SCCM ----------------------- = Extensive Patch Management http://secunia.com/vulnerability_scanning/corporate/wsus_sccm_3rd_third_party_patching/ ---------------------------------------------------------------------- TITLE: Apple iTunes Multiple Vulnerabilities SECUNIA ADVISORY ID: SA39135 VERIFY ADVISORY: http://secunia.com/advisories/39135/ DESCRIPTION: Some vulnerabilities have been reported in Apple iTunes, which can be exploited by malicious, local users to gain escalated privileges and by malicious people to disclose sensitive information, cause a DoS (Denial of Service), or compromise a user's system. 1) Multiple errors in the ColorSync and ImageIO components when handling images can be exploited to disclose application memory or potentially execute arbitrary code. For more information see vulnerabilities #1 through #4 and #9 in: SA38932 2) An error when processing MP4 files can be exploited to trigger the execution of an infinite loop and render the application unusable after its restart via e.g. a specially crafted podcast. As standard permissions allows any user to write files to the path, this can be exploited to either create malicious files with specific names before installation or malicious libraries after installation, allowing execution of arbitrary code with SYSTEM privileges. The vulnerabilities are reported in versions prior to 9.1. SOLUTION: Update to version 9.1. PROVIDED AND/OR DISCOVERED BY: 2) The vendor credits Sojeong Hong, Sourcefire VRT 3) Jason Geffner, NGSSoftware CHANGELOG: 2010-03-31: Added additional information provided by NGSSoftware. ORIGINAL ADVISORY: http://support.apple.com/kb/HT4105 OTHER REFERENCES: SA38932: http://secunia.com/advisories/38932/ ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help private users keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/advisories/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/advisories/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ---------------------------------------------------------------------- . Systems Affected: iTunes 9.0.0, iTunes 9.0.1, iTunes 9.0.2, iTunes 9.0.3 (version previous to iTunes 9.0.0 not tested) Risk: High Apple Security Advisory ID: APPLE-SA-2010-03-30-2 [1] Apple Knowledge Base Article: HT4105 [2] CVE-ID: CVE-2010-0532 Status: Published ============ Introduction ============ This paper discusses how an unprivileged local attacker can elevate their privileges during an initial installation or update of iTunes for Windows. and this advisory was not released until a fixed build of iTunes was released. ========== Background ========== "iTunes is a proprietary digital media player application, used for playing and organizing digital music and video files. The program is also an interface to manage the contents on Apple's popular iPod and other digital media players such as the iPhone and iPad. Additionally, iTunes can connect to the iTunes Store via the Internet to purchase and download music, music videos, television shows, applications, iPod games, audiobooks, podcasts, feature length films and movie rentals (not available in all countries), and ringtones (only used for iPhone). 10/22/09 Automated response received from Apple Inc. 10/28/09 Automated response received from Apple Inc. 10/29/09 iTunes 9.0.2 released 12/23/09 Status request sent to Apple Inc. 01/06/10 First personal response formally received from Apple Inc. 02/01/10 iTunes 9.0.3 released 03/30/10 iTunes 9.1.0 released, fixing elevation of privilege vulnerability 03/31/10 Advisory released ============= Vulnerability ============= Upon first-time installation, iTunes installs GEAR Software ASPI driver components and Microsoft Driver Install Frameworks API components in "%ALLUSERSPROFILE%\Application Data\{755AC846-7372-4AC8-8550-C52491DAA8BD}\x86" for 32-bit installations and in "%ALLUSERSPROFILE%\Application Data\ {0DD0EEEE-2A7C-411C-9243-1AE62F445FC3}\x64" for 64-bit installations. The installer installs in this directory DifXInstall32.exe or DifXInstall64.exe for 32-bit or 64-bit installations, respectively, along with DIFxAPI.dll and other files. After the installer writes these files to the directory, it will execute DifXInstall32.exe or DifXInstall64.exe in the context of Local System, a privileged user. On a standard Windows installation, unprivileged users have write-access to "%ALLUSERSPROFILE%\Application Data". As such, prior to a first-time iTunes installation, an unprivileged attacker can create these directories and place a malicious executable at "%ALLUSERSPROFILE%\Application Data\ {755AC846-7372-4AC8-8550-C52491DAA8BD}\x86\DifXInstall32.exe" or "%ALLUSERSPROFILE%\Application Data\{0DD0EEEE-2A7C-411C-9243-1AE62F445FC3}\x64\ DifXInstall64.exe", which could for example add the unprivileged attacker to the Administrators group in Windows when DifXInstall32.exe or DifXInstall64.exe is executed by a privileged user. During installation, the installer won't overwrite an existing DifXInstall32.exe or DifXInstall64.exe; it will execute the existing program in the context of Local System. On the other hand, if iTunes is already installed on the system, an unprivileged attacker won't have access to overwrite DifXInstall32.exe, DifXInstall64.exe, or DIFxAPI.dll. However, unprivileged attackers still have write-access to create new files in "%ALLUSERSPROFILE%\Application Data\ {755AC846-7372-4AC8-8550-C52491DAA8BD}\x86" or "%ALLUSERSPROFILE%\ Application Data\{0DD0EEEE-2A7C-411C-9243-1AE62F445FC3}\x64". Therefore, an unprivileged attacker could place into the directory a malicious DLL that DifXInstall32.exe, DifXInstall64.exe, or DIFxAPI.dll depends on. For example, DIFxAPI.dll imports setupapi.dll; an unprivileged attacker could place a malicious setupapi.dll file into that directory such that when DifXInstall32.exe or DifXInstall64.exe is executed, it loads DIFxAPI.dll, which in turn loads the malicious setupapi.dll, which could for example add the unprivileged attacker to the Administrators group in Windows when DifXInstall32.exe or DifXInstall64.exe is executed by a privileged user. When an existing iTunes installation is updated to a newer version, the update installer will execute DifXInstall32.exe or DifXInstall64.exe in the context of Local System. ======= Exploit ======= Ideally, the attacker's DLL should have all the functionality of the DLL that the application expected to load, including the same exported functions. An attacker can patch the original DLL so that the attacker's code runs before the DLL's original DllMain code is executed, after which the original DllMain code is called. This allows the DLL to continue to operate as normal. The program at http://www.malwareanalysis.com/releases/dllpatcher.zip [4] can be used to redirect a given DLL's entrypoint (which originally pointed to DllMain) to point to code that has been patched into the DLL. This patched-in code will add a given user to the Administrators group in Windows (assuming that it's being run in the context of a privileged user), after which it will transfer control back to the DLL's original DllMain. The patcher also updates the Import Table for the DLL since the patched-in code relies on the function NetLocalGroupAddMembers(...) from netapi32.dll. The only other side effect of the patcher is that it clears the Bound Imports for the DLL; the only adverse side effect of this is that this may cause the DLL to take a few extra milliseconds to load. The patcher is compatible with both 32-bit and 64-bit DLLs and displays usage instructions when executed without command line arguments. As an example, an attacker could use this patcher as follows to patch setupapi.dll so that it will add unprivileged user MyComputer\Jason to the Administrators group when the DLL is loaded by a privileged user: DllPatcher.exe %WINDIR%\system32\setupapi.dll "%ALLUSERSPROFILE%\Application Data\{755AC846-7372-4AC8-8550-C52491DAA8BD}\x86\setupapi.dll" MyComputer\Jason ========== Conclusion ========== Proper ACLs should be used to prevent such elevation of privilege attacks and great care should be taken when choosing which directories to use for executable files. NGSSoftware would like to thank Alex Ionescu for his assistance in communications with the Apple Product Security Team. =============== Fix Information =============== This issue has now been resolved. iTunes 9.1.0 can be downloaded from: http://www.apple.com/itunes/download ========== References ========== [1] http://lists.apple.com/archives/security-announce/2010/Mar/msg00003.html [2] http://support.apple.com/kb/HT4105 [3] http://en.wikipedia.org/wiki/ITunes [4] http://www.malwareanalysis.com/releases/dllpatcher.zip NGSSoftware Insight Security Research http://www.ngssoftware.com/ http://www.databasesecurity.com/ http://www.nextgenss.com/ +44(0)208 401 0070

Trust: 2.16

sources: NVD: CVE-2010-0532 // JVNDB: JVNDB-2010-001339 // BID: 39092 // VULHUB: VHN-43137 // PACKETSTORM: 87984 // PACKETSTORM: 87893

AFFECTED PRODUCTS

vendor:applemodel:itunesscope:eqversion:9.0.2

Trust: 1.9

vendor:applemodel:itunesscope:eqversion:9.0.1

Trust: 1.9

vendor:applemodel:itunesscope:eqversion:9.0

Trust: 1.9

vendor:applemodel:itunesscope:eqversion:9.0.0

Trust: 1.6

vendor:applemodel:itunesscope:lteversion:9.0.3

Trust: 1.0

vendor:applemodel:itunesscope:ltversion:9.1

Trust: 0.8

vendor:applemodel:itunesscope:eqversion:9.0.3

Trust: 0.6

vendor:applemodel:itunesscope:eqversion:9.0.1.8

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:7.3.2

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:7.3.1

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:7.3

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:7.0.2

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:8.2

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:8.1

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:8.0.2.20

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:8.0

Trust: 0.3

vendor:applemodel:itunesscope:eqversion:7.4

Trust: 0.3

vendor:applemodel:itunesscope:neversion:9.1

Trust: 0.3

sources: BID: 39092 // JVNDB: JVNDB-2010-001339 // CNNVD: CNNVD-201003-512 // NVD: CVE-2010-0532

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2010-0532
value: MEDIUM

Trust: 1.0

NVD: CVE-2010-0532
value: MEDIUM

Trust: 0.8

CNNVD: CNNVD-201003-512
value: MEDIUM

Trust: 0.6

VULHUB: VHN-43137
value: MEDIUM

Trust: 0.1

nvd@nist.gov: CVE-2010-0532
severity: MEDIUM
baseScore: 6.9
vectorString: AV:L/AC:M/AU:N/C:C/I:C/A:C
accessVector: LOCAL
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 3.4
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

VULHUB: VHN-43137
severity: MEDIUM
baseScore: 6.9
vectorString: AV:L/AC:M/AU:N/C:C/I:C/A:C
accessVector: LOCAL
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 3.4
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

sources: VULHUB: VHN-43137 // JVNDB: JVNDB-2010-001339 // CNNVD: CNNVD-201003-512 // NVD: CVE-2010-0532

PROBLEMTYPE DATA

problemtype:CWE-362

Trust: 1.9

sources: VULHUB: VHN-43137 // JVNDB: JVNDB-2010-001339 // NVD: CVE-2010-0532

THREAT TYPE

local

Trust: 1.1

sources: BID: 39092 // PACKETSTORM: 87984 // PACKETSTORM: 87893 // CNNVD: CNNVD-201003-512

TYPE

competitive condition

Trust: 0.6

sources: CNNVD: CNNVD-201003-512

CONFIGURATIONS

sources: JVNDB: JVNDB-2010-001339

EXPLOIT AVAILABILITY

sources: VULHUB: VHN-43137

PATCH

title:HT4105url:http://support.apple.com/kb/HT4105

Trust: 0.8

title:HT4105url:http://support.apple.com/kb/HT4105?viewlocale=ja_JP

Trust: 0.8

sources: JVNDB: JVNDB-2010-001339

EXTERNAL IDS

db:NVDid:CVE-2010-0532

Trust: 2.9

db:SECUNIAid:39135

Trust: 2.6

db:JVNDBid:JVNDB-2010-001339

Trust: 0.8

db:CNNVDid:CNNVD-201003-512

Trust: 0.7

db:APPLEid:APPLE-SA-2010-03-30-2

Trust: 0.6

db:BIDid:39092

Trust: 0.4

db:PACKETSTORMid:87893

Trust: 0.2

db:VULHUBid:VHN-43137

Trust: 0.1

db:PACKETSTORMid:87984

Trust: 0.1

sources: VULHUB: VHN-43137 // BID: 39092 // JVNDB: JVNDB-2010-001339 // PACKETSTORM: 87984 // PACKETSTORM: 87893 // CNNVD: CNNVD-201003-512 // NVD: CVE-2010-0532

REFERENCES

url:http://secunia.com/advisories/39135

Trust: 2.5

url:http://lists.apple.com/archives/security-announce/2010//mar/msg00003.html

Trust: 1.7

url:http://support.apple.com/kb/ht4105

Trust: 1.3

url:https://oval.cisecurity.org/repository/search/definition/oval%3aorg.mitre.oval%3adef%3a7110

Trust: 1.1

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2010-0532

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2010-0532

Trust: 0.8

url:http://www.apple.com/itunes/

Trust: 0.3

url:/archive/1/510426

Trust: 0.3

url:http://secunia.com/advisories/38932/

Trust: 0.1

url:http://secunia.com/advisories/secunia_security_advisories/

Trust: 0.1

url:http://secunia.com/vulnerability_scanning/corporate/wsus_sccm_3rd_third_party_patching/

Trust: 0.1

url:http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org

Trust: 0.1

url:http://secunia.com/advisories/39135/

Trust: 0.1

url:http://secunia.com/advisories/about_secunia_advisories/

Trust: 0.1

url:http://www.apple.com/itunes/download

Trust: 0.1

url:http://en.wikipedia.org/wiki/itunes

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2010-0532

Trust: 0.1

url:http://www.nextgenss.com/

Trust: 0.1

url:http://www.malwareanalysis.com/releases/dllpatcher.zip

Trust: 0.1

url:http://www.ngssoftware.com/

Trust: 0.1

url:http://lists.apple.com/archives/security-announce/2010/mar/msg00003.html

Trust: 0.1

url:http://www.databasesecurity.com/

Trust: 0.1

sources: VULHUB: VHN-43137 // BID: 39092 // JVNDB: JVNDB-2010-001339 // PACKETSTORM: 87984 // PACKETSTORM: 87893 // CNNVD: CNNVD-201003-512 // NVD: CVE-2010-0532

CREDITS

Jason Geffner of NGSSoftware

Trust: 0.3

sources: BID: 39092

SOURCES

db:VULHUBid:VHN-43137
db:BIDid:39092
db:JVNDBid:JVNDB-2010-001339
db:PACKETSTORMid:87984
db:PACKETSTORMid:87893
db:CNNVDid:CNNVD-201003-512
db:NVDid:CVE-2010-0532

LAST UPDATE DATE

2024-11-23T21:26:24.509000+00:00


SOURCES UPDATE DATE

db:VULHUBid:VHN-43137date:2017-09-19T00:00:00
db:BIDid:39092date:2010-03-30T00:00:00
db:JVNDBid:JVNDB-2010-001339date:2010-04-26T00:00:00
db:CNNVDid:CNNVD-201003-512date:2010-04-01T00:00:00
db:NVDid:CVE-2010-0532date:2024-11-21T01:12:23.590

SOURCES RELEASE DATE

db:VULHUBid:VHN-43137date:2010-03-31T00:00:00
db:BIDid:39092date:2010-03-30T00:00:00
db:JVNDBid:JVNDB-2010-001339date:2010-04-26T00:00:00
db:PACKETSTORMid:87984date:2010-04-02T16:05:17
db:PACKETSTORMid:87893date:2010-04-01T03:45:04
db:CNNVDid:CNNVD-201003-512date:2010-03-31T00:00:00
db:NVDid:CVE-2010-0532date:2010-03-31T18:30:00.407