Skip to content

GHSA-22wc-7wmm-v4cc CVE-2021-33327

Liferay Portal and Liferay DXP does not properly check user permission

Medium Maven
Severity
4.3 / 10
Medium · CVSS 3.1
Exploit chance (EPSS)
0.86%
Chance of exploitation in the next 30 days. Higher than 58.56% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-276 Incorrect Default Permissions
Fix
Available
2 packages have a fixed version

Description

The Portlet Configuration module before 4.0.13 in Liferay Portal 7.2.0 through 7.3.3, and Liferay DXP 7.0 fix pack pack 93 and 94, 7.1 fix pack 18, and 7.2 before fix pack 8, does not properly check user permission, which allows remote authenticated users to view the Guest and User role even if "Role Visibility" is enabled.

Affected versions

Maven

PackageVulnerableFixed in
com.liferay.portal:release.dxp.bom
>= 7.0.10.fp93, < 7.0.10.fp95
7.0.10.fp95
com.liferay.portal:release.dxp.bom
>= 7.1.10.fp18, < 7.1.10.fp19
7.1.10.fp19
com.liferay.portal:release.dxp.bom
>= 7.2.0, < 7.2.10.fp8
7.2.10.fp8
com.liferay:com.liferay.portlet.configuration.web
< 4.0.13
4.0.13

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

com.liferay.portal:release.dxp.bom Maven → 7.0.10.fp95

maven
<dependency><groupId>com.liferay.portal</groupId><artifactId>release.dxp.bom</artifactId><version>7.0.10.fp95</version></dependency>
gradle
implementation("com.liferay.portal:release.dxp.bom:7.0.10.fp95")

com.liferay:com.liferay.portlet.configuration.web Maven → 4.0.13

maven
<dependency><groupId>com.liferay</groupId><artifactId>com.liferay.portlet.configuration.web</artifactId><version>4.0.13</version></dependency>
gradle
implementation("com.liferay:com.liferay.portlet.configuration.web:4.0.13")

Severity breakdown

CVSS 3.1 4.3

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Weakness

CWE-276: Incorrect Default Permissions

During installation, installed file permissions are set to allow anyone to modify those files.

How to prevent it
  • Architecture and Design, Operation: The architecture needs to access and modification attributes for files to only those users who actually require those actions.
  • Architecture and Design: Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-66x6-8jgv-qpfh
Liferay Portal and Liferay DXP vulnerable to Stored Cross-site Scripting
Medium Also affects com.liferay.portal:release.dxp.bom
GHSA-rcc7-jx7p-hrv4
Liferay Portal and Liferay DXP vulnerable to store Cross-site Scripting
Medium Also affects com.liferay.portal:release.dxp.bom
GHSA-m5c7-5gv3-hcpf
Liferay Portal 7.4.0 and Liferay DXP have a reflected cross-site scripting (XSS) vulnerability
Medium Also affects com.liferay.portal:release.dxp.bom
GHSA-222w-xmc5-jhp3
Liferay Portal and Liferay DXP have a reflected cross-site scripting vulnerability
Medium Also affects com.liferay.portal:release.dxp.bom
GHSA-cg99-m88x-422c
Liferay Portal and Liferay DXP have a Denial Of Service via File Upload (DOS) vulnerability
Medium Also affects com.liferay.portal:release.dxp.bom
GHSA-c6g5-g6r7-q4j6
Liferay Portal and Liferay DXP vulnerable to Server-Side Request Forgery
Medium Also affects com.liferay.portal:release.dxp.bom
GHSA-6v93-frf9-2rp8
Liferay Portal and Liferay DXP vulnerable to Server-Side Request Forgery
High Also affects com.liferay.portal:release.dxp.bom
GHSA-qhp6-vp7c-g7xp
Liferay Cross-site Scripting vulnerability
Medium Also affects com.liferay.portal:release.dxp.bom
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor