LinuxSecurity.com
Share your story
The central voice for Linux and Open Source security news
Home News Topics Advisories HOWTOs Features Newsletters About Register

Welcome!
Sign up!
EnGarde Community
Login
Polls
What is the most important Linux security technology?
 
Advisories
Community
Linux Events
Linux User Groups
Link to Us
Security Center
Book Reviews
Security Dictionary
Security Tips
SELinux
White Papers
Featured Blogs
All About Linux
DanWalsh LiveJournal
Securitydistro
Latest Newsletters
Linux Advisory Watch: October 24th, 2014
Linux Security Week: October 20th, 2014
Subscribe
LinuxSecurity Newsletters
E-mail:
Choose Lists:
About our Newsletters
RSS Feeds
Get the LinuxSecurity news you want faster with RSS
Powered By

  
PHP-Nuke & Post-Nuke Account Hijacking Print E-mail
User Rating:      How can I rate this item?
Source: Handle Nopman - Posted by Dave Wreski   
Security Projects To exploit this vulnerability one must create an account into the target site, base64_decode his cookie,modify the username in the cookie to inject SQL,base64_encode his cookie and pass it with save=1 to article.php (which must be done throught modules.php). . . To exploit this vulnerability one must create an account into the target site, base64_decode his cookie,modify the username in the cookie to inject SQL,base64_encode his cookie and pass it with save=1 to article.php (which must be done throught modules.php)
 Date: Sun, 17 Mar 2002 23:56:57 +0800 From: Handle Nopman  To: bugtraq@securityfocus.com Subject: PHP-Nuke & Post-Nuke account hijacking.  Hi all BugTraq readers!  I've found a bug in PHP-Nuke and Post-Nuke that allows one to hijack other accounts.  Code in modules/News/article.php: if ($save AND is_user($user)) {     cookiedecode($user);     sql_query("update ".$user_prefix."_users set umode='$mode',  uorder='$order', thold='$thold' where uid='$cookie[0]'", $dbi);     getusrinfo($user);     $info = base64_encode("$userinfo[uid]:$userinfo[uname]:$userinfo[pass]: $userinfo[storynum]:$userinfo[umode]:$userinfo[uorder]:$userinfo[thold]: $userinfo[noscore]");     setcookie("user","$info",time()+$cookieusrtime); }  This code snippet cheks if user is logged in and allows he to change his mode,order and thold, then the code sends the cookie back with modified data.  There is a bug. Code checks if user is logged in by is_user, but it uses getusrinfo to send the data back. Function is_user verifies the cookie by checking that UID and password match, but getusrinfo gets the data by using USERNAME and password and the getusrinfo uses insecure SQL call.  So by specifying valid UID and PASSWORD combination one can get round the is_user check and his username is passed without any verification to insecure SQL call. By specifying specially crafted username one can fool the SQL call to return another users data.  To exploit this vulnerability one must create an account into the target site, base64_decode his cookie,modify the username in the cookie to inject SQL,base64_encode his cookie and pass it with save=1 to article.php (which must be done throught modules.php)  Post-Nuke is vulnerable to this too.  Vendor Status I contacted Francisco Burzi over 2 weeks ago and he did not reply. I delayed the relase because I found out that Post-Nuke has this bug too. I contacted authors of Post-Nuke and they replyed almost immediatly and a fixed version is now available.  Post-Nuke users should upgrade to the most recent version.  Best Regards, "NopMan" --   Powered by Outblaze 

Only registered users can write comments.
Please login or register.

Powered by AkoComment!

 
< Prev   Next >
    
Partner

 

Latest Features
Peter Smith Releases Linux Network Security Online
Securing a Linux Web Server
Password guessing with Medusa 2.0
Password guessing as an attack vector
Squid and Digest Authentication
Squid and Basic Authentication
Demystifying the Chinese Hacking Industry: Earning 6 Million a Night
Free Online security course (LearnSIA) - A Call for Help
What You Need to Know About Linux Rootkits
Review: A Practical Guide to Fedora and Red Hat Enterprise Linux - Fifth Edition
Yesterday's Edition
Disaster as CryptoWall encrypts US firm's entire server installation
Now Everyone Wants to Sell You a Magical Anonymity Router. Choose Wisely
Partner Sponsor

Community | HOWTOs | Blogs | Features | Book Reviews | Networking
 Security Projects |  Latest News |  Newsletters |  SELinux |  Privacy |  Home
 Hardening |   About Us |   Advertise |   Legal Notice |   RSS |   Guardian Digital
(c)Copyright 2014 Guardian Digital, Inc. All rights reserved.