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 Web-App-Sec
[Top] [All Lists]

Re: Script Based Attacks & Form Hacks

Subject: Re: Script Based Attacks & Form Hacks
Date: Thu, 21 Jul 2005 17:44:44 -0700
Hello Chad,

I would like divide the script based attacks in two categories:

1) Directly making a GET request to a form processor from a script.
2) Using a automated tool (e.g. AutoIt) to replay the same actions
indefinitely (e.g. Launch browser -> Open URL -> File in text -> Click
on submit button etc)

Here are my thoughts on each of the above 2 categories:

1) This type of attack can easily be foiled using:
a) POST method instead of GET. 
b) adding Tokens to your forms.  For a detailed description of Tokens
visit: http://shiflett.org/articles/foiling-cross-site-attacks

2) This type are a little harder to foil. However not impossible. For
external facing applications, I always send an email for
validation/verification. Till the user authenticates his/her address,
I keep the form data in a temporary table. The enteries in the temp
table have a life time of 1 hour, after that they get deleted. Also
make the email address / IP address the primary key in your temp
table. This will prevent one single machine from filling up the temp
table. It would have to be DDOS attack to fill up the TEMP table. But
then again, I set a max limit on the number of entries in the temp
table.


One thing I have not heard any one discuss is the use of automated
scripts and form hacking. I could easily write a Java program to
attack any ASP,JSP,PHP etc.. simply by viewing the page source to find
the parameters the form processor will be looking for. You could use
this to fill up some ones database with garbage bring the server to a
standstill or worse yet bypass all the fancy javascript you had on the
calling page. Some web applications actually use javascript to
calcualte currency transactions.

-- 
In Peace,
Saqib Ali
http://www.xml-dev.com/blog/

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