Advisory

GHSA-vhm8-wwrf-3gcw

Also known as: CVE-2023-27577

Summary

Path Traversal Vulnerability in LESS Parser allows reading of sensitive server files

Details

Impact
If an admin account has already been compromised by an attacker, the LESS parser 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:

@import (inline) '/etc/passwd';

.test {
  content: data-uri('/etc/passwd');
}

Patches
The vulnerability has been addressed in version 1.7. Users should upgrade to this version to mitigate the vulnerability.

Workarounds
Users can mitigate the vulnerability by ensuring that their admin accounts are secured with strong passwords and 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-03-13 20:52 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

flarum/core

Packagist · All systems

Affected

  • introduced 0, fixed 1.7.0 (ecosystem)

Fixed versions

1.7.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences