what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

IDIC Blogs Shell Upload

IDIC Blogs Shell Upload
Posted Nov 12, 2012
Authored by cr4wl3r

IDIC Blogs suffers from a remote shell upload vulnerability.

tags | exploit, remote, shell
SHA-256 | ad459bc9dc2ccd4b884ec45eb321463f3f3eb6e1a2b1676758c7eb846beeae6d

IDIC Blogs Shell Upload

Change Mirror Download
                            \#'#/
(-.-)
--------------------oOO---(_)---OOo----------------------
| IDIC Blogs Arbitrary File Upload Vulnerability |
---------------------------------------------------------
[!] Discovered: cr4wl3r <cr4wl3r[!]linuxmail.org>
[!] Site: http://0xuht.org
[!] Download: http://sourceforge.net/projects/idicblogs/files/
[!] Version: -
[!] Date: 12.11.2012
[!] Remote: yes
[!] Tested: Ubuntu
[!] Reference: http://0xuht.org/Exploit/idic-blog.txt

[!] Details:
By issuing a POST request with a webshell
embedded in a JPEG or PJPEG image it is possible to upload


[!] Vulnerability Code [picture_upload.php] :

<?
} elseif (isset($_POST['subpage']) && $_POST['subpage'] == 'upload') {

$idir="./members_orgimage/";
$string = md5(rand(0,9999));
$harland = substr($string, 17, 5);

$url = $_FILES['imagefile']['name']; /* Set $url To Equal The Filename For Later Use */
if ($_FILES['imagefile']['type'] == "image/jpg" || $_FILES['imagefile']['type'] == "image/jpeg" || $_FILES['imagefile']['type'] == "image/pjpeg") {

// $file_ext = strrchr($_FILES['imagefile']['name'], '.');
// $file_ext = strrchr($_FILES['imagefile']['name'], ".");
$file_ext = strtolower(substr(strrchr($_FILES['imagefile']['name'], "."), 1));

/* Get The File Extention In The Format Of , For Instance, .jpg, .gif or .php */
$copy = copy($_FILES['imagefile']['tmp_name'], "$idir" . $_FILES['imagefile']['name']);
/* Move Image From Temporary Location To Permanent Location */
if ($copy) {
$newimage = "$harland-$url";

cropImage("50", "50", "./members_orgimage/$url", "jpg", "./members_thumbs/$newimage");

$query = mysql_query("UPDATE blogssmembers SET picname='$newimage' WHERE username='$ses_bloguser'") or die (mysql_error());
$result = mysql_query($query);

$es = 'Image uploaded successfully.<br />';
}else{
$es = 'ERROR: Unable to upload image<br />';
}
} else {
$es = 'ERROR: Wrong filetype (has to be a .jpg or .jpeg.)<br />';
}
}
if($es){
?>


[!] PoC (Piye om Carane):

[IDIC_Blogs]/picture_upload.php

[!] Shell:

[IDIC_Blogs]//members_orgimage/shell.php.pjpeg

[!] Demo:

http://0xuht.org/demo/idic-blog1.png
http://0xuht.org/demo/idic-blog2.png

[!] Thanks: packetstormsecurity

// Gorontalo [2012-11-12]
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    0 Files
  • 17
    Apr 17th
    0 Files
  • 18
    Apr 18th
    0 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close