You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1.1/openid-4-verifiable-presentations-1_1.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1832,7 +1832,7 @@ While breaking changes to the specifications referenced in this specification ar
1832
1832
1833
1833
The security properties of the OpenID for Verifiable Credentials family of specifications have been formally analyzed, see [@secanalysis.openid4vc].
1834
1834
1835
-
## Preventing Replay of Verifiable Presentations {#preventing-replay}
1835
+
## Preventing Replay of Verifiable Presentations {#preventing-replay}
1836
1836
1837
1837
An attacker could try to inject Presentations obtained from (for example) a previous Authorization Response into another Authorization Response, thus impersonating the End-User that originally presented the respective Verifiable Presentation. Holder Binding aims to prevent such attacks.
1838
1838
@@ -1983,6 +1983,15 @@ these constraints. The Wallet is not controlled by the Verifier and the Verifier
1983
1983
MUST perform its own security checks on the returned Credentials and
1984
1984
Presentations.
1985
1985
1986
+
## Parsing of untrusted inputs
1987
+
1988
+
Wallets MUST treat all incoming requests as untrusted input. To mitigate injection and resource exhaustion attacks, Wallets MUST implement input validation on the Authorization Request and its enclosed DCQL query.
1989
+
1990
+
Wallets SHOULD implement the following steps:
1991
+
1992
+
* Enforce input validation: Verify that the Authorization Request and DCQL query contain no malformed properties. Unknown parameters MUST be ignored.
1993
+
* Apply resource limits: Enforce maximum length restrictions on strings, maximum depths for nested objects, and maximum item counts for arrays within the query.
0 commit comments