Server side template injection In symfony
Description
Symfony Vulnerable to PHP Eval Injection Applications with ESI support (and SSI support as of Symfony 2.6) enabled and using the Symfony built-in reverse proxy (the `Symfony\Component\HttpKernel\HttpCache class) are vulnerable to PHP code injection; a malicious user can inject PHP code that will be executed by the server.
HttpCache uses eval() to execute files in its cache when they contain ESI tags (and only when ESI is enabled). The vulnerability comes from the fact that PHP allows contents of
A possible exploit comes from websites also vulnerable to Cross-Site Scripting as an attacker can successfully conduct a PHP code injection attack by passing such a tag in a user submitted variable (for which proper output escaping was not applied).
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
debian 12 | 2.3.21+dfsg-4 | ||
debian 11 | 2.3.21+dfsg-4 | ||
packagist | 2.3.27, 2.5.11, 2.6.6 | ||
packagist | 2.3.27, 2.5.11, 2.6.6 | ||
debian 13 | 2.3.21+dfsg-4 | ||
debian 14 | 2.3.21+dfsg-4 |
Aliases
References