Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Vuln-Dev
[Top] [All Lists]

SEO borad: SQL injection

Subject: SEO borad: SQL injection
Date: 27 Sep 2005 05:25:35 -0000
 Product: SEO-Board
Version: 1.02
Author: Hristo Hristov
URL: http://seo-board.com
VULNERABILITY CLASS: SQL injection through cookie


[PRODUCT DESCRIPTION]
SEO-Board is a forum software that's fast, free, and search engine friendly.
It is written in PHP and use MySQL database.

[VULNERABILITY]
Vulnerable script: admin.php

--[code]--

if (!isset($_COOKIE[$cookiename]))
die('You must be logged as admin to access the admin panel');

list($user_id, $user_pass_sha1) = 
unserialize(stripslashes($_COOKIE[$cookiename]));
if ($user_id != 1)
die('You must be logged as admin to access the admin panel');
if (!is_numeric($user_id))
die($lang['fatal_error']);
$result = mysql_query("SELECT user_name FROM {$dbpref}users WHERE 
user_id='$user_id' AND

user_pass='$user_pass_sha1'");
if (mysql_num_rows($result) != 1)
die($lang['fatal_error']);
else
$user_name = mysql_result($result, 0);
$admin_panel_link = eval(get_template('adminpanellink'));
--[/code]--

IMPACT:
An attacker can inject SQL statement through cookie. As result anybody can gain 
administrative privelegue.

[BUGFIX]
Upgrade to 1.03 version.

[CREDITS]
RST/GHC
rst.void.ru
www.ghc.ru

<Prev in Thread] Current Thread [Next in Thread>
  • SEO borad: SQL injection, ghc <=