CVE-2023-23614
JSON

8.8high

Improper session handling of "Remember me for 7 days" functionality

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
1.02% (higher than 64% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Pi-hole®'s Web interface (based off of AdminLTE) provides a central location to manage your Pi-hole. Versions 4.0 and above, prior to 5.18.3 are vulnerable to Insufficient Session Expiration. Improper use of admin WEBPASSWORD hash as "Remember me for 7 days" cookie value makes it possible for an attacker to "pass the hash" to login or reuse a theoretically expired "remember me" cookie. It also exposes the hash over the network and stores it unnecessarily in the browser. The cookie itself is set to expire after 7 days but its value will remain valid as long as the admin password doesn't change. If a cookie is leaked or compromised it could be used forever as long as the admin password is not changed. An attacker that obtained the password hash via an other attack vector (for example a path traversal vulnerability) could use it to login as the admin by setting the hash as the cookie value without the need to crack it to obtain the admin password (pass the hash). The hash is exposed over the network and in the browser where the cookie is transmitted and stored. This issue is patched in version 5.18.3.

Affected

Product or packageVersionsReported by
pi-hole AdminLTE<= 4.0, >= 5.18.3CVE List
pi-hole web_interfacefrom 4.0 before 5.18.3NVD

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-613CWE-836

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

What each source says

CVE List

Pi-hole®'s Web interface (based off of AdminLTE) provides a central location to manage your Pi-hole. Versions 4.0 and above, prior to 5.18.3 are vulnerable to Insufficient Session Expiration. Improper use of admin WEBPASSWORD hash as "Remember me for 7 days" cookie value makes it possible for an attacker to "pass the hash" to login or reuse a theoretically expired "remember me" cookie. It also exposes the hash over the network and stores it unnecessarily in the browser. The cookie itself is set to expire after 7 days but its value will remain valid as long as the admin password doesn't change. If a cookie is leaked or compromised it could be used forever as long as the admin password is not changed. An attacker that obtained the password hash via an other attack vector (for example a path traversal vulnerability) could use it to login as the admin by setting the hash as the cookie value without the need to crack it to obtain the admin password (pass the hash). The hash is exposed over the network and in the browser where the cookie is transmitted and stored. This issue is patched in version 5.18.3.

NVD (es)

La interfaz web de Pi-hole® (basada en AdminLTE) proporciona una ubicación central para administrar su Pi-hole. Las versiones 4.0 y superiores, anteriores a la 5.18.3, son vulnerables a Insufficient Session Expiration. El uso inadecuado del hash WEBPASSWORD del administrador como valor de cookie "Recordarme durante 7 días" hace posible que un atacante realice "pass the hash" para iniciar sesión o reutilizar una cookie "recordarme" teóricamente caducada. También expone el hash a través de la red y lo almacena innecesariamente en el navegador. La cookie en sí caducará después de 7 días, pero su valor seguirá siendo válido siempre que la contraseña de administrador no cambie. Si una cookie se filtra o se ve comprometida, podría usarse para siempre siempre y cuando no se cambie la contraseña de administrador. Un atacante que obtuvo el hash de la contraseña a través de otro vector de ataque (por ejemplo, una vulnerabilidad de recorrido de ruta) podría usarlo para iniciar sesión como administrador estableciendo el hash como valor de la cookie sin necesidad de descifrarlo para obtener la contraseña del administrador (pase el picadillo). El hash se expone en la red y en el navegador donde se transmite y almacena la cookie. Este problema se solucionó en la versión 5.18.3.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-23614 changed 2025-03-10CVE Terms of Use
NVDCVE-2023-23614 changed 2026-06-17Public domain