### [CVE-2024-21492](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21492) ![](https://img.shields.io/static/v1?label=Product&message=github.com%2Fgreenpau%2Fcaddy-security&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=0%3C%20*%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=Insufficient%20Session%20Expiration&color=brighgreen) ### Description All versions of the package github.com/greenpau/caddy-security are vulnerable to Insufficient Session Expiration due to improper user session invalidation upon clicking the "Sign Out" button. User sessions remain valid even after requests are sent to /logout and /oauth2/google/logout. Attackers who gain access to an active but supposedly logged-out session can perform unauthorized actions on behalf of the user. ### POC #### Reference - https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/ - https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/ #### Github - https://github.com/fkie-cad/nvd-json-data-feeds