Document Title: =============== AdHocMate v1.0 iOS - Persistent Mail Encode Vulnerability Date: ===== 2015-07-27 References: =========== http://www.vulnerability-lab.com/get_content.php?id=1559 VL-ID: ===== 1559 Common Vulnerability Scoring System: ==================================== 3.8 Introduction: ============= AdHocMate is a simple app to displays the Unique Device Identifier (UDID) and some other information of your iOS devices. You can send this information to developers so they can add your proper device ID to their Ad Hoc distribution for app tester. (Copy of the Vendor Homepage: https://itunes.apple.com/us/app/adhocmate/id647553418 ) Abstract: ========= The Vulnerability Laboratory Core Research Team discovered an application-side input validation vulnerability in the AdHocMate v1.0 iOS mobile application. Report-Timeline: ================ 2015-07-27: Public Disclosure (Vulnerability Laboratory) Status: ======== Published Affected Products: ================== Softmastx Product: AdHocMate - iOS Mobile (Web-Application) v1.0 Exploitation-Technique: ======================= Local Severity: ========= Medium Details: ======== An application-side input validation web vulnerability has been discovered in the official AdHocMate v1.0 iOS mobile web-application. The security web vulnerability allows to inject malicious script codes on the application-side of the vulnerable iOS mobile app. The vulnerability is located in the `Share Options > Email` encoding. The application encodes the input of the device cell name with wrong conditions. Thus results in an application-side script code execution issue in the share options > mail module. The attackers changes by restricted physical device access the device cell name to compromise the application output in the share options > mail module. The security risk of the application-side input web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.8. Exploitation of the persistent web vulnerability requires a low privilege ios device account with restricted access and no user interaction. Successful exploitation of the vulnerabilities results in persistent phishing mails, session hijacking, persistent external redirect to malicious sources and application-side manipulation of affected or connected module context. Vulnerable Module(s) [+] Share Options > Email Vulnerable Parameter(s) [+] device cell name (cid) Affected Module(s) [+] AdHoc Device Information (Mail) Proof of Concept: ================= The application-side mail encoding web vulnerability can be exploited by local attackers with restricted physical device access without user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Change the cid of the ios device via settings to a script code payload (test) 2. Open the vulnerable application 3. Click the Share Options button 4. Push the email button 5. The function includes the device values with wrong encoding to the email 6. Successful reproduce of the vulnerability! PoC: AdHoc Device Informations.html