Moderate severityNVD Advisory· Published Feb 20, 2024· Updated Aug 2, 2024
CVE-2023-5190
CVE-2023-5190
Description
Open redirect vulnerability in the Countries Management’s edit region page in Liferay Portal 7.4.3.45 through 7.4.3.101, and Liferay DXP 2023.Q3 before patch 6, and 7.4 update 45 through 92 allows remote attackers to redirect users to arbitrary external URLs via the _com_liferay_address_web_internal_portlet_CountriesManagementAdminPortlet_redirect parameter.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.liferay.portal:release.portal.bomMaven | >= 7.4.3.45-ga45, < 7.4.3.102-ga102 | 7.4.3.102-ga102 |
com.liferay.portal:release.dxp.bomMaven | >= 2023.Q3, < 2023.Q3.6 | 2023.Q3.6 |
com.liferay.portal:release.dxp.bomMaven | >= 7.4.13.u45, <= 7.4.13.u92 | — |
Affected products
2- Liferay/DXPv5Range: 2023.q3.1
Patches
126277c22498eLPS-197276 Escape redirect
1 file changed · +6 −1
modules/apps/address/address-web/src/main/java/com/liferay/address/web/internal/portlet/action/EditRegionMVCActionCommand.java+6 −1 modified@@ -21,6 +21,7 @@ import com.liferay.portal.kernel.util.HttpComponentsUtil; import com.liferay.portal.kernel.util.Localization; import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.kernel.util.Portal; import com.liferay.portal.kernel.util.WebKeys; import java.util.HashMap; @@ -74,7 +75,8 @@ protected void doTransactionalCommand( actionRequest.setAttribute( WebKeys.REDIRECT, HttpComponentsUtil.setParameter( - ParamUtil.getString(actionRequest, "redirect"), + _portal.escapeRedirect( + ParamUtil.getString(actionRequest, "redirect")), actionResponse.getNamespace() + "regionId", region.getRegionId())); } @@ -126,6 +128,9 @@ else if (throwable instanceof DuplicateRegionException || @Reference private Localization _localization; + @Reference + private Portal _portal; + @Reference private RegionLocalService _regionLocalService;
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4- github.com/advisories/GHSA-f3rf-cr7f-cwc4ghsaADVISORY
- liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-5190ghsavendor-advisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2023-5190ghsaADVISORY
- github.com/liferay/liferay-portal/commit/26277c22498eb03bb192bbe9e5d2ee34d213780bghsaWEB
News mentions
0No linked articles in our index yet.