Language input validation (whitelist) ✓ rejects 17 malicious/invalid codes ✓ rejects non-string types SQL injection ✓ injection payload rejected (422) ✓ role and language untouched ✓ poisoned guest session ignored ✓ poisoned user row ignored ✓ poisoned system default ignored Path traversal / arbitrary file inclusion ✓ catalogue()/trans()/exportForJs() never include outside files ✓ constructor with traversal locale falls back to en ✓ email template name traversal blocked Cross-site scripting (XSS) ✓ e__() escapes placeholder values ✓ dev missing-key marker is escaped ✓ prod missing-key label has no markup ✓ i18n.js.php JSON flags neutralise ✓ selector escapes all dynamic output ✓ rendered selector contains no injected tags ✓ rendered selector has CSRF field ✓ no HTML/JS in any translation string CSRF, privilege escalation, IDOR ✓ missing CSRF token rejected (419) ✓ wrong CSRF token rejected (419) ✓ array CSRF token rejected ✓ empty session token never matches empty input ✓ token is 256-bit random ✓ posted id/user_id ignored — only own row changes (no IDOR) ✓ client cannot change system default (403) ✓ guest cannot change system default (403) ✓ admin without CSRF rejected (419) ✓ admin with invalid code rejected (422) ✓ system default still en Email header injection ✓ CRLF in recipient address refused ✓ invalid recipient address refused ✓ CRLF in ticket subject stripped from Subject header ✓ names/subjects escaped in HTML email body ✓ poisoned recipient language falls back safely Log injection and edge cases ✓ newline in key cannot forge log lines ✓ no logging in production ✓ plurals safe for PHP_INT_MIN/MAX and negatives ✓ garbage dates return empty, no exception ✓ very long key/values handled quickly ✓ placeholder values are not re-expanded JavaScript ✓ JS single-pass interpolation ✓ JS missing-key label strips markup ✓ JS prototype keys do not leak functions ✓ JS no prototype pollution 44 passed, 0 failed