Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsA fix was pushed into the master branch but not yet published.
Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the trainer_login view in wger/core/views/user.py, which accepts GET requests and calls django_login() without any CSRF protection. Because Django's CsrfViewMiddleware only enforces token validation on unsafe HTTP methods (POST, PUT, PATCH, DELETE), an attacker can embed an <img> tag pointing to the trainer-login endpoint on a malicious page. When an authenticated trainer loads that page, the browser auto-issues the GET request with the session cookie attached, and the server executes django_login(), forcibly rebinding the trainer's session to an arbitrary user account.
Note: This is only exploitable by an attacker who can cause an authenticated user with the gym.gym_trainer permission to load a malicious page.