Skip to content
XSS Write-up Intermediate

Opera Browser Cross Site Scripting (XSS)

The Opera browser for Android had a cross-site scripting flaw in its reader mode, where a crafted title or description from a web page could execute script when the reader mode was activated. An attacker could create a page with malicious content and trick a user into opening it in reader mode, leading to script execution in the browser context.

Neil Mark Ochea Follow

Published on nmochea.medium.com

I know that I can trigger the xss in reader mode but i dont know where so this my conclusion visit the website with xss payload and click the reader mode then xss will trigger.

Neil Mark Ochea / mhl_0xnmo, on nmochea.medium.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

Root cause

Likely the reader mode did not properly sanitise the page title or description before inserting it into the reader view, allowing script injection.

Impact

An attacker could execute arbitrary JavaScript in the context of the reader mode, potentially leading to data theft or other malicious actions, though the report does not specify the exact impact.

What the attacker needed

Opera browser on Android; Victim opens a crafted link; Victim activates reader mode

The fix

The vulnerability was fixed in an updated version of the Opera Browser, as confirmed by the security team.

How it was found

  1. Open Opera browser on Android.
  2. Create a new task in Google Calendar with a title and description containing a script payload.
  3. Save the task and send it to your Gmail.
  4. Open the email in the inbox and copy the message ID from the URL.
  5. Insert the message ID into a specific link.
  6. Open the link in a new tab, click the reader mode button, and the XSS triggers.

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.

Reader mode is a feature that strips away ads and clutter to show just the article text. The bug meant that if a page's title or description contained hidden code, that code could run when the page was viewed in reader mode. This could let an attacker do things like steal data or perform actions as the user.

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 Neil Mark Ochea

View all

7 more disclosed reports, best first.

More from Opera

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.