Skip to content

Commit

Permalink
Warn of the dangers of malicious text
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfett committed Oct 8, 2024
1 parent 473d854 commit 40e69cc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions draft-ietf-oauth-sd-jwt-vc.md
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,22 @@ These measures allow the Consumers to continue to function even if
the metadata server is temporarily unavailable and avoid privacy issues as
described in (#privacy-preserving-retrieval-of-type-metadata).

## Risks Associated with Displaying Textual Information {#risks-displaying-textual-information}

The `display` property in the Type Metadata allows providers of metadata to
specify human-readable labels and descriptions for claims. Likewise, `name` and
`description` can contain arbitrary textual information that may be displayed to
developers. As such, any consuming application MUST ensure that maliciously
crafted information cannot be used to compromise the security of the application
or the privacy of the user. To this end, the following considerations apply:

- The consuming application MUST ensure that the text is properly escaped before
displaying it to the user or transferring it into other contexts. For example,
if the data is displayed in an HTML document, the text MUST be properly
escaped to prevent Cross-Site Scripting (XSS) attacks.
- The consuming application MUST ensure that the display of the user interface
elements cannot be distorted by overly long text or special characters.

# Privacy Considerations {#privacy-considerations}

The Privacy Considerations in the SD-JWT specification
Expand Down

0 comments on commit 40e69cc

Please sign in to comment.