Skip to content

Commit

Permalink
Security considerations
Browse files Browse the repository at this point in the history
- addresses parts of #732
- add requirement regarding displaying clickable links
  • Loading branch information
tschmidtb51 committed Aug 26, 2024
1 parent 4a90eeb commit 3f470d3
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ Thus, for security reasons, CSAF producers and consumers SHALL adhere to the fol
* Deeply nested markup can cause a stack overflow in the Markdown processor [cite](#GFMENG).
To reduce this risk, CSAF consumers SHALL use a Markdown processor that is hardened against such attacks.
**Note**: One example is the GitHub fork of the `cmark` Markdown processor [cite](#GFMCMARK).
* To reduce the risk posed by possibly malicious CSAF files that do contain arbitrary HTML (including, for example, javascript: links),
CSAF consumers SHALL either disable HTML processing (for example, by using an option such as the --safe option in the cmark Markdown processor)
* To reduce the risk posed by possibly malicious CSAF files that do contain arbitrary HTML (including, for example, `data:image/svg+xml`),
CSAF consumers SHALL either disable HTML processing (for example, by using an option such as the `--safe` option in the `cmark` Markdown processor)
or run the resulting HTML through an HTML sanitizer.
* To reduce the risk posed by possibly malicious links within a CSAF document (including, for example, `javascript:` links),
CSAF consumers SHALL either make all links non-clickable (for example, by displaying them as standard text)
or make only those clickable that are known to be save (for example, determining that via the media type).
CSAF consumers that are not prepared to deal with the security implications of formatted messages SHALL NOT attempt to
render them and SHALL instead fall back to the corresponding plain text messages. As also any other programming code can
be contained within a CSAF document, CSAF consumers SHALL ensure that none of the values of a CSAF document is run as code.
Expand Down

0 comments on commit 3f470d3

Please sign in to comment.