
CVE-2023-49964: FreeMarker Server-Side Template Injection in Alfresco
An issue was discovered in Hyland Alfresco Community Edition <=7.2.0. By inserting malicious content in the folder.get.html.ftl file, an attacker may perform SSTI (Server-Side Template Injection) attacks, which can leverage FreeMarker exposed objects to bypass restrictions and achieve RCE (Remote Code Execution).
Note: This issue exists because of an incomplete fix for CVE-2020-12873.
The disclosure for this vulnerability can be found here.
This vulnerability requires:
More details and the exploitation process can be found in this PDF.
Initial vulnerability (CVE-2020-12873) and blogpost by that inspired the SSTI research and finding of this vulnerability.
SSTI Case study: Alfresco by PortSwigger Research
The SSTI gadget used to escape the FreeMarker sandbox was inspired from this article by Vincent Herbulot of Synacktiv