How i found an ATTACK CHAIN and got CVE-2026–42558
A stored XSS in Xibo CMS allowed a Content Manager to save a script that ran in a sandboxed iframe. By sending a postMessage with a meta refresh payload, the attacker could redirect an admin's authenticated page to a server they control.
medium.com
Published on medium.com
I picked it because: PHP codebase, Docker-ready, and a responsive security team. I cloned the repo, spun up a local instance, and started reading.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the parent page accepted postMessage events from any origin and inserted the dataKey value into the DOM without sanitisation, while the stored script was rendered raw.
Impact
An attacker could redirect an authenticated admin to a fake login page and steal their password, though the exploit required the admin to open the Data Connector page.
What the attacker needed
Content Manager account; Admin opens Data Connector page
The fix
The vendor fixed it by using .text() for dataKey, adding DOMPurify for column values, and sanitising log entries.
How it was found
- As Content Manager, save a script payload that sends a postMessage with a meta refresh dataKey.
- Log in as Admin and open the Data Connector page.
- The iframe loads, the script runs, and the parent page injects the meta refresh.
- The browser redirects the admin to the attacker's server.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The application let one user save JavaScript that ran when an admin opened a page. That script was trapped in a safe box, but the page listened to messages from the box without checking who sent them. The attacker sent a message that made the admin's browser go to a fake login page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.