Skip to content
XSS Write-up Beginner

XSS Vulnerability in Froala WYSIWYG HTML Editor

The Froala WYSIWYG HTML Editor version 3.2.0 filtered common XSS payloads but allowed an HTML object tag to trigger cross-site scripting. An attacker could execute arbitrary JavaScript in the context of a user interacting with the editor.

insinuator.net

Published on insinuator.net

Recently, I had a brief look at the Froala WYSIWYG HTML Editor (v3.2.0) as there was a post about it on the Full Disclosure mailing list.

The author, on insinuator.net

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

An attacker could execute JavaScript in the context of a user viewing editor content, though the text does not detail the full consequences.

What the attacker needed

Access to the editor's code view

How it was found

  1. Open the editor's code view.
  2. Try common XSS payloads, which are filtered.
  3. Use an HTML object tag instead to trigger XSS.

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.

A WYSIWYG editor lets people format text visually, but it still accepts HTML behind the scenes. If it does not clean that HTML properly, an attacker can slip in a tag that runs JavaScript when someone views the content. That is cross-site scripting: running attacker-controlled code in a victim's browser.

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.