|
|
|
|
|
by _Marak_
2928 days ago
|
|
Would you be able to elaborate on this? Why is doing "in-line" signatures a worse design or a source of vulnerabilities? Are there any benefits for providing an in-line signature? Any examples or additional information would be appreciated. Trying to better understand the issue at hand. |
|
- in-line signature: you're applying your parser and serializer to the untrusted body of the message, and then verifying the signature. If this is a malicious payload, you've just run it through your parser and serialzer.
- out-of-message signature: you have the full signature and can verify the message without running a potentially-malicious message through anything other than your signature-verification code.