Azure-Samples / microsoft-azure-attestation

Microsoft Azure Attestation is a solution for attesting Trusted Execution Environments (TEEs)
MIT License
30 stars 17 forks source link

Should JKU be verified to protect against JKU injection attacks? #29

Open justdemon opened 6 months ago

justdemon commented 6 months ago

https://github.com/Azure-Samples/microsoft-azure-attestation/blob/5d34c177f9712f821a82ad7799050bedd7850bae/maa.jwt.verifier/src/main.cpp#L71

Anyone can manipulate the JWT, update the JKU to their own domain, and then sign the JWT with their own key. Can we have an example of how to prevent this type of attack? Does the JKU always use the same domain as the ISS in Azure Attestation?