CastleCops, Internet Crime Fighters
Need help? Click here to register for free! Absolutely zero advertisements on this site!

$9736.22 of $21422.68
left sidedonated so farneed $11686.46 donated to reach our goalright side, our goal
Help CastleCops serve the community on new servers, Donate Here to reach our goal.

Donation/Premium
spacer
block bottom
Security Central
spacer
· Home
· PIRT/Fried Phish
· MIRT
· SIRT
· Deutsch
· Wiki
· Newsletter
· O16/ActiveX
· CLSID List
· Contest2007
· Downloads
· Feedback (send)
· Forums
· HijackThis
· Hijacktrend
· LSPs
· My Downloads
· O18
· O20
· O21
· O22
· O23
· O9
· Premium
· Private Messages
· Proxomitron
· Reviews
· Search
· StartupList
· Stories Archive
· Submit News
· WsIRT
· Your Account
· Acceptable Use Policy
block bottom
Survey
spacer
Was 2007 a good year?

Yes it was a wonderful year
Yes, but there is always room for improvement
Status quo
It was a challenge
Other (leave comment)



Results
Polls

Votes: 949
Comments: 28
block bottom
spacer spacer
image Vulnerabilities: PHP-Nuke Referer Hijacking image
PHP-Nuke
Francisco Burzi, the author of PHP-Nuke, was advised about this a couple weeks ago. So please also take this into consideration on your current site as well.

Basically there is no check on the $referer variable when inserted into the backend database. This could allow attackers to hijack the administrator's cookie that contains login and password information.

The fix should be applied to the next release of PHP-Nuke (either the current RC3 or next). The exact coding may vary pending on your version of PHP-Nuke, but look for this around line 24 of "index.php":

$referer = getenv("HTTP_REFERER");

Immediately after this line of code, add the following security filter:

$referer = htmlspecialchars(strip_tags($referer));

This will strip away those nasty Javascript tags that can currently hijack an administrators cookie when viewing the list of referers via the Admin panel in PHP-Nuke.

Again if the line of code above to find doesn't match, it may look something like this too:

$referer = $_SERVER['HTTP_REFERER'];

If that is the line you have then again, add the following line of code immediately after it:

$referer = htmlspecialchars(strip_tags($referer));

This may not only apply to PHP-Nuke as most developers tend not to think of protecting this kind of variable. So check all your web applications.

One such application that shows a list of referer's on a PHP-Nuke site is developed by Nuke Styles called MS-Analysis. No testing of this application has been done, but there may be a risk in hijacking regular user cookies if the index.php file is left unpatched. Example of MS-Analysis:

http://www.nukestyles.com/modules.php?name=MS_Analysis

Source
Posted on Monday, 17 March 2003 @ 07:49:10 UTC by Paul (6748 reads)
[ Trackback ]
image

"Vulnerabilities: PHP-Nuke Referer Hijacking" | Login/Create an Account | 0 comments
Threshold
The comments are owned by the poster. We aren't responsible for their content.

No Comments Allowed for Anonymous, please register
 
Login
spacer
Nickname

Password

Security Code: Type Security Code: Usage signifies AUP acceptance
· New User? · Click here to create a registered account.
block bottom
Related Links
spacer
· del.icio.us!
· digg it!
· reddit!
· TrackBack (0)
· PHP HomePage
· PHP-Nuke
· HotScripts
· W3 Consortium
· HTML Standard
· More about PHP-Nuke
· News by Paul


Most read story about PHP-Nuke:
PHP-Nuke Referer Hijacking

block bottom
Article Rating
spacer
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Bad
Regular
Good
Very Good
Excellent


block bottom
Options
spacer

Printer Friendly Page  Printer Friendly Page

block bottom
spacer spacer