Skip to content

CVE-2023-27577 Path Traversal Vulnerability in `LESS` Parser allows reading of sensitive server files in flarum

MediumCVSS 4.9 EPSS 0.85%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHP

Description

flarum is a forum software package for building communities. In versions prior to 1.7.0 an admin account which has already been compromised by an attacker may use a vulnerability in the LESS parser which can be exploited to read sensitive files on the server through the use of path traversal techniques. An attacker can achieve this by providing an absolute path to a sensitive file in the custom LESS setting, which the LESS parser will then read. For example, an attacker could use the following code to read the contents of the /etc/passwd file on a linux machine. The scope of what files are vulnerable will depend on the permissions given to the running flarum process. The vulnerability has been addressed in version 1.7. Users should upgrade to this version to mitigate the vulnerability. Users unable to upgrade may mitigate the vulnerability by ensuring that their admin accounts are secured with strong passwords and follow other best practices for account security. Additionally, users can limit the exposure of sensitive files on the server by implementing appropriate file permissions and access controls at the operating system level.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
flarum/core(Packagist) < 1.7.0; = v0.1.0-beta; = v0.1.0-beta.2; = v0.1.0-beta.3 +37 more 1.7.0 Fixed
flarum/flarum < 1.7.0 1.7.0 Fixed
flarum framework = < 1.7.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
flarum/core(Packagist) < 1.7.0 1.7.0
flarum/core(Packagist) = v0.1.0-beta No fix listed
flarum/core(Packagist) = v0.1.0-beta.10 No fix listed
flarum/core(Packagist) = v0.1.0-beta.11 No fix listed
flarum/core(Packagist) = v0.1.0-beta.11.1 No fix listed
flarum/core(Packagist) = v0.1.0-beta.12 No fix listed
flarum/core(Packagist) = v0.1.0-beta.13 No fix listed
flarum/core(Packagist) = v0.1.0-beta.14 No fix listed
flarum/core(Packagist) = v0.1.0-beta.14.1 No fix listed
flarum/core(Packagist) = v0.1.0-beta.15 No fix listed
flarum/core(Packagist) = v0.1.0-beta.16 No fix listed
flarum/core(Packagist) = v0.1.0-beta.2 No fix listed
flarum/core(Packagist) = v0.1.0-beta.3 No fix listed
flarum/core(Packagist) = v0.1.0-beta.4 No fix listed
flarum/core(Packagist) = v0.1.0-beta.5 No fix listed
flarum/core(Packagist) = v0.1.0-beta.6 No fix listed
flarum/core(Packagist) = v0.1.0-beta.7 No fix listed
flarum/core(Packagist) = v0.1.0-beta.7.1 No fix listed
flarum/core(Packagist) = v0.1.0-beta.7.2 No fix listed
flarum/core(Packagist) = v0.1.0-beta.8 No fix listed
flarum/core(Packagist) = v0.1.0-beta.8.1 No fix listed
flarum/core(Packagist) = v0.1.0-beta.8.2 No fix listed
flarum/core(Packagist) = v0.1.0-beta.9 No fix listed
flarum/core(Packagist) = v1.0.0 No fix listed
flarum/core(Packagist) = v1.0.1 No fix listed
Show 18 more
ProductAffected versionsFixed in
flarum/core(Packagist) = v1.0.2 No fix listed
flarum/core(Packagist) = v1.0.3 No fix listed
flarum/core(Packagist) = v1.0.4 No fix listed
flarum/core(Packagist) = v1.1.0 No fix listed
flarum/core(Packagist) = v1.1.1 No fix listed
flarum/core(Packagist) = v1.2.0 No fix listed
flarum/core(Packagist) = v1.2.1 No fix listed
flarum/core(Packagist) = v1.3.0 No fix listed
flarum/core(Packagist) = v1.3.1 No fix listed
flarum/core(Packagist) = v1.4.0 No fix listed
flarum/core(Packagist) = v1.4.1 No fix listed
flarum/core(Packagist) = v1.5.0 No fix listed
flarum/core(Packagist) = v1.6.0 No fix listed
flarum/core(Packagist) = v1.6.1 No fix listed
flarum/core(Packagist) = v1.6.2 No fix listed
flarum/core(Packagist) = v1.6.3 No fix listed
flarum framework = < 1.7.0 No fix listed
flarum/flarum < 1.7.0 1.7.0

References