You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +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.