Skip to content
XSS Write-up Advanced

Google_chrome_uxss_via_google_translate

Google Translate transformed fullwidth Unicode characters (< and >) into ASCII angle brackets, allowing reflected user input to become executable HTML. An attacker could achieve JavaScript execution in the context of the translated origin, including on domains like instagram.com.

r3dpars3c.github.io

Published on r3dpars3c.github.io

In December 2023, I discovered a Universal XSS vulnerability in Google Translate.

The author, on r3dpars3c.github.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, Google Translate's translation process converted fullwidth Unicode delimiters to ASCII equivalents without sanitising the output, causing reflected input to be interpreted as HTML.

Impact

Reflected attacker-controlled input could become executable content after being processed by Google Translate, resulting in JavaScript execution in the translated origin, including on domains like instagram.com.

What the attacker needed

Victim uses Google Translate; page reflects user input; automatic translation enabled

The fix

The issue was fixed by Google, as indicated in the disclosure timeline.

How it was found

  1. Find a page where user-controlled input is reflected into the response.
  2. Pass the page through Google Translate.
  3. Observe that fullwidth Unicode delimiters are converted to ASCII angle brackets.
  4. The reflected input is then interpreted as HTML, leading to JavaScript execution.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When a web page shows text you typed, it normally escapes special characters like < and > so they can't become code. Here, Google Translate converted special fullwidth versions of those characters into normal ones, so the text became real HTML and JavaScript ran. This let an attacker run code on other websites if they could get a page to reflect their input.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.