Third-party blocks can be generated without transferring the whole token to the third-party authority. Instead, a ThirdPartyBlock request can be sent, providing only the necessary info to generate a third-party block and to sign it:
A third-part block request forged by a malicious user can trick the third-party authority into generating datalog trusting the wrong keypair.
Consider the following example (nominal case)
A emits the following token: check if thirdparty("b") trusting ${pubkeyB}BB generates the following third-party block thirdparty("b"); check if thirdparty("c") trusting ${pubkeyC}C to be able to use the tokenNow, with a malicious user:
A emits the following token: check if thirdparty("b") trusting ${pubkeyB}thirdparty("c"), signed with a keypair pubkeyD, privkeyD) they generateThirdPartyBlockRequest publicKeys field and replace pubkeyD with pubkeyCB generates the following third-party block thirdparty("b"); check if thirdparty("c") trusting ${pubkeyC}thirdparty("b"); check if thirdparty("c") trusting ${pubkeyD}C.Tokens with third-party blocks containing trusted annotations generated through a third party block request
{
"cwe_ids": [
"CWE-269"
],
"github_reviewed": true,
"github_reviewed_at": "2024-07-31T21:15:41Z",
"nvd_published_at": "2024-08-01T22:15:28Z",
"severity": "LOW"
}