Description
Latte before 3.1.7 contains a sandbox bypass vulnerability that allows template authors to read forbidden properties by abusing double-evaluated dynamic property names. Attackers can craft side-effecting name expressions in PropertyFetchNode or StaticPropertyFetchNode so the policy check sees an allowed property while access reads a forbidden one.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nette | Latte | < 3.1.7 | 3.1.7 |
References
- https://github.com/nette/latte/blob/v3.1.6/src/Latte/Sandbox/Nodes/PropertyFetchNode.php#L25-L32 technical-description
- https://github.com/nette/latte/blob/v3.1.6/src/Latte/Compiler/PrintContext.php#L244-L260 technical-description
- https://github.com/nette/latte/commit/3c70898a0a5e5624509b7fe57753aa2b8794ed1c patch
- Latte v3.1.7 Release Notes release-notes
- VulnCheck Advisory: Latte before 3.1.7 Sandbox Bypass via Double-Evaluated Dynamic Property Names third-party-advisory