At the Mobile Security technology conference in California recently, researchers at Syracuse University reported that HTML5 mobile apps could pose new security risks for businesses. Developer errors can cause the HTML5 app to automatically execute malicious code that an attacker sends via WiFi Bluetooth or SMS.
ICSA Lab's mobile security expert Jack Walsh points out that malicious code can secretly steal the victim's sensitive information and send it to the attacker, and that malicious code for HTML5 can spread like an idol worm, automatically sending text messages containing malicious code to the victim's contact.
Security flaws in HTML5 mobile applications are very damaging, according to Gartner's report, the popularity of HTML5 applications is fast due to cross-platform features, and more than half of mobile applications over 2016 years will be based on HTML5.
For developers, choosing the right API is important because the latest HTML5 standards, stylesheet CSS, and JavaScript are able to mix data and code.
If the developer only wants to process the data, but uses the wrong API, the code will be automatically executed, which leaves a huge security risk. If the data from the mixed code comes from a non-trusted party, the HTML5 mobile app may be injected with malicious code and executed.
In fact, the security risk caused by the developer error is not limited to the HTML5 application, in fact there is no essential difference between HTML5 application and Web application security mechanism.
There are many ways an attacker could inject malicious code into a HTML5 application, including sending an SSID over a WiFi hotspot, exchanging it via Bluetooth data, passing a QR code, a JPEG image, or metadata for a MP3 music document.
To achieve cross-platform, HTML5 needs to connect the underlying system resources, such as file systems, device sensors, and cameras, through a middleware framework. Android, iOS, and Windows phones have different containers for accessing services, so developers usually hand the underlying work to the framework developer for processing.
The
Common frameworks include PhoneGap, Rhomobile, and Appcelerator, but the security of the mobile development framework itself is not optimistic, and researchers surveyed 186 phonegap plugins and found that 11 had code injection vulnerabilities.