- From: Manu Sporny <msporny@digitalbazaar.com>
- Date: Wed, 2 Dec 2020 12:09:32 -0500
- To: public-credentials@w3.org
On 11/30/20 1:43 PM, Orie Steele wrote: > I think detached JWS and JCS can provide a much better experience in > certain scenarios when compared to vanilla JOSE. Yes, agreed, however, there is at least one massive gotcha with JWS+JCS (and JOSE in general) -- you are absolutely not guaranteed to digitally sign the information in the message... just the bytes, which means there are some really nasty attacks that can be achieved in open world ecosystems that choose to use JCS+JWS (such as DIDs and Verifiable Credentials). To put it simply, if someone digitally signs this message: { "source": "https://me.example/me", "destination": "https://you.example/you", "amount": "$14.00" } You have no idea if they mean "source", "destination", and "amount" in the same way that you do. There are a class of security attacks that take advantage of this fact and anyone using JWS+JCS needs to be intimately familiar with that attack surface. History has demonstrated that developers often don't understand those class of attacks, which is why Linked Data Proofs/Signatures were introduced -- to ensure that the developer didn't need to know about cryptography to be protected in all scenarios. While there is nothing inaccurate with what Orie said, folks shouldn't take those statements as "It's totally fine to use JCS over LDS in an open world data model."... because it isn't. :) -- manu -- Manu Sporny - https://www.linkedin.com/in/manusporny/ Founder/CEO - Digital Bazaar, Inc. blog: Veres One Decentralized Identifier Blockchain Launches https://tinyurl.com/veres-one-launches
Received on Wednesday, 2 December 2020 17:09:49 UTC