SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
Note

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

Home arrow SecurityAlert Database

Arrow  Topic :

WebSpell > 4.0 Authentication Bypass and arbitrary code execution


Arrow  SecurityAlert : 2337
Arrow  CVE : CVE-2007-1154
Arrow  CVE : CVE-2007-1160
Arrow  CVE : CVE-2007-1155
Arrow  SecurityRisk : Medium  Security Risk Medium  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : No
Arrow  Exploit Available : Yes
Arrow  Credit : Robin Verton
Arrow  Published : 07.03.2007

Arrow  Affected Software : WebSpell > 4.0



Arrow  Advisory Content :  

WebSpell Authentication Bypass and arbitrary code execution

Vendor : WebSpell
URL : http://www.webspell.org/
Version : All
Risk : SQL Injection, unchecked file upload

Description:
webSPELL is a free Content Management System (CMS) for clans and gaming
communities, providing all needed features like forums,
gallery, clanwar system. Because of some serious flaws in the login and
cookie-handling function, login can be easily bypassed and
arbitrary php code executed via uploading a php file.
Notes: magic_quotes_gpc() has to be set OFF

Details:
Due to an SQL Injection via the sended 'ws_auth' cookie, WebSpell is
vulnerable to an Authentication Bypass.

$login_per_cookie = false;

if(isset($_COOKIE['ws_auth']) AND !isset($_SESSION['ws_auth'])) {

$login_per_cookie = true;

$_SESSION['ws_auth'] = $_COOKIE['ws_auth'];

}

systeminc('login');

[...]

if(stristr($_SESSION['ws_auth'], "userid")===FALSE){

$authent = explode(":", $_SESSION['ws_auth']);

$ws_user = $authent[0];

$ws_pwd = $authent[1];

$check = safe_query("SELECT userID FROM ".PREFIX."user WHERE
userID='$ws_user' AND password='$ws_pwd'");

while($ds=mysql_fetch_array($check)) {

$loggedin=true;

$userID=$ds['userID'];

}
}

As seen in the above codee, the Cookie 'ws_auth' is divided into two parts:
The userid and the password.
With the following cookie you can bypass this function and login as
admin(userid 1):

1;' OR '1'='1

When 'logged in' an PHP-file with arbitrary code can be uploaded via the
"add squad" feature.

Solution:
Use mysql_real_escape_String() or addslashes() for the safe_query()

Credits:
Robin Verton < r.verton at gmail com>





Arrow  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

libopie __readrec() off-by-one

Security Risk Medium- 2010-04-23

This advisory is related to new FreeBSD advisory FreeBSD-SA-10:05.opie.

Apache RSS Apache Alert

» Apache ActiveMQ 5.4.0
   source code disclosure
   vulnerability

» Apache ActiveMQ 5.3.0
   Persistent Cross-Site
   Scripting

» Apache CouchDB 0.10.1
   Timing Attack
   Vulnerability

» Apache 1.3.41 mod_proxy
   Integer overflow (code
   execution)

PHP RSS PHP Alert

» PHP 5.2.12/5.3.1
   session.save_path
   safe_mode and
   open_basedir bypass

» PHP 5.2.12/5.3.1 Multiple
   Vulnerabilities

» PHP 5.2.11 libgd multiple
   vulnerabilities

» PHP 5.2.11 tempnam()
   safe_mode bypass

Copyright © SecurityReason.com. All Rights Reserved.