Document Title: =============== Apple iTunes & AppStore - Persistent Invoice Vulnerability Date: ===== 2015-07-27 References: =========== http://www.vulnerability-lab.com/get_content.php?id=1512 Apple Security ID: 623920272 Video: http://www.vulnerability-lab.com/get_content.php?id=1517 Vulnerability Magazine: http://magazine.vulnerability-db.com/?q=articles/2015/07/17/apple-app-store-and-itunes-store-input-validation-web-vulnerability VL-ID: ===== 1512 Common Vulnerability Scoring System: ==================================== 5.9 Introduction: ============= Apple Inc. is an American multinational technology company headquartered in Cupertino, California, that designs, develops, and sells consumer electronics, computer software, online services, and personal computers. Its best-known hardware products are the Mac line of computers, the iPod media player, the iPhone smartphone, the iPad tablet computer, and the Apple Watch smartwatch. Its online services include iCloud, the iTunes Store, and the App Store. Apple`s consumer software includes the OS X and iOS operating systems, the iTunes media browser, the Safari web browser, and the iLife and iWork creativity and productivity suites. (Copy of the Homepage: http://en.wikipedia.org/wiki/Apple_Inc. ) Abstract: ========= The Vulnerability Laboratory discovered an application-side input validation web vulnerability in the official Apple - App Store and iTunes Store online-service web-application. Report-Timeline: ================ 2015-06-08: Researcher Notification & Coordination (Benjamin Kunz Mejri) 2015-06-09: Vendor Notification (Apple Product Security Team) 2015-**-**: Vendor Response/Feedback (Apple Product Security Team) 2015-**-**: Vendor Fix/Patch Notification (Apple Developer Team) 2015-07-27: Public Disclosure (Vulnerability Laboratory) Status: ======== Published Affected Products: ================== Apple Product: iTunes & AppStore - Online Service (Web-Application) v2015 Q2 Exploitation-Technique: ======================= Remote Severity: ========= High Details: ======== An application-side input validation web vulnerability has been discovered in the official Apple - App Store and iTunes Store online-service web-application. The vulnerability allows remote attackers to inject own malicious script codes on the application-side of the vulnerable context function or service module. The apple itunes and appstore is taking the device cell name of the buying users. Remote attackers can manipulate the name value by an exchange with script code (special chars). After that the attacker buys any article in the appstore or itunes-store. During that procedure the internal appstore service takes the device value and does encode it with wrong conditions. The seller account context runs since the error with the injected script code occurs and gets this way re-implemented to the invoice. Thus results in an application-side script code execution in the invoice of apple. Remote attackers can manipulate the bug by interaction via persistent manipulated context to other apple store user accounts. The vulnerability can be exploited by remote attackers and the malicious receiver/sender email is *@email.apple.com. The invoice is present to both parties (buyer & seller) which demonstrates a significant risk to buyers, sellers or apple website managers/developers. The issue impact also the risk that a buyer can be the seller by usage of the same name to compromise the store online service integrity. The security risk of the persistent input validation and mail encoding web vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 5.8. Exploitation of the persistent input validation and mail encoding web vulnerability requires a low privilege apple (appstore/icloud) account and low or medium user interaction. Successful exploitation of the vulnerability results in session hijacking, persistent phishing attacks, persistent redirect to external sources and persistent manipulation of affected or connected service module context. Vulnerable Module(s): [+] Apple Invoice Vulnerable Parameter(s): [+] device-cell [+] type cell Affected Service(s): [+] Appstore & iTunes Sender(s)/Receiver(s): [+] @email.apple.com Proof of Concept: ================= The vulnerability can be exploited by remote attackers with low privilege web-application user account with low or medium user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. Sender: *@email.apple.com Manual steps to reproduce the vulnerability ... 1. Inject script code to your device cell name ;) 2. Buy an article by usage of the apple itunes or appstore online-service (via app or desktop browser) 3. Choose any app or movie that you would like to buy and download it 4. After the download an invoice arrives to the users inbox Note: The appstore runs since the gets the wrong encoded values and stops which results in the manipulated device name value in the seller name input 5. The application-side injected script code execution occurs in the arrived emails context next to the device-cell and type cell value parameters 6. Successful reproduce of the remote vulnerability! PoC: Ihre Rechnung von Apple (Your Invoice by Apple)