Wiki source code of Application_MoinMoin

Last modified by Nicolas Gregoire on 2012/01/29 17:56

Show last authors
1 {{toc/}}
3 = Introduction =
5 Dixit [[Wikipedia>>||rel="__blank"]], "//MoinMoin is a wiki engine implemented in Python, initially based on the PikiPiki wiki engine. The MoinMoin code is licensed under the GNU General Public License v2, or (at the user's option) any later version (except some 3rd party modules that are licensed under other Free Software licenses compatible with the GPL). A number of organizations use MoinMoin to run public wikis, including notable free software projects Ubuntu, Apache, Debian, FreeBSD, and others.//"
7 = Vulnerabilities =
9 By default, the 'allow_xslt' configuration option is set to False. __If__ this option is set to True, then "read/write/overwrite arbitrary path/file as the moin process uid/gidarbitrary" is possible. These bugs are triggered by inserting then displaying wiki pages containing XSLT code.
12 This behavior was documented between versions 1.9.3 (June 2010) and 1.9.4 (should be released soon) : [[MoinMoin security page>>||rel="__blank"]], [[commit>>||rel="__blank"]].
14 = File disclosure =
16 Using a XML External Entity attack, it is possible to read text files ([[PoC>>attach:XsltReadFile]]).
18 __Note__ : I was unable to abuse the doc-as-string() extension function because of the MoinMoin URL Resolver. However, I didn't spend much time on it, given that a XEE vulnerability was already found.
20 = File creation =
22 As described on the [[4Suite>>Engine_4Suite]] page, the <exsl:document> extension element allows file creation ([[PoC>>attach:XsltCreateFile]]).
24 = Self-referencing PoC =
26 The two attached PoC are used as both XML data and XSLT code ([[Homoiconicity>>Homoiconicity]] !). If you upload them with an other name, you __must__ modify accordingly <?xml-stylesheet href="XXXX" type="text/xml"?>.


Welcome on the XSLT Hacking Encyclopedia !

You may be interested by the Engines and Applications pages.

Link to the blog
Twitter: @Agarri_FR

Tag Cloud

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xhe:XWiki.TagCloud]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Content by Nicolas Grégoire / Agarri
Blog - Follow me @Agarri_FR