Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 5.2.3, 5.2.9 EE, 6.0.6 GA, 6.0.12 EE, 6.1.0 CE GA1, 6.1.10 EE GA1
-
Fix Version/s: 6.1.1 CE GA2, 6.1.10 EE GA1, 6.1.20 EE GA2, 6.0.X EE, --Sprint 11/12, 6.2.0 CE M2
-
Component/s: Calendar, Collaboration, Security
-
Labels:None
-
Similar Issues:
Description
An attacker with access to JSON services can cause Java code written in the the title or the description of a calendar to execute. If the attacker also has permission to create events in the Calendar portlet, the attacker will be able to execute any Java code on the server.
Workaround
Disable JSON service's access to CalEventServiceUtil by adding "com.liferay.portlet.calendar.service.CalEventServiceUtil" to the "json.service.invalid.class.names" property in portal-ext.properties. For example:
json.service.invalid.class.names=\
com.liferay.documentlibrary.service.DLLocalServiceUtil,\
com.liferay.documentlibrary.service.DLServiceUtil,\
com.liferay.mail.service.MailServiceUtil,\
com.liferay.portal.service.CompanyServiceUtil,\
com.liferay.portal.service.PortalServiceUtil,\
com.liferay.portal.service.PortletServiceUtil,\
com.liferay.portlet.calendar.service.CalEventServiceUtil

The code for this ticket was committed under LPS-27726.