Azure-Samples / Azure-Samples/microsoft-azure-attestation

Should JKU be verified to protect against JKU injection attacks?

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.