Skip to content
XSS Write-up Beginner

HTML Injection and a dream in Google Chrome for Linux (Write Up)

A Chrome profile name was not escaped before being displayed in web content, allowing HTML injection. An attacker with local access to the browser could inject markup and a Java expression that caused the browser to crash.

Evan Ricafort Follow

Published on blog.evanricafort.com

{{media:0}}

Evan Ricafort (@evanricafort), on blog.evanricafort.com

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

Impact

The injected HTML was rendered and a Java expression caused the browser to crash; the report notes the issue is not remotely exploitable and requires local access to the victim's credentials and device.

What the attacker needed

Local access to the victim's device; access to the victim's Chrome profile; victim signed in to a Google account

The fix

The profile name should be escaped before it is displayed in web content; the Chromium response says the issue still needs to be fixed.

How it was found

  1. Open Chrome for Linux and sign in to a Google account.
  2. Open the profile menu and choose Customize Profile.
  3. Enter a payload as the Chrome profile name.
  4. Open a new profile from the profile menu and add a profile.
  5. Sign in again with the same account and observe the result.

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 browser shows a profile name on a web page, it should treat the name as plain text, not as code. Here it did not, so a name containing HTML tags was rendered as real page content. The attacker also needed to be at the victim's computer and logged into their Chrome profile, so this is not something someone could do over the internet.

What is XSS?

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

More by Evan Ricafort

View all

13 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

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.