Back to Findings
JWT Algorithm Confusion Vulnerability
HighResolvedCVSS 3.1: 8.6CWE-345
Description
The API accepts JWT tokens signed with the `none` algorithm, allowing attackers to forge valid tokens without the secret key.
Proof of Concept
Modify JWT header to `{"alg":"none"}`, remove the signature. The API accepts the forged token as valid.Remediation
Explicitly enforce the expected algorithm (e.g., RS256 or HS256) during verification. Reject tokens with the `none` algorithm.
Details
Affected Assetapi.tamkeen.sa/v2/*
CVSS Score8.6
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CWECWE-345

