BLUEPAGE CMS - Cross Site Scripting and Session Fixation Issues

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1052214 漏洞类型
发布时间 2009-02-05 更新时间 2009-02-05
CVE编号 CVE-2008-6027
漏洞平台 N/A CVSS评分 N/A
[MajorSecurity Advisory #53]BLUEPAGE CMS - Cross Site Scripting and Session Fixation Issues




Security-Risk: moderated

Remote-Exploit: yes


Vendor-Status: informed

Advisory-Status: published



Discovered by: David Vieira-Kurz

Affected Products:


BLUEPAGE CMS 2.5 and prior

Original Advisory:




BLUEPAGE CMS is an easy to handle content management system.

More Details


1. cross site scripting:


-Input passed directly to the "whl", "var_1" and "search" parameter in "index.php" are 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.

2. session fixation:


The "PHPSESSID" parameter can be set to a malicious and arbitrary value.

3.1 Description:

In a session fixation attack, the attacker fixes the user's session ID before the user even logs into the target server.

After a user's session ID has been fixed, the attacker will wait for them to login.

Once the user does so, the attacker uses the predefined session ID value to assume their online identity.

3.2 PoC:



3.3 Workaround:


1. Do not accept session identifiers from GET / POST variables.

2.Regenerate SID on each request.

3. Accept only server generated SID:

One way to improve security is to not accept session identifiers not generated by server.

if ( !isset( $_SESSION['SERVER_GENERATED_SID'] ) ) {

session_destroy(); // destroy all data in session


session_regenerate_id(); // generate a new session identifier




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

and javascript code are not going to be executed.


$password = htmlentities($_POST['pass']);

$search = htmlspecialchars($_GET['search']);




MajorSecurity is a German penetrationtesting and security research company which focuses

on web application security.

We offer professional penetrationtestings, source code analysis and reliable proof of concepts.

You will find more Information about MajorSecurity at