CVE-2024-56733
JSON

5.7medium

Password Pusher Allows Session Token Interception Leading to Potential Hijacking

Severity
5.7medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4fwj-m62q-pp47

Description

Password Pusher is an open source application to communicate sensitive information over the web. A vulnerability has been reported in versions 1.50.3 and prior where an attacker can copy the session cookie before a user logs out, potentially allowing session hijacking. Although the session token is replaced and invalidated upon logout, if an attacker manages to capture the session cookie before this process, they can use the token to gain unauthorized access to the user's session until the token expires or is manually cleared. This vulnerability hinges on the attacker's ability to access the session cookie during an active session, either through a man-in-the-middle attack, by exploiting another vulnerability like XSS, or via direct access to the victim's device. Although there is no direct resolution to this vulnerability, it is recommended to always use the latest version of Password Pusher to best mitigate risk. If self-hosting, ensure Password Pusher is hosted exclusively over SSL connections to encrypt traffic and prevent session cookies from being intercepted in transit. Additionally, implement best practices in local security to safeguard user systems, browsers, and data against unauthorized access.

Affected

Product or packageVersionsReported by
pglombardo PasswordPusher<= 1.50.3CVE List
pwpush (RubyGems)up to 1.50.3GitHub Advisory Database

All scores

GitHub_M5.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
GitHub5.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-384

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

What each source says

CVE List

Password Pusher is an open source application to communicate sensitive information over the web. A vulnerability has been reported in versions 1.50.3 and prior where an attacker can copy the session cookie before a user logs out, potentially allowing session hijacking. Although the session token is replaced and invalidated upon logout, if an attacker manages to capture the session cookie before this process, they can use the token to gain unauthorized access to the user's session until the token expires or is manually cleared. This vulnerability hinges on the attacker's ability to access the session cookie during an active session, either through a man-in-the-middle attack, by exploiting another vulnerability like XSS, or via direct access to the victim's device. Although there is no direct resolution to this vulnerability, it is recommended to always use the latest version of Password Pusher to best mitigate risk. If self-hosting, ensure Password Pusher is hosted exclusively over SSL connections to encrypt traffic and prevent session cookies from being intercepted in transit. Additionally, implement best practices in local security to safeguard user systems, browsers, and data against unauthorized access.

GitHub Advisory Database
Impact

A vulnerability has been reported in Password Pusher where an attacker can copy the session cookie before a user logs out, potentially allowing session hijacking.

Although the session token is replaced and invalidated upon logout, if an attacker manages to capture the session cookie before this process, they can use the token to gain unauthorized access to the user's session until the token expires or is manually cleared.

This vulnerability hinges on the attacker's ability to access the session cookie during an active session, either through a man-in-the-middle attack, by exploiting another vulnerability like XSS, or via direct access to the victim's device.

Patches

Although there is no direct resolution to this vulnerability, it is recommended to always use the latest version of Password Pusher to best mitigate risk.

Workarounds

If self-hosting, ensure Password Pusher is hosted exclusively over SSL connections to encrypt traffic and prevent session cookies from being intercepted in transit. Additionally, implement best practices in local security to safeguard user systems, browsers, and data against unauthorized access.

To further mitigate session hijacking risks, Password Pusher implements the following security measures:

  1. Automatic Session Expiration: Sessions are automatically expired after 2 hours of inactivity, reducing the window for potential exploitation.
  2. Session Reset on Login and Logout: Sessions are fully reset both when a user logs in and logs out, ensuring that session tokens are not reusable post-logout. This practice invalidates old session tokens and issues new ones, minimizing the risk of session hijacking.
  3. Encrypted Cookies: Cookies are encrypted using the value of SECRET_KEY_BASE from the application's configuration. This encryption adds a layer of protection against tampering or reading the session cookie's contents if intercepted, although it doesn't prevent the cookie from being used if stolen.

Note: While these measures significantly enhance security, they are part of a broader security strategy.

References
Credits

Thank you to Positive Technologies for reporting and working with me to bring this CVE to the community.

NVD (es)

Password Pusher es una aplicación de código abierto para comunicar información confidencial a través de la web. Se ha informado de una vulnerabilidad en las versiones 1.50.3 y anteriores en las que un atacante puede copiar la cookie de sesión antes de que un usuario cierre la sesión, lo que potencialmente permite el secuestro de la sesión. Aunque el token de sesión se reemplaza y se invalida al cerrar la sesión, si un atacante logra capturar la cookie de sesión antes de este proceso, puede usar el token para obtener acceso no autorizado a la sesión del usuario hasta que el token caduque o se borre manualmente. Esta vulnerabilidad depende de la capacidad del atacante para acceder a la cookie de sesión durante una sesión activa, ya sea a través de un ataque de intermediario, explotando otra vulnerabilidad como XSS o mediante el acceso directo al dispositivo de la víctima. Aunque no existe una solución directa para esta vulnerabilidad, se recomienda utilizar siempre la última versión de Password Pusher para mitigar mejor el riesgo. Si se aloja por cuenta propia, asegúrese de que Password Pusher esté alojado exclusivamente en conexiones SSL para cifrar el tráfico y evitar que las cookies de sesión se intercepten en tránsito. Además, implemente las mejores prácticas en seguridad local para proteger los sistemas, navegadores y datos de los usuarios contra el acceso no autorizado.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-56733 changed 2024-12-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-4fwj-m62q-pp47 changed 2024-12-31CC-BY-4.0
NVDCVE-2024-56733 changed 2026-06-17Public domain