Content-Security-Policy was set to Report-Only mode, failing to block XSS attacks
Bulwark Webmail is a self-hosted webmail client for Stalwart Mail Server. Prior to 1.4.11, the reverse proxy (proxy.ts) set the Content-Security-Policy-Report-Only header instead of the enforcing Content-Security-Policy header. This means cross-site scripting (XSS) attacks were logged but not blocked. Any user who could inject script content (e.g., via crafted email HTML) could execute arbitrary JavaScript in the context of the application, potentially stealing session tokens or performing actions on behalf of the user. This vulnerability is fixed in 1.4.11.
References
-
https://github.com/bulwarkmail/webmail/security/advisories/GHSA-6q52-98cr-qx65 x_refsource_CONFIRM
Affected products
- ==< 1.4.11
Package maintainers
-
@doronbehar Doron Behar <me@doronbehar.com>