Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS12aG04LXd3cmYtM2djd84AAyE1
Path Traversal Vulnerability in `LESS` Parser allows reading of sensitive server files
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.
Permalink: https://github.com/advisories/GHSA-vhm8-wwrf-3gcwJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12aG04LXd3cmYtM2djd84AAyE1
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 1 year ago
Updated: about 1 year ago
CVSS Score: 6.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
Identifiers: GHSA-vhm8-wwrf-3gcw, CVE-2023-27577
References:
- https://github.com/flarum/framework/security/advisories/GHSA-vhm8-wwrf-3gcw
- https://nvd.nist.gov/vuln/detail/CVE-2023-27577
- https://github.com/flarum/framework/commit/1761660c98ea5a3e9665fb8e6041d1f2ee62a444
- https://github.com/flarum/flarum-core/releases/tag/v1.7.0
- https://github.com/advisories/GHSA-vhm8-wwrf-3gcw
Blast Radius: 20.2
Affected Packages
packagist:flarum/core
Dependent packages: 1,429Dependent repositories: 1,301
Downloads: 830,348 total
Affected Version Ranges: < 1.7.0
Fixed in: 1.7.0
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.6.1, 1.6.2, 1.6.3
All unaffected versions: 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5