-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 5.2 EE SP3 (5.2.7)
-
Fix Version/s: 5.2 EE SP4 (5.2.8)
-
Component/s: Application Security
-
Labels:None
-
Environment:All
By constructing the right URL, all portlets in a community is viewable regardless of permission. To address this issue, the following property has been added to portal(-ext).properties:
#
- Portlets that have configured liferay-portlet.xml with the element
- "add-default-resource" set to true will allow those portlets to be
- dynamically added to any page by any user. This is useful
- (and necessary) for some portlets that need to be dynamically added to a
- page, but it can also pose a security risk because it also allows any user
- to do it.
# - Set this property to true to add a security check around this behavior.
- If set to true, then portlets can only be dynamically added to a page if
- it contains a proper security token. This security token is automatically
- passed when using a portlet URL from one portlet to another portlet.
# - Modify the property "portlet.add.default.resource.check.whitelist" to
- whitelist certain portlets from this security check.
# - The security check utilizes the implementation set in the property
- "auth.token.impl".
portlet.add.default.resource.check.enabled=true
#
- Set a list of comma delimited list of portlet ids that will bypass the
- security check set in the property
- "portlet.add.default.resource.check.enabled".
#
portlet.add.default.resource.check.whitelist=58,86,103,113,145
UPGRADE NOTE:
This update may cause some portlets which sets "add-default-resource" in liferay-portlet.xml to true to no longer work. To revert to the old behavior, set the following in portal(-ext).properties:
portlet.add.default.resource.check.enabled=false
- is related to
-
LPS-8465 Access to all portlets on every page in the portal
- Closed