Add a note to the spec that terminals must sanitize identifiers

This commit is contained in:
Kovid Goyal 2024-08-03 13:51:23 +05:30
parent bd8162fa42
commit 0a895f153e
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -532,3 +532,10 @@ Any string consisting solely of characters from the set ``[a-zA-Z0-9_-+.]``,
that is, the letters ``a-z``, ``A-Z``, the underscore, the hyphen, the plus
sign and the period. Applications should make these globally unique, like a
UUID for maximum robustness.
.. important::
Terminals **must** sanitize ids received from client programs before sending
them back in responses, to mitigate input injection based attacks. That is, they must
either reject ids containing characters not from the above set, or remove
bad characters when reading ids sent to them.