17
Havij Advanced SQL Injection

Havij advanced sql injection

Embed Size (px)

Citation preview

Page 1: Havij advanced sql injection

Havij Advanced SQL Injection

Page 2: Havij advanced sql injection

About Havij• Havij is a SQL Injection tool that helps penetration

testers to find and exploit SQL Injection vulnerabilities on a web page.

• By using this software, user can perform back-end database fingerprinting, retrieve DBMS login names and password hashes, fetch data from the database, execute SQL statements against the server, and even access the underlying file system and execute operating system shell commands.

Page 3: Havij advanced sql injection

About Havij

• The distinctive power of Havij that differentiates it from similar tools lies in its unique methods of injection. The success rate of attack on vulnerable targets using Havij is above 95%.

• The user friendly GUI (Graphical User Interface) of Havij and its automated configuration and heuristic detections make it easy to use for everyone.

Page 4: Havij advanced sql injection

What is SQL Injection?

• SQL Injection is common web application vulnerability due to insufficient validation on user

inputs. • An attacker can inject some SQL commands into the

original query written by the developer to change the result to what he/she wants and execute his/her commands.

• This work (injecting SQL commands) is called Exploitation that can cause sensitive data disclosure, changing data, deleting data .

Page 5: Havij advanced sql injection

• To find vulnerable sites we can use “Google dork”.• Google Dorks is just like searching on Google in

advance. It is mostly used by Search Engine Optimizers, Webmasters and bloggers.

• Google supports several advanced operators, which are query words that have special meaning to Google.

• Typically these operators modify the search in some way, or even tell Google to do a totally different type of search.

Finding vulnerable sites

Page 6: Havij advanced sql injection

Google Dorks index.php?id=

trainers.php?id=productDetails.php?id=buy.php?category=article.php?ID=play_old.php?id=declaration_more.php?decl_id=pageid=games.php?id=page.php?file=newsDetail.php?id=gallery.php?id=show.php?id=staff_id=newsitem.php?num=readnews.php?id=top10.php?cat=

Page 7: Havij advanced sql injection

Finding Vulnerable Site• Randomly open sites to test them for vulnerability. • For testing site insert into URL ‘ symbol, for example http://www.lacosteparfumsgift.com/offer.php?id=6984

Insert ‘ between “=” and “6984” like this http://www.lacosteparfumsgift.com/offer.php?id=‘6984

• If we get error in loading page then the site is vulnerable

• And if the page is loading normally then the site is not vulnerable.

Page 8: Havij advanced sql injection

Requirements

• Requirements for installing Havij:• Windows operating system• Havij setup file• Internet Explorer 5.5 or above• 8MB free space on hard disk

Page 9: Havij advanced sql injection

Havij Versions• Havij v1.10• Havij v1.11• Havij v1.12• Havij v1.13• Havij v1.14• Havij v1.15• Havij v1.16• Havij v1.17

Page 10: Havij advanced sql injection

Using HavijPut vulnerable site URL without ‘ symbol into “Target” field and press on “Analyze” button.

Page 11: Havij advanced sql injection

Using Havij• Havij analyzing target

Page 12: Havij advanced sql injection

• Retrieving tablesUsing Havij

Page 13: Havij advanced sql injection

• Retrieving tables

Using Havij

Page 14: Havij advanced sql injection

Using Havij• Finding Admin page

Page 15: Havij advanced sql injection

• Cracking hash

Using Havij

Page 16: Havij advanced sql injection

Summary

So, with help of Havij we could get site database information including site admin login and password.

Page 17: Havij advanced sql injection

THANK YOU