Skip to content

Incorrect Default Permissions

High
gruberroland published GHSA-q8g5-45m4-q95p Jun 27, 2022

Package

ldap-account-manager (none)

Affected versions

< 8.0

Patched versions

8.0

Description

Impact

The tmp directory, which is accessible by /lam/tmp/, allows interpretation of .php (and .php5/.php4/.phpt/etc) files. An attacker capable of writing files under
www-data privileges can write a web-shell into this directory, and gain a Code Execution on the host.

Patches

The issue is fixed in version 8.0.

Workarounds

Disallow executing PHP scripts in (/var/lib/ldap-account-manager/)tmp directory.

For more information

If you have any questions or comments about this advisory:

Credits

  • Arseniy Sharoglazov

Severity

High
7.8
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2022-31087

Weaknesses

No CWEs