REDHAT-BUG-2491886: Medium severity Pen Drive vulnerability
A flaw was found in the Pen Drive tool's HTML report generation. When Pen Drive runs a full-run against an OpenShift cluster or a must-gather archive, it generates an HTML report containing cluster data. Cluster-sourced fields — including the ClusterVersion spec.channel, CatalogSource metadata, and Subscription configuration — are rendered directly into the HTML output without escaping or sanitization. An attacker with cluster administrator privileges (or the ability to modify a must-gather archive) can inject arbitrary HTML and JavaScript into cluster objects using commands such as: oc patch clusterversion version --type merge -p '{"spec":{"channel":"stable-4.18<img src=x onerror=alert(1)>"}}'. When Pen Drive generates a report from this cluster data and another user (such as a support engineer or cluster administrator) opens the report in their browser, the injected JavaScript executes in their browser context. This can lead to session token theft, credential exfiltration, or manipulation of displayed content. The vulnerability was found during an internal pentest of Pen Drive version 0.1.3 and is reportedly fixed in version 1.0.0-2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Pen Drive toolto a version that resolves this vulnerability.Fixed in 1.0.0-2 - Compensating control
When generating or viewing Pen Drive HTML reports, treat cluster data sources as untrusted: do not open reports created from clusters (or must-gather archives) that may be modified by an attacker with cluster-admin privileges, and restrict access to the generated HTML report to trusted users only.
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2491886?
The severity of REDHAT-BUG-2491886 is classified as medium with a score of 4.
What is the main issue described in REDHAT-BUG-2491886?
REDHAT-BUG-2491886 describes a flaw in the Pen Drive tool's HTML report generation that exposes sensitive cluster data.
How do I fix REDHAT-BUG-2491886?
To fix REDHAT-BUG-2491886, update Pen Drive to the latest version that addresses this vulnerability.
What software is affected by REDHAT-BUG-2491886?
The software affected by REDHAT-BUG-2491886 includes Pen Drive and the OpenShift cluster.
What are the security implications of REDHAT-BUG-2491886?
The security implications of REDHAT-BUG-2491886 involve potential exposure of sensitive cluster-sourced fields in the generated HTML reports.