VYPR
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.

PackageAffected versionsPatched versions
com.liferay.portal:release.portal.bomMaven
>= 7.4.3.45-ga45, < 7.4.3.102-ga1027.4.3.102-ga102
com.liferay.portal:release.dxp.bomMaven
>= 2023.Q3, < 2023.Q3.62023.Q3.6
com.liferay.portal:release.dxp.bomMaven
>= 7.4.13.u45, <= 7.4.13.u92

Affected products

2

Patches

1
26277c22498e

LPS-197276 Escape redirect

https://github.com/liferay/liferay-portalBrian I. KimOct 26, 2023via ghsa
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

News mentions

0

No linked articles in our index yet.