Stored XSS reached through broken access control
- Logged in as an ordinary customer.
- Reached the sitewide notification settings, meant for admins.
- Stored a script there.
- It ran for everyone who loaded the site, staff included.
Confirmed the script ran for other users, not only for the account that saved it. The chain ended in admin control of the store.
- Enforce the admin check on the endpoint behind the settings.
- Escape stored notification content where it renders.
With the exact handler for each, the code change, and steps a developer can replay in five minutes.