Concrete5 <= 5.7.3.1 (Application::dispatch) Local File Inclusion Vulnerability
The application builds its routing path from a request value that can be influenced by certain HTTP headers, so a crafted request can make the router resolve a path the attacker chose. This could let an attacker cause the application to include a local file of their choosing.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerability exists because the path for the incoming request 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). So, it might be possible to specify paths containing…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the routing path is taken from a request value that can be set via HTTP headers rather than being restricted to the real URL path.
What the attacker needed
Ability to send custom HTTP headers
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 write-up has not been written yet. The Original tab links to the source.
Web applications often decide which page to show by looking at the path in the URL. Here the framework can also take that path from special request headers instead of the URL, so a visitor can quietly change which page the server thinks was requested. If the chosen page is loaded from a file on the server, an attacker may be able to make the server load a file it should not.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.