Issue
-
Liferay DXP 7.0 uses a Bootstrap version which, under certain configurations, is susceptible to the following Cross-Site Scripting (XSS) vulnerabilities:
-
CVE-2019-8331: XSS is possible in the tooltip or popover data-template attribute.
-
Bootstrap Issue 20184: XSS in the data-target attribute.
-
Environment
- Liferay DXP 7.0
Resolution
To protect the portal against these vulnerabilities, ensure the Liferay AntiSamy Sanitizer is activated to filter malicious content. While most portlets are whitelisted by default, you must deactivate the whitelist exception for Web Content to ensure full protection.
-
Navigate to Control Panel > Configuration > System Settings > Foundation > AntiSamy Sanitizer.
-
Remove
com.liferay.journal.model.JournalArticlefrom the Whitelist field.-
If this is not present, AntiSamy is already activated for this type of content.
-
-
Click Save. The Web Content portlets will now sanitize XSS before publication.
-
Re-publish any existing content to apply the sanitization.
-
Note: This process will automatically modify the republished content if it contains restricted elements that must be sanitized.
-