microsoft / VerifiableCredentials-Verification-SDK-Typescript

An SDK to help Relying Parties manages their Decentralized Identities and Verifiable Credentials.
MIT License
53 stars 14 forks source link

Fix VC forgery bug #136

Closed gproanomsft closed 3 years ago

gproanomsft commented 3 years ago

Problem: VC SDK allows the iss claim of a VC JWT to be different than the did which signed the token, allowing for forged VCs to be accepted

Solution: Enforce that iss and the did in the kid property of the header are the same

Validation: Added new unit tests

Type of change:

Risk: