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 Improper Input Validation vulnerabilities in an interactive lesson.
Start learningUpgrade fast-jwt
to version 3.3.2 or higher.
fast-jwt is a Fast JSON Web Token implementation
Affected versions of this package are vulnerable to Improper Input Validation due to improperly prevention of JWT
algorithm confusion for all public key types. To exploit this vulnerability, an attacker needs to craft a malicious JWT
token containing the HS256 algorithm, signed with the public RSA
key of the victim application.
Note:
This attack will only work if the victim application utilizes a public key containing the BEGIN RSA PUBLIC KEY
header.
Change https://github.com/nearform/fast-jwt/blob/master/src/crypto.js#L29
const publicKeyPemMatcher = '-----BEGIN PUBLIC KEY-----'
To be regex:
const publicKeyPemMatcher = /^-----BEGIN( RSA)? PUBLIC KEY-----/