<<< Date Index >>>     <<< Thread Index >>>

MajorSecurity Advisory #31]Xenis.creator CMS - Multiple Cross Site Scripting and SQL Injection Issues



MajorSecurity Advisory #31]Xenis.creator CMS - Multiple Cross Site Scripting 
and SQL Injection Issues

Details
=======
Product: xenis.creator CMS
Security-Risk: high
Remote-Exploit: yes
Vendor-URL: http://www.xenis.cc
Vendor-Status: informed
Advisory-Status: published

Credits
============
Discovered by: David Vieira-Kurz
http://www.majorsecurity.de

Original Advisory:
============
http://www.majorsecurity.de/index_2.php?major_rls=major_rls31

Introduction
============
xenis.creator CMS is a well known content management system.

More Details
============
XSS:
Input passed directly to the "contid" and "search" parameter in "default.asp" 
is not properly sanitised before being returned to the user.
This can be exploited to execute arbitrary HTML and script code in a user's 
browser session in context of an affected site.

SQL injection:
Input passed directly to the "nav", "s" and "print" parameter in "default.asp" 
is not properly sanitised before being used in a SQL query.
This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Fix
===
none known

Solution
=============
Edit the source code to ensure that input is properly sanitised.
You should work with "htmlspecialchars()" or "htmlentities()" php-function to 
ensure that html tags
are not going to be executed. You should also work with the 
"mysql_real_escape_string()" or "addslashes()" php-function to ensure that sql 
statements
can't be delivered over the "get" variables. Further it is recommend to set off 
the "register globals" option in the
"php.ini" on your webserver.

Example:
$pass = htmlentities($_POST['pass']);
$test = htmlspecialchars($_GET('test'));
$id = intval($_POST['id']);
?>

History/Timeline
================
27.10.2006 discovery of the vulnerability
28.10.2006 additional tests with other versions
28.10.2006 contacted the vendor
03.11.2006 advisory is written
04.11.2006 advisory released

MajorSecurity
=======
MajorSecurity is a German penetration testing and hacking security project
which consists of only one person at the present time.
I am looking for a partnership.
You can find more Information on the MajorSecurity Project at
http://www.majorsecurity.de/