Proposal: add requirements to verify correct implementation of OAuth PAR and JAR
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- authentication, authorization, security
Research direction
Start by reading 5.0/en/0x19-V10-OAuth-and-OIDC.md, especially requirements 10.4.12 and 10.4.15, then compare the proposal with RFC 9126 and RFC 9101. Check whether requirement 15.3.7 already covers parameter overriding. Done means the needed PAR and JAR verification requirements are agreed and added with accurate scope and references.
Written by the indexing model from the issue text.
Description
Currently, ASVS v5.0 recommends the use of Pushed Authorization Requests (PAR) or JWT-Secured Authorization Requests (JAR) in two Level 3 requirements:
But, there are no verification requirements to ensure these are implemented correctly.
I think these requirements might be good to add:
-
Verify that when PAR is used, the authorization server binds each request_uri to the client_id of the client that created it. A request_uri issued for one client must be rejected when presented by a different client.
RFC 9126 says: "The request_uri value MUST be bound to the client that posted the authorization request."
-
Verify that when PAR is used, the authorization server treats request_uri values as one-time use and rejects expired request_uri values. The lifetime of the request_uri (expires_in) must be short, typically ≤ 90 seconds and must not exceed 600 seconds.
RFC 9126 says "An attacker could replay a request URI captured from a legitimate authorization request. In order to cope with such attacks, the authorization server SHOULD make the request URIs one-time use."
-
Verify that when JAR is used, the authorization server requires a unique jti claim in the request object and enforces replay protection by rejecting previously used jti values within the object's validity period. Verify that the request object contains an exp claim with a short lifetime.
No direct RFC or OIDC FAPI requirements, but replay protection and short lifetime is critical whenever the request object contains security-sensitive or dynamic parameters that should not be reusable. like authorization_details param, or custom parameters that carry session context or change the effective authentication/authorization level of an already-authenticated user.
-
Verify that when JAR is used (standalone or inside PAR), the client_id value in the authorization request query parameter exactly matches the client_id claim inside the signed request object.
RFC 9101 says "The client ID values in the client_id request parameter and in the Request Object client_id claim MUST be identical."
-
Verify that when PAR or JAR is used, the authorization server does not allow query string parameters on the /authorize endpoint to override values contained in the pushed request or request object. The server must only use parameters from the request object / pushed data.
RFC 9101 says for JAR "The authorization server MUST extract the set of authorization request parameters from the Request Object value. The authorization server MUST only use the parameters in the Request Object, even if the same parameter is provided in the query parameter." IMO, same applies to PAR too. Or does 15.3.7 already cover this? I think this is still specific enough to warrant its own requirement.
Thoughts?
- Dominant language
- HTML
- Stars
- 3.9k
- Forks
- 865
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 19
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OWASP/ASVS
-
Crypto appendix: fix title "Post-Quantum Encryption Standards"May be free again A pull request for this issue was closed without being merged. OpenAppendix C
Difficulty 1/5 Under an hour Newbie friendliness 85/100
OWASP/ASVS#3468 · 3 comments ·
Maintainers usually reply within 1 day
-
Crypto appendix: fix notations wrt RSAPossibly taken @randomstuff claimed this 1 day ago. Open1) Discussion ongoing Appendix C V11 (prev V6)
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OWASP/ASVS#3467 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
v5.0.0 4.2.1 cites RFC 2616, which is obsolete; RFC 9112 section 6.3 words the rule differentlyOpenV4 (prev V13) WG wanted
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
V6 (prev V2)
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OWASP/ASVS#3433 · 4 comments ·
Maintainers usually reply within 1 day
-
Update proposal for v5.0.0-3.3.1 and v5.0.0-3.3.3 to cover __Host-Http- and __Http- cookie name prefixesMay be free again A pull request for this issue was closed without being merged. Open1) Discussion ongoing V3 (prev V50)
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OWASP/ASVS#3429 · 7 comments ·
Maintainers usually reply within 1 day
Similar issues
-
documentation good first issue help wanted security
Difficulty 2/5 Half a day Newbie friendliness 74/100
Haseeb-MernStack/commune#607 ·
Maintainers usually reply within 1 day
-
mcpx scan: flag unsafe tool namesPossibly taken @zeyadbadawyy claimed this today. Openarea/scan enhancement good first issue priority/medium size/small
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rohitgollarahalli/mcpx#45 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
JGeek00/adguard-home-manager#189 ·