Skip to content
XSS Write-up Intermediate

OE Classic <= 2.8.0 RCE via stored XSS

The email client OE Classic renders HTML using an old Internet Explorer engine without proper sanitisation, allowing stored cross-site scripting. An attacker can send a crafted email that executes script, downloads an attachment to a predictable folder, and uses an ActiveX object to run arbitrary commands, leading to remote code execution.

scriptinjection.blogspot.com

Published on scriptinjection.blogspot.com

<BODY BACKGROUND='javascript:document.body.innerHTML="\x3ciframe style=display:none src=./test.html name=test\x3e\x3c/iframe\x3e"'>BACKGROUND</BODY>

The author, on scriptinjection.blogspot.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 application uses an outdated Internet Explorer rendering engine without proper HTML sanitisation and allows ActiveX objects without security restrictions.

Impact

An attacker could execute arbitrary code on the victim's machine by sending a specially crafted email.

What the attacker needed

Victim uses OE Classic <= 2.8.0; victim opens the crafted email

How it was found

  1. The attacker creates an email with HTML content that includes a javascript: URL in a BACKGROUND attribute.
  2. When the victim opens the email, the script runs and injects an iframe pointing to a local file.
  3. The email also contains an attachment that is automatically downloaded to a predictable folder.
  4. The iframe loads the downloaded HTML file, which contains an ActiveX object and script.
  5. The script uses the ActiveX object to run an arbitrary command, such as launching the calculator.

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.

This email program uses an old version of Internet Explorer to show HTML emails. Because it doesn't clean up the HTML properly, a bad email can run JavaScript code on the victim's computer. That code can then use an old Windows feature to start other programs, like the calculator, which shows the attacker can run anything.

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.