Issue
- Liferay 7.0 uses a Bootstrap versión that has this vulnerability:
- CVE-2019-8331 - XSS is possible in the tooltip or popover data-template attribute.
Bootstrap issue 20184 - XSS in data-target attribute.
- CVE-2019-8331 - XSS is possible in the tooltip or popover data-template attribute.
Environment
- Liferay DXP 7.0
Resolution
- You should be able to get protection against these vulnerability by activating the official Liferay solution for sanitizing content called AntiSamy, please find more details here: AntiSamy.
-
To get full protection on all portlets, the solution we suggest is to deactivate the whitelisting for
com.liferay.journal.model.JournalArticle
(all other portlets are already whitelisted by default). -
Go to:
- Control Panel > Configuration > System Settings > Foundation > AntiSamy Sanitizer.
-
Remove
com.liferay.journal.model.JournalArticle
from the whitelist.
- Once this has been done, the Web Content portlets will sanitize XSS before publication and will no longer allow malicious content.
-
Please note:
- The change won't be applied to already published contents, which will have to be re-published in order to be sanitized.
- This could imply an automatic modification to the current content (if it has to be sanitized).
Additional Information