Security fix to prevent XSS attacks:
authorschwarze <schwarze@openbsd.org>
Tue, 22 Jul 2014 18:14:05 +0000 (18:14 +0000)
committerschwarze <schwarze@openbsd.org>
Tue, 22 Jul 2014 18:14:05 +0000 (18:14 +0000)
commitcf3a545c474d437bdc0fdecc2dd1c48d35f3f18b
tree0e4f0570b7280cd8d8a890840d57687ab25b2b54
parentfbd2cde0ea0ee9ba9449588ea87fc58cbe0f4723
Security fix to prevent XSS attacks:
Restrict the character set of strings passed into html_alloc(),
in particular architecture names that come from the QUERY_STRING,
but also SCRIPT_NAME and manpath.conf content for additional safety,
and bail out safely on violations.
Issue reported by Sebastien Marie <semarie-openbsd at latrappe dot fr>.
usr.bin/mandoc/cgi.c
usr.bin/mandoc/man.cgi.8