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]

Re: aspWebCalendar /aspWebAlbum: SQL injection

Subject: Re: aspWebCalendar /aspWebAlbum: SQL injection
Date: Sat, 25 Sep 2004 14:14:03 -0400
It might also be worthy noting that login attempts to aspWebCalendar will
disclose whether or not a username exists.  Since 'admin' is often not a
valid username, an attack can brute force attack the login module to find a
valid username.  At that point the calendar is vulnerability to the
mentioned SQL injection and/or a bruteforce password attack.

Steven
steven@lovebug.org

----- Original Message ----- 
From: "Pedro Sanches" <pedro_sanches@sapo.pt>
To: <bugtraq@securityfocus.com>
Sent: Thursday, September 23, 2004 2:27 PM
Subject: aspWebCalendar /aspWebAlbum: SQL injection




[1]Introduction

"aspWebCalendar is an .asp (Active Server Pages) script that allows you to
easily create an online events calendar that supports multiple users. Easy
installation and usage are the key features of aspWebCalendar. The script
contains a text file with a few configuration variables that are used by the
script... Just change one of these variables, upload the files and you are
up and running."

"aspWebAlbum is an .asp (Active Server Pages) script that allows you to
easily create an online photo album or gallery simply by uploading images to
your server... the script will do the rest. Easy installation and usage are
the key features of aspWebAlbum. The script contains a text file with
several configuration variables that are used by the script... just change
two of these and you are up and running. To add images simply upload them to
your server, its that simple."

This information was taken from http://www.jancw.dk/ but the vendor of this
software is Full Revolution and the website can be found at
www.fullrevolution.com


[2]The Problem

These two can run on SQL or Access databases, both coming right from the
box, and those who use the default sql file are vulnerable to injection,
alowing, f.e., an attacker to view the table contents by reading the asp
error messages.

(1) For the aspWebCalendar, in the login pages:

"www.example.com/album.asp?action=login"

you can put this in the username field (leaving the password blank) to
extract the password for the 'admin' user, if it exists:

"  ' union select Cal_User_Password,1,1,1,1,1,1,1,1,1 from Cal_User where
Cal_User_UserName = 'admin'--  "


  (1.1) the 'eventid' field is vulnerable to sql injection too:
"www.example.com/calendar.asp?action=eventdetail&eventid='"



(2) For the aspWebAlbum, the login pages can be found at
"www.example.com/calendar.asp?action=login" and the problem is the same
(i'll use the same example as above) :

"' union select Gal_UserPassword,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from
Gal_Users where Gal_UserUserName = 'admin' --"


(2.2) The 'cat' field is also a problem in this example:
     "www.example.com/album.asp?cat='"


At the moment all the SQL versions of this software seem to be affected.


[3]Timeline

(28/8/2004) vuln discovered
(29/8/2004) short note posted at johnny.ihackstuff.com forums
(15/9/2004) vendor notified, still no reply


[4]Feedback

cybercide@megamail.pt

(This is my first vulnerability disclosure so if there's a mistake here
don't hurt me too much :-) )

<Prev in Thread] Current Thread [Next in Thread>