]> git.cameronkatri.com Git - mandoc.git/commit
Security fix:
authorIngo Schwarze <schwarze@openbsd.org>
Wed, 23 Jul 2014 15:00:08 +0000 (15:00 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Wed, 23 Jul 2014 15:00:08 +0000 (15:00 +0000)
commit6f5332923fc94cad0bee91d0c1fa8be521828d5c
tree2e8849fe31297bf03a63cdfed8e5a75d1c933097
parent5958bb58d226401788b8cb09c2a2b93dc28de2d5
Security fix:
After decoding numeric (\N) and one-character (\<, \> etc.)
character escape sequences, do not forget to HTML-encode the
resulting ASCII character.  Malicious manuals were able to smuggle
XSS content by roff-escaping the HTML-special characters they need.
That's a classic bug type in many web applications, actually...  :-(

Found myself while auditing the HTML formatter for safe output handling.
chars.c
html.c