Known Vulnerabilities

The following vulnerabilities are known to exist in Liferay Portal CE.  Users of older releases are strongly encouraged to upgrade to the latest Liferay Portal CE release.  Patches are only produced for the latest Liferay Portal CE release.  Source code modifications may be possible on older releases, but care must be taken to backport fixes that may not apply to older releases.

To obtain source or binary patches for each of the vulnerabilities, click on the name of the vulnerability, and look for links for source and binary patches.  To obtain a single cumulative source or binary patch for all known vulnerabilities, visit the Patch Details section of the Reporting page.  Note that the availability of the single cumulative binary patch may lag a day or two behind availability of the associated source patches.

Back

CST-7031 Velocity/FreeMarker templates do not properly restrict variable usage

Date

Mon, 07 Aug 2017 08:09:00 +0000

Title

CST-7031 Velocity/FreeMarker templates do not properly restrict variable usage

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.

Severity

Severity 1

Workaround

  1. Navigate to Control Panel > Configuration > System Settings > Foundation > Velocity Engine
  2. Add "staticFieldGetter" (without the quotes) to the list of Restricted variables
  3. Navigate to Control Panel > Configuration > System Settings > Foundation > FreeMarker Engine
  4. Add "staticFieldGetter" (without the quotes) to the list of Restricted variables

Notes

There is no patch available for Liferay Portal 7.0 CE GA3. Instead, users should upgrade to Liferay Portal 7.0 CE GA4 (7.0.3) or later to fix this issue.

Credit

Sergej Michel