CVE-2024-55555
JSON

8.8high

Invoice Ninja before 5.10.43 allows remote code execution from a pre-authenticated route when an attacker knows the APPKEY.

Severity
8.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
6.62% (higher than 94% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

Invoice Ninja before 5.10.43 allows remote code execution from a pre-authenticated route when an attacker knows the APP_KEY. This is exacerbated by .env files, available from the product's repository, that have default APP_KEY values. The route/{hash} route defined in the invoiceninja/routes/client.php file can be accessed without authentication. The parameter {hash} is passed to the function decrypt that expects a Laravel ciphered value containing a serialized object. (Furthermore, Laravel contains several gadget chains usable to trigger remote command execution from arbitrary deserialization.) Therefore, an attacker in possession of the APP_KEY is able to fully control a string passed to an unserialize function.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List

Classification

CWE-502

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Invoice Ninja before 5.10.43 allows remote code execution from a pre-authenticated route when an attacker knows the APP_KEY. This is exacerbated by .env files, available from the product's repository, that have default APP_KEY values. The route/{hash} route defined in the invoiceninja/routes/client.php file can be accessed without authentication. The parameter {hash} is passed to the function decrypt that expects a Laravel ciphered value containing a serialized object. (Furthermore, Laravel contains several gadget chains usable to trigger remote command execution from arbitrary deserialization.) Therefore, an attacker in possession of the APP_KEY is able to fully control a string passed to an unserialize function.

NVD (es)

Invoice Ninja anterior a la versión 5.10.43 permite la ejecución remota de código desde una ruta autenticada previamente cuando un atacante conoce la APP_KEY. Esto se ve agravado por los archivos .env, disponibles en el repositorio del producto, que tienen valores APP_KEY predeterminados. Se puede acceder a la ruta route/{hash} definida en el archivo invoiceninja/routes/client.php sin autenticación. El parámetro {hash} se pasa a la función decrypt que espera un valor cifrado de Laravel que contiene un objeto serializado. (Además, Laravel contiene varias cadenas de gadgets que se pueden utilizar para activar la ejecución remota de comandos a partir de una deserialización arbitraria). Por lo tanto, un atacante en posesión de la APP_KEY puede controlar por completo una cadena que se pasa a una función unserialize.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-55555 changed 2025-01-07CVE Terms of Use
NVDCVE-2024-55555 changed 2026-06-17Public domain