Hack Forums
Is it possible to execute dirty cow through a php script? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Whitehat • Blue Team • Defensive Security (https://hackforums.net/forumdisplay.php?fid=448)
+---- Forum: Pentesting and Forensics (https://hackforums.net/forumdisplay.php?fid=231)
+---- Thread: Is it possible to execute dirty cow through a php script? (/showthread.php?tid=5471019)



Is it possible to execute dirty cow through a php script? - Zoidberg - Nov 21, 2016

I was wondering if, given allowing server configuration and unpatched kernel, then it might be possible to get root from a file upload attack vector. Has anyone thought about this? I've got a good experience with PHP but not in terms of something like this.

Or even, if you can upload file to server but don't have root access, given improper permissions php could unload a zip with the payload, then execute a script that gains root and from there it could do whatever the fuck it wanted to.

I'm simply wondering if this is possible, I have no intent on doing this in the wild


* - Phizo - Nov 21, 2016

Yes of course you can. Why would you expect otherwise?


* - Malicious Intent - Nov 21, 2016

Check this thread mate https://hackforums.net/showthread.php?tid=5464754
It was a challange by Royalty. The site is down now but if you check the last posts i belive exploit.c posted the php this site was sporting.
If it's not there anymore hit me up, I have a copy of that for training purposes.


* - ThatGuy126 - Nov 23, 2016

Might want to make sure you have written permission and check to make sure your IT teacher has the ability to give such permission.


sorry im in the wrong thread. drinking...