]> sipb.mit.edu Git - ikiwiki.git/commitdiff
security and comments
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 1 Dec 2009 21:04:18 +0000 (16:04 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 1 Dec 2009 21:08:21 +0000 (16:08 -0500)
doc/plugins/contrib/xslt/discussion.mdwn [new file with mode: 0644]

diff --git a/doc/plugins/contrib/xslt/discussion.mdwn b/doc/plugins/contrib/xslt/discussion.mdwn
new file mode 100644 (file)
index 0000000..a549681
--- /dev/null
@@ -0,0 +1,16 @@
+## security
+
+I'm curious what the security implications of having this plugin on a
+publically writable wiki are.
+
+First, it looks like the way it looks up the stylesheet file will happily
+use a regular .mdwn wiki page as the stylsheet. Which means any user can
+create a stylesheet and have it be used, without needing permission to
+upload arbitrary files. That probably needs to be fixed; one way would be
+to mandate that the `srcfile` has a `.xsl` extension.
+
+Secondly, if an attacker is able to upload a stylesheet file somehow, could
+this be used to attack the server where it is built? I know that xslt is
+really a full programming language, so I assume at least DOS attacks are
+possible. Can it also read other arbitrary files, run other programs, etc?
+--[[Joey]]