Skip to content

GHSA-f855-2rvm-5j7h BIT-liferay-2021-38268 CVE-2021-38268

Liferay Portal and Liferay DXP has incorrect default permissions for site members

Medium Maven
Severity
6.5 / 10
Medium · CVSS 3.1
Exploit chance (EPSS)
0.78%
Chance of exploitation in the next 30 days. Higher than 55.84% 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 Dynamic Data Mapping module before 4.0.39 from Liferay Portal 7.0.0 through 7.3.6, and Liferay DXP 7.0 before fix pack 101, 7.1 before fix pack 21, 7.2 before fix pack 10 and 7.3 before fix pack 2 incorrectly sets default permissions for site members, which allows remote authenticated users with the site member role to add and duplicate forms, via the UI or the API.

Affected versions

Maven

PackageVulnerableFixed in
com.liferay.portal:release.dxp.bom
>= 7.0.0, < 7.0.10.fp101
7.0.10.fp101
com.liferay.portal:release.dxp.bom
>= 7.1.0, < 7.1.10.fp21
7.1.10.fp21
com.liferay.portal:release.dxp.bom
>= 7.2.0, < 7.2.10.fp10
7.2.10.fp10
com.liferay.portal:release.dxp.bom
>= 7.3.0, < 7.3.10.fp2
7.3.10.fp2
com.liferay:com.liferay.dynamic.data.mapping.service
< 6.0.0
6.0.0

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

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

com.liferay:com.liferay.dynamic.data.mapping.service Maven → 6.0.0

maven
<dependency><groupId>com.liferay</groupId><artifactId>com.liferay.dynamic.data.mapping.service</artifactId><version>6.0.0</version></dependency>
gradle
implementation("com.liferay:com.liferay.dynamic.data.mapping.service:6.0.0")

Severity breakdown

CVSS 3.1 6.5

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

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
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