Document Title: =============== WK UDID v1.0.1 iOS - Command Inject Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1539 Release Date: ============= 2015-07-01 Vulnerability Laboratory ID (VL-ID): ==================================== 1539 Common Vulnerability Scoring System: ==================================== 5.6 Product & Service Introduction: =============================== This app offers the opportunity to read device-specific information from your iPhone, iPad or iPod touch. The desired information can be selected and sent via email to a recipient of your choice or it can be copied to the clipboard for later use. You can get information about the unique identifier (UDID), the model, the name and the operating system of your device. (Copy of the Homepage https://itunes.apple.com/us/app/wk-udid/id392624227 ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research team discovered a local command inject web vulnerability in the official WK UDID v1.0.1 iOS mobile web-application. Vulnerability Disclosure Timeline: ================================== 2015-07-01: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== WK EDV GmbH Product: WK UDID - iOS Mobile Web Application 1.0.1 Exploitation Technique: ======================= Local Severity Level: =============== Medium Technical Details & Description: ================================ A local command inject web vulnerability has been discovered in the official WK UDID v1.0.1 iOS mobile web-application. The vulnerability allows to inject malicious script codes to the application-side of the vulnerable mobile app. The vulnerability is located in the device name value of the send by mail function. Local attackers are able to manipulate the name value of the device to compromise the mail function of the wkudid mobile app. The html encoding is broken in the send by mail export function. Local attackers are able to manipulate the device name id to compromise the application internal validation in send emails. The attack vector of the vulnerability is server-side and the injection point is the device name information settings. The security risk of the local commandpath inject vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 5.6. Exploitation of the commandpath inject vulnerability requires a low privilege androidios device account with restricted access and no user interaction. Successful exploitation of the vulnerability results in unauthorized execution of system specific commands and unauthorized path value requests to compromise the mobile iOS application and connected device components. Vulnerable Module(s) [+] Device - Settings - Information Vulnerable Parameter(s) [+] device name Affected Module(s) [+] WKUDID - Mail Proof of Concept (PoC): ======================= The local command inject web vulnerability can be exploited by local attackers with low privilege device user account and without user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Start the iOS device 2. Open the settings module 3. Change the name to the local command injection payload 4. Save the settings and start the application wkudid 5. Send the details by mail 6. Review the arrival inbox 7. The execution point is the xml and header location with the device name value 8. Successful reproduce of the local command inject security vulnerability! PoC Device ID - Email