mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
1d81de581b
The HtmlPresenter was interpolating user-controlled values directly into HTML attributes and JavaScript code without proper escaping, creating XSS vulnerabilities. Changes: - Escape nonce with htmlspecialchars() for HTML attribute context - Escape nonce with json_encode() for JavaScript string context - Escape mainScript with json_encode() for JavaScript string context Added tests to verify XSS payloads are properly escaped.