Holder can generate proof of ownership for credentials it does not control in vp-toolkit
High severity
GitHub Reviewed
Published
Mar 6, 2020
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Reviewed
Feb 28, 2020
Published to the GitHub Advisory Database
Mar 6, 2020
Last updated
Jan 9, 2023
Impact
The
verifyVerifiablePresentation()
method check the cryptographic integrity of the Verifiable Presentation, but it does not check if thecredentialSubject.id
DID matches the signer of the VP proof.The verifier is impacted by this vulnerability.
Patches
Patch will be available in version 0.2.2.
Workarounds
verifiablePresentation.proof.n.verificationMethod
usinggetAddressFromPubKey()
fromcrypt-util@0.1.5
and match it with thecredentialSubject.id
address from the credential.References
Github issue
For more information
If you have any questions or comments about this advisory:
References