InvoicePlane is a self-hosted open source application for managing invoices, clients, and payments. A path traversal vulnerability exists in the `get_file` method of the `Guest` module's `Get` controller in InvoicePlane up to and including through 1.6.3. The vulnerability allows unauthenticated attackers to read arbitrary files on the server by manipulating the input filename. This leads to the disclosure of sensitive information, including configuration files with database credentials. Version 1.6.4 fixes the issue.
The vulnerability results from the lack of proper validation of the file name passed to the `get_file` method in the module handled by unauthenticated users (the `Guest` module). By manipulating the input parameter of the file name — for example, using `../` sequences — an attacker can escape the allowed directory and point to any file in the server's file system. Since the vulnerable endpoint is accessible without authentication, the exploit does not require possessing any credentials or permissions in the application.
An attacker can read arbitrary files on the server, including configuration files containing database credentials, which can lead to further infrastructure compromise. In case of credential leakage, it is possible to escalate the attack to other system components.
InvoicePlane should be updated to version 1.6.4, which contains a patch eliminating the vulnerability. Patch details are available in the project repository on GitHub (commit add8bb798dde621f886823065ef1841986543c69).
InvoicePlane versions up to and including 1.6.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XInvoiceplane
APPInvoiceplane< 1.6.4
Related vulnerabilities
RCE w InvoicePlane 1.7.0 via LFI i Log Poisoning
RCE przez nieautoryzowany upload plików PHP w InvoicePlane
RCE w InvoicePlane — niebezpieczne przesyłanie plików (upload_file)
In InvoicePlane 1.5.11 a misconfigured web server allows unauthenticated directory listing and file download. ...
InvoicePlane version 1.4.10 is vulnerable to a Arbitrary File Upload resulting in an authenticated user can up...