This repository documents the vulnerability details and exploit for Redactror JS 3 and prior versions.
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CVSS: 6.1 (MEDIUM)
This Proof of Concept (POC) demonstrates the exploitation of an XSS vulnerability discovered by me recently in the Redactror JS WYSIWYG editor, which affects all versions of Redactor JS 3 and its prior versions. The flaw allows JavaScript execution by embedding a <script>
tag inside a <figure>
tag within the editor, which the library fails to sanitize.
- Redactor JS (version <= 3.*.*): https://github.com/7Ragnarok7/Redactor-JS-3-XSS/tree/main/docs/redactor3/
This vulnerability can be tested using the pre-configured Redactor JS 3 instance present here.
-
Switch to Source/HTML mode and insert Payload:
-
Switch to WYSIWYG Mode: