19.04.2013 Views

2KKUU7ita

2KKUU7ita

2KKUU7ita

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

296<br />

Part V: Hacking Applications<br />

Figure 14-10:<br />

The URL<br />

returns a<br />

different<br />

error when<br />

an invalid<br />

password is<br />

entered.<br />

In either case, this is bad news because the application is telling you not only<br />

which parameter is invalid, but also which one is valid. This means that malicious<br />

attackers now know a good username or password — their workload<br />

has been cut in half! If they know the username (which usually is easier to<br />

guess), they can simply write a script to automate the password-cracking<br />

process, and vice versa.<br />

You should also take your login testing to the next level by using a web login<br />

cracking tool, such as Brutus (www.hoobie.net/brutus/index.html), as<br />

shown in Figure 14-11. Brutus is a very simple tool that can be used to crack<br />

both HTTP and form-based authentication mechanisms by using both dictionary<br />

and brute-force attacks.<br />

As with any type of password testing, this can be a long and arduous task, and<br />

you stand the risk of locking out user accounts. Proceed with caution.<br />

An alternative — and better maintained — tool for cracking web passwords<br />

is THC-Hydra (www.thc.org/thc-hydra)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!