Vulnerability library
Security checkSeptember 11, 2023

RSA signature validation vulnerability on maleable encoded message in jsrsasign

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmjsrsasign

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Vulnerable jsrsasign will accept RSA signature with improper PKCS#1.5 padding. Decoded RSA signature value consists following form: 01(ff...(8 or more ffs)...ff)00[ASN.1 OF DigestInfo] Its byte length must be the same as RSA key length, however such checking was not sufficient.

To make crafted message for practical attack is very hard.

Recommendation

Update the jsrsasign package to the latest compatible version. Followings are version details:

  • Affected version(s): < 10.2.0
  • Patched version(s): 10.2.0

References

Could your website be exposed too?

SmartScanner can check your website for RSA signature validation vulnerability on maleable encoded message in jsrsasign and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 11, 2023