This article documents a known issue in LPE-15180 where users are able to access web content functions without proper permissions. This vulnerability was fixed by the Portal-143-6210 Fix Pack. However, this fix was limited to only newly created web content.
Resolution
To patch this issue in existing web content, users should execute the Groovy script attached below. As a best practice, please test the script in a non-production environment.
- Backup your database
- Navigate to Control Panel > Server Administration > Script
- Select Groovy from the pull down menu
- Copy and paste the script into the text field
- Select Execute
- The script will gather all groups from all instances and then all of the preferences which have
ownerid = 0,ownertype = 3,portletId = 15orportletId = 160andpreferences = "<portlet-preferences />"or"<portlet-preferences></portlet-preferences>", listing them by default. If you would like to remove these entries, you will have to uncomment the delete command inside the script and then execute it again. - After the script runs, please test thoroughly to ensure that everything continues to behave as expected. Any issues that are encountered should be reported to the Liferay Support team.