Local File Inclusion Vulnerability in Concrete5 version 5.7.3.1
Concrete5 fails to properly validate the request path during dispatching, allowing an attacker to specify the path via HTTP headers such as X-Original-URL. This could lead to local file inclusion.
- Triaged in 6 hours
- Fixed in 10 hours
- Disclosed after 14 months
Concrete5 is vulnerable to a Local File Inclusion because it fails to properly validate the path for incoming requests during the dispatching process. This vulnerability exists because the path is retrieved using the Request::getPathInfo() method from the Symfony framework, which allows to specify the path for the request within some HTTP headers (like X-Original-URL and some others). However, this cannot be considered a vulnerability within the Symfony framework, but a vulnerability due to the way Concrete5 dispatches the request using that feature.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application uses Symfony's Request::getPathInfo() to determine the dispatch path without validating that the path came from the real request URL rather than from attacker-controlled headers.
Impact
An attacker could cause local files to be included, potentially leading to information disclosure or further compromise, though the text does not detail the exact consequences.
What the attacker needed
Ability to send custom HTTP headers
The fix
The text does not describe a fix; it notes the issue lies in how Concrete5 dispatches requests.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Local File Inclusion (LFI) is a flaw where a web application can be tricked into including files from the server's own filesystem, potentially exposing sensitive data or executing code. Here, the application trusts a path supplied in an HTTP header instead of the actual URL, so an attacker can point it at unintended files.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.