InvoicePlane
InvoicePlane: Remote Code Execution via Writable Templates Directory
InvoicePlane is a self-hosted open source application for managing invoices, clients, and payments. Prior to 1.7.2-rc-1, InvoicePlane builds its permitted template list by scanning a PHP template directory that can be written through an administrator-controlled file-write capability. A malicious PHP file placed in the directory is automatically trusted by Mdl_templates and can be selected as public_invoice_template. When a public invoice is rendered, the guest View controller includes the trusted file and executes it with web-server privileges. This issue is fixed in version 1.7.2-rc-1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.7.2-rc-1
Fixed in 1.7.2-rc-1
Mitigation
Upgrade InvoicePlane to 1.7.2-rc-1 or later.
References
- Vendor advisory github.com/InvoicePlane/InvoicePlane/security/…
- Patch github.com/InvoicePlane/InvoicePlane/pull/1536
- Patch github.com/InvoicePlane/InvoicePlane/commit/00…
1 more
- Release notes github.com/InvoicePlane/InvoicePlane/releases/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.