File Browser JWT Token Vulnerability Allows Session Replay After Logout

Vulnerability

A vulnerability in File Browser version 2.39.0 allows for session replay attacks by issuing long-lived JSON Web Tokens (JWT) that remain valid even after a user logs out. The authentication system does not invalidate these tokens upon logout, leaving captured tokens accessible for use until they naturally expire. This issue arises because the backend lacks a mechanism to track active sessions or invalidate tokens on logout, creating a potential security risk.

Impact

The vulnerability allows a valid JWT to remain active after a user logs out, enabling unauthorized access to authenticated endpoints. If a token is stolen, it can be used indefinitely until it expires, violating principles of secure authentication.

Reproduction

To reproduce this vulnerability, log into File Browser and capture the JWT token generated during the login process. After logging out, attempt to use the old JWT token to access an authenticated endpoint, such as the resources API. The request will be accepted, demonstrating that the token remains valid despite the logout.

Remediation

It is recommended to invalidate JWTs on logout by implementing a session store or token blacklist. Additionally, consider reducing the JWT expiration time where possible or using short-lived tokens in conjunction with refresh tokens.

Added: Jul 15, 2025, 6:31 PM
Updated: Jul 15, 2025, 11:39 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
5.0
exploitability
9.5
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.