The vulnerability, CVE-2026-45161, describes a CSRF bypass in the trainer_login view of the wger application. The root cause is the trainer_login function in wger/core/views/user.py accepting GET requests. Django's CsrfViewMiddleware only applies CSRF protection to 'unsafe' HTTP methods (POST, PUT, PATCH, DELETE). By allowing GET requests, an attacker can craft a simple HTML page with an <img> tag pointing to the trainer_login endpoint. When an authenticated user (trainer) visits this malicious page, their browser automatically sends a GET request to the vulnerable endpoint, including their session cookie. This triggers the django_login() function within trainer_login, which then rebinds the trainer's session to an arbitrary user account specified by the attacker. This leads to session impersonation. The suggested patch, detailed in the advisory, involves adding the @require_POST decorator to the trainer_login function and implementing safer handling for the next redirect parameter. This ensures that the function only processes POST requests, thereby enabling Django's CSRF protection and mitigating the vulnerability. The trainer_login function is the central point of exploitation as it directly processes the malicious GET request and performs the sensitive session rebinding action.