CVE-2020-25715: XSS
A flaw was found in pki-core 10.9.0. A specially crafted POST request can be used to reflect a DOM-based cross-site scripting (XSS) attack to inject code into the search query form which can get automatically executed. The highest threat from this vulnerability is to data integrity.
Other sources
A flaw was found in pki-core. A specially crafted POST request can be used to reflect a DOM-based cross-site scripting (XSS) attack to inject code into the search query form which can get automatically executed. The highest threat from this vulnerability is to data integrity.
The search query is reflected back to the user, and injected in a form, so that the user can click on the "next page", etc. However, a specially crafted POST request can be used to reflect a DOM XSS, which can get automatically executed.
The XSS requires the victim to have installed their RHCS certificate in the web browser. If that certificate has sufficient permissions, the XSS can be used to execute arbitrary code, including sending and signing arbitrary certificates.
Vulnerable page : /ca/ee/ca/listCerts (there might be other pages vulnerable to a similar attack)
document.write( "<button NAME=begin onClick='doNext(this)' VALUE='|<<' width='72'>|<<</button>\n"+ "<button "+disabledUp+" NAME=up onClick='doNext(this)' VALUE='<' width='72'><</button>\n"+ [...] "<INPUT TYPE=hidden NAME=skipNonValid VALUE='"+ (result.header.skipNonValid ? result.header.skipNonValid : "") + "'>\n"+
Several POST parameters, including skipNonValid, are being reflected back to the browser without having been sanitized by the server. An attacker can use that to inject JavaScript in the DOM.
Attack scenario : A victim authenticated in RHCS web UI (the corresponding web browser has the required key/cert installed for client authentication), is tricked into clicking a button on an attacker-controlled website. The XSS can then be used to execute arbitrary JavaScript in the context of RHCS.
— Red Hat
Affected Software
Remediation
Patch Available
Information
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID of this flaw in pki-core?
The vulnerability ID is CVE-2020-25715.
What is the severity level of CVE-2020-25715?
The severity level of CVE-2020-25715 is medium.
How does the vulnerability CVE-2020-25715 affect pki-core?
The vulnerability allows a specially crafted POST request to reflect a DOM-based cross-site scripting (XSS) attack, which can inject code into the search query form and potentially compromise data integrity.
Which versions of pki-core are affected by CVE-2020-25715?
pki-core version 10.9.0 is affected by CVE-2020-25715.
Where can I find more information about CVE-2020-25715?
You can find more information about CVE-2020-25715 at the following references: - [CVE-2020-25715 on CVE.org](https://www.cve.org/CVERecord?id=CVE-2020-25715) - [CVE-2020-25715 on NIST NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-25715) - [Bugzilla Red Hat Bug](https://bugzilla.redhat.com/show_bug.cgi?id=1891016) - [Red Hat Security Advisory](https://access.redhat.com/errata/RHSA-2021:0851)