Rapid7 Vulnerability & Exploit Database

Android Open Source Platform (AOSP) Browser UXSS

Back to Search

Android Open Source Platform (AOSP) Browser UXSS



This module exploits a Universal Cross-Site Scripting (UXSS) vulnerability present in all versions of Android's open source stock browser before 4.4, and Android apps running on < 4.4 that embed the WebView component. If successful, an attacker can leverage this bug to scrape both cookie data and page contents from a vulnerable browser window. Target URLs that use X-Frame-Options can not be exploited with this vulnerability. Some sample UXSS scripts are provided in data/exploits/uxss.


  • Rafay Baloch
  • joev <joev@metasploit.com>


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/gather/android_object_tag_webview_uxss
msf auxiliary(android_object_tag_webview_uxss) > show actions
msf auxiliary(android_object_tag_webview_uxss) > set ACTION < action-name >
msf auxiliary(android_object_tag_webview_uxss) > show options
    ...show and set options...
msf auxiliary(android_object_tag_webview_uxss) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security