Description Preview
This vulnerability affects Halo prior to version 1.2.0-beta.1. Server Side Template Injection (SSTI) is possible because TemplateClassResolver.SAFER_RESOLVER is not applied in the FreeMarker configuration, enabling potential injection of template expressions on the server.
Overview
Halo versions prior to 1.2.0-beta.1 contain a Server-Side Template Injection (SSTI) vulnerability in the FreeMarker configuration because TemplateClassResolver.SAFER_RESOLVER is not utilized. This allows an attacker to craft input that is rendered by FreeMarker templates, potentially leading to manipulation of rendered content and, in some contexts, execution of unintended template code on the server. The issue was addressed in the 1.2.0-beta.1 release, and upgrading to a newer version is recommended to mitigate the vulnerability.
Remediation
- Upgrade Halo to version 1.2.0-beta.1 or newer where the fix is implemented.
- If upgrading is not immediately possible, apply compensating controls:
- Ensure FreeMarker is configured to use SAFER_RESOLVER (TemplateClassResolver.SAFER_RESOLVER) in your template engine configuration.
- Restrict access to sensitive classes from template rendering and avoid rendering untrusted input in templates.
- Review all templates and any dynamic template rendering paths to ensure they do not expose unsafe operations.
- Validate mitigation by performing controlled SSTI tests against template rendering in a non-production environment.
- Monitor for security advisories and promptly apply patches when available.
References
- https://github.com/halo-dev/halo/issues/419
- https://github.com/halo-dev/halo/issues/440
- https://github.com/halo-dev/halo/compare/v1.1.3-beta.2...v1.2.0-beta.1
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing: Low
- Public AdministrationPublic Administration: Low
- Health Care & Social AssistanceHealth Care & Social Assistance: Low
- Transportation & WarehousingTransportation & Warehousing: Low
- Educational ServicesEducational Services: Low
- Other Services (except Public Administration)Other Services (except Public Administration): Low
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services: Low
- Arts, Entertainment & RecreationArts, Entertainment & Recreation: Low
- Finance and InsuranceFinance and Insurance: Low
- InformationInformation: Low
- Retail TradeRetail Trade: Low
- Accommodation & Food ServicesAccommodation & Food Services: Low
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services: Low
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting: Low
- ConstructionConstruction: Low
- Management of Companies & EnterprisesManagement of Companies & Enterprises: Low
- MiningMining: Low
- Real Estate Rental & LeasingReal Estate Rental & Leasing: Low
- UtilitiesUtilities: Low
- Wholesale TradeWholesale Trade: Low

