CVE-2022-23614
HIGHTwig 2.0.0-2.14.11 - Remote Code Execution via Sort Filter Arrow Parameter
Title source: llmExploitation Summary
EIP tracks 2 public exploits for CVE-2022-23614. PoCs published by davwwwx, 4rtamis.
AI-analyzed exploit summary This repository contains a functional PoC for CVE-2022-23614, demonstrating a Twig sandbox bypass via the `sort` filter. The exploit leverages arbitrary callback execution in `uasort`, allowing RCE when user-supplied input is passed to the `system` function.
Description
Twig is an open source template language for PHP. When in a sandbox mode, the `arrow` parameter of the `sort` filter must be a closure to avoid attackers being able to run arbitrary PHP functions. In affected versions this constraint was not properly enforced and could lead to code injection of arbitrary PHP code. Patched versions now disallow calling non Closure in the `sort` filter as is the case for some other filters. Users are advised to upgrade.
Exploits (2)
This repository contains a functional PoC for CVE-2022-23614, demonstrating a Twig sandbox bypass via the `sort` filter. The exploit leverages arbitrary callback execution in `uasort`, allowing RCE when user-supplied input is passed to the `system` function.
This PoC demonstrates CVE-2022-23614, a sandbox bypass in Twig's sort filter allowing arbitrary PHP function execution. It uses a crafted template to exploit the vulnerability via command injection through the sort function parameter.
References (8)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H