Description
In Liferay Portal 7.0 CE GA3, Velocity and FreeMarker templates does not properly restrict the use of some variables, which allow any user with permission to create a template to insert arbitrary code in any page, prevent access to the portal or access private information stored in the portal.
Workaround:
- Navigate to Control Panel > Configuration > System Settings > Foundation > Velocity Engine
- Add "staticFieldGetter" (without the quotes) to the list of Restricted variables
- Navigate to Control Panel > Configuration > System Settings > Foundation > FreeMarker Engine
- Add "staticFieldGetter" (without the quotes) to the list of Restricted variables
Severity
Severity 1
Fixed Version(s)
Acknowledgments
This issue was reported by Sergej Michel
Publication Date:
Found a Bug?
If you have found, or think you have found a bug, help us to help you by letting us know!
Found a Security Vulnerability?
There's a different process available if you have a security issue to report...
Hall of Fame!
Raise your profile - report security vulnerabilities and enter the Hall of Fame!