XSS / Stored / Two sessions
One author, another viewer
In one isolated browser context, start Alice's session and save a message. In another, start Bob's session and load it. For harmless proof use <img src=x onerror="document.documentElement.dataset.storedXss='executed'"> and inspect the DOM attribute.