Lucene search
K

PHP Login Script v 2.3 SQL Injection vulnerability

🗓️ 23 Jul 2010 00:00:00Reported by pimpimType 
zdt
 zdt
🔗 0day.today👁 219 Views

PHP Login Script v 2.3 SQL Injection vulnerability in logout functio

Code
==================================================
PHP Login Script v 2.3 SQL Injection vulnerability
==================================================

# Exploit Title: PHP Login Script v 2.3 SQL Injection vulnerability.
# Date: 23/7 2010
# Author: pimpim - [email protected]
# Software Link: http://php-login-script.com/php_login_v2.3.zip
# Version: 2.3
# Google dork : intext:"Powered by PHP Login Script"
# Platform / Tested on: Ubuntu Linux
# Category: webapps/0day
# Vulnerable code: 

dbc.php lines 245-249, function logout()
-----------------------
if(isset($_SESSION['user_id']) || isset($_COOKIE['user_id'])) {
mysql_query("update `users` 
			set `ckey`= '', `ctime`= '' 
			where `id`='$_SESSION[user_id]' OR  `id` = '$_COOKIE[user_id]'") or die(mysql_error());
}
-----------------------

logout.php
-----------------------
<?php
include 'dbc.php';
logout();
?> 
-----------------------

Set cookie to "user_id='[SQL]", and go to http://site.com/logout.php



#  0day.today [2018-03-12]  #

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

23 Jul 2010 00:00Current
7.1High risk
Vulners AI Score7.1
219