InvoiceShelf
InvoiceShelf ORDER BY SQL injection through orderByField
InvoiceShelf is an open-source web & mobile app that helps track expenses, payments and create professional invoices and estimates. Prior to version 2.4.0, InvoiceShelf passes the authenticated user's orderByField query parameter into Laravel orderBy calls in Invoice::scopeApplyFilters without restricting the value to column identifiers. A crafted SQL expression can therefore enter the ORDER BY clause across invoice and other list endpoints, enabling boolean-based blind extraction of database information. This issue is fixed in version 2.4.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.1high · scored by CNA · CWE-89
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
InvoiceShelf InvoiceShelf
- < 2.4.0
Fixed in 2.4.0
Mitigation
Upgrade InvoiceShelf to 2.4.0 or later.
References
- Vendor advisory github.com/InvoiceShelf/InvoiceShelf/security/…
- Patch github.com/InvoiceShelf/InvoiceShelf/pull/663
- Patch github.com/InvoiceShelf/InvoiceShelf/commit/e9…
1 more
- Release notes github.com/InvoiceShelf/InvoiceShelf/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.