]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
HTML-escape error messages (OVE-20160505-0012)
authorSimon McVittie <smcv@debian.org>
Wed, 4 May 2016 07:46:02 +0000 (08:46 +0100)
committerSimon McVittie <smcv@debian.org>
Thu, 5 May 2016 22:44:31 +0000 (23:44 +0100)
commit3a72fd87c7214a508b67ac8dc3567a427240c9c8
treeab412432fb26c555828739de8788e0a14cc42047
parent3badfb87141571c0219865360a93202048b0614c
HTML-escape error messages (OVE-20160505-0012)

The instance in cgierror() is a potential cross-site scripting attack,
because an attacker could conceivably cause some module to raise an
exception that includes attacker-supplied HTML in its message, for
example via a crafted filename. (OVE-20160505-0012)

The instances in preprocess() is just correctness. It is not a
cross-site scripting attack, because an attacker could equally well
write the desired HTML themselves; the sanitize hook is what
protects us from cross-site scripting here.
IkiWiki.pm
IkiWiki/CGI.pm