Fedora Account System
Red Hat Associate
Red Hat Customer
The openRawTab function in LogsPage.tsx opens a new browser window and calls document.write(`<pre>${logs}</pre>`) with raw container stdout/stderr from a managed (spoke) cluster, fetched via the search/managed-cluster proxy. No HTML encoding is applied before document.write. An attacker who can write to container logs on a spoke cluster (e.g. by controlling a pod's stdout) can inject arbitrary HTML/JavaScript that executes in the hub console user's browser session when they click "Raw" on the pod logs page. This enables session hijacking, credential theft, or actions on behalf of the console user. Affected file: frontend/src/routes/Home/Search/Details/LogsPage.tsx (lines 108-111) Fix branch: glasswing/f002 Engineering contact: Kevin Cormier Jira: ACM-38692 Discovered by: Project Glasswing AI-SAST campaign (HP Mythos)