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:

August 2024

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