Azure-Samples / Azure-Samples/microsoft-azure-attestation
Should JKU be verified to protect against JKU injection attacks?
- Dominant language
- C
- Stars
- 35
- Forks
- 16
- Avg merge
- 11h 15m
- Merged PRs (30d)
- 2
Description
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?
Contributor guide
Research direction
Start with src/main.cpp around line 71 and trace how the JWT's JKU and issuer are handled. Consult the Azure Attestation behavior relevant to the ISS and JKU relationship. Done should include a concrete prevention example and a clear explanation of whether JKU validation is required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, cpp
- Domain
- authentication, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100