Path Traversal Vulnerability in Lila Project
A path traversal vulnerability in the Lila project allows an attacker to access arbitrary files on the server by manipulating user-supplied input to traverse outside the intended directory. This could expose sensitive files such as application source code, configuration files, or other data not meant for public access.
- Triaged in 22 hours
- Fixed in 3 days
- Disclosed after 3 days
Summary:
A path traversal vulnerability was discovered in the Lila project that allows an attacker to access arbitrary files on the server by manipulating user-supplied input to traverse outside the intended directory structure. This flaw could potentially expose sensitive files such as application source code, configuration files, or other data not meant for public access.
Steps To Reproduce:
[add details for how we can reproduce the issue] code url lila-master/conf/routes,line 939

poc https://lichess.org/assets/../build.sbt

https://lichess.org/assets/../.git/config

Supporting Material/References:
[list any additional material (e.g. screenshots, logs, etc.)]
- [attachment / reference]
Impact
The path traversal vulnerability in the Lila project could lead to: Arbitrary file read: An attacker could access sensitive files such as: .git/config, revealing repository structure and remote URLs application.conf or similar, leaking secrets, DB credentials, or API keys Server-side source files, enabling reverse engineering or bug discovery Information disclosure: Internal logic, credentials, deployment details, or admin-only configurations may be exposed. Privilege escalation (indirectly): By reading files related to user tokens or access control, an attacker might craft further exploits. Recon for further attacks: Knowledge of internal file structure aids in targeting further vulnerabilities like RCE or IDOR.
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 fails to properly sanitise user-supplied file paths, allowing directory traversal sequences to access files outside the intended directory.
Impact
An attacker could read arbitrary files, potentially exposing sensitive information such as repository configuration, application secrets, or source code, which may aid in further attacks.
What the attacker needed
None
How it was found
- Identify the vulnerable route in the Lila project's routes file at line 939.
- Craft a URL that includes a path traversal sequence to access a file outside the intended directory.
- Send a request to the server with the crafted URL to retrieve the target file.
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.
Path traversal is when a program lets a user supply a file path that can include '..' to go up folders and read files outside the intended area. Here, an attacker could use this to read sensitive files on the server, like configuration or source code.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.