Jump to content
Nytro

Chrome iOS UXSS Using iOS Shortcuts and Bookmarklets

Recommended Posts

Posted

Report description

Chrome iOS UXSS Using iOS Shortcuts and Bookmarklets


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules


The problem

Please describe the technical details of the vulnerability

In Chrome iOS using iOS Shortcuts we can add a new bookmark without any user interaction and confirmation, this bookmark can also be a javascript: URI to become a bookmarklet and get code execution on opened site. Using this behavior and couple other quirks we can silently add a bookmarklet, open a website then showing the bookmarks when tapping on it the bookmarklet will execute on the current opened website without the user knowing.

I don't know if there is some protection on this or it's some broken bugs that prevented us to do this straightforward but here is the pseudo code which we are able to perform the attack.

  1. Open bookmarks
  2. Open blank page and close it immediately
  3. Add the bookmarklet
  4. Wait 2 seconds and open the user bookmarks
  5. Play Chrome dino game
  6. Open google.com

In the final stage the user sees the bookmarks and in background google.com is opened when tapping on the bookmarklet the code will execute on google.com.

POC:

  1. Add this Shortcut https://www.icloud.com/shortcuts/cf976fbc13294b00849d5564432b2d0a
  2. Run it
  3. Tap on where it says Tap Here
  4. XSS on google.com

Video POC attached.

The underlying issue is ability to add a bookmark silently without user knowing or confirmation also no check on the bookmark url which allow an attacker to insert javascript: urls.

Impact analysis – Please briefly explain who can exploit the vulnerability, and what they gain when doing so

Using this vulnerability an attacker can trick a user to execute arbitrary code on targeted origin by running a shortcut and tapping on a bookmarklet displayed on the screen without knowing anything about it.


The cause

What version of Chrome have you found the security issue in?

Version 137.0.7151.107

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Site Isolation Bypass

How would you like to be publicly acknowledged for your report?

@RenwaX23

 
chrome_ios_shortcuts_uxss.mp4
26 MB

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...