22
FatCat V2– Automatic Web [S]QL- Injector andeep Kamble AKA [S] Parason INC Blog : http://sandeepkamble.co Twitter: @SandeepL337

Fatcat Automatic Web SQL Injector by Sandeep Kamble

Embed Size (px)

DESCRIPTION

What is FatCat Sql injector: This is an automatic SQL Injection tool called as FatCat. Fatcat Purpose? : For testing your web application and exploit your application into more deeper. FatCat Support: 1)Mysql 5.0 FatCat Features? Union Based Sql Injection Error Based Sql Injection MOD Security Bypass (WAF)

Citation preview

Page 1: Fatcat Automatic Web SQL Injector by Sandeep Kamble

FatCat V2– Automatic Web [S]QL-Injector

Sandeep Kamble AKA [S]Parason INC

Blog : http://sandeepkamble.com Twitter: @SandeepL337

Page 2: Fatcat Automatic Web SQL Injector by Sandeep Kamble

•Narcissistic Vulnerability Pimp (aka Security Researcher for fun)

•Listed in Google , Facebook , Twitter , Drop box , Cloud flare , 500px , Lynda.com , Central Desktop Security Pages.

•Ahhh ? What are those Vulnerabilities

•Member of Garage4hackers.com & you can find POC @G4h.

# /usr/bin/whoami

Page 3: Fatcat Automatic Web SQL Injector by Sandeep Kamble

Index

•Introducing FatCat Beta 2•SQL Injection in Brief• FatCat Injgredients

1) DB Information & server Information gathering.2) Normal SQL injection.3) Error Based SQL injection.4) WAF (Web Application Firewall)Bypass functions.

• C-Style Mysql comment WAF Bypass• Buffer overflow WAF Bypass• CRLF WAF Bypass• Bypass with Information_schema.statics• Bypass with Information_schema.key_column_usage

5) Countermeasures 6) Demo

Page 4: Fatcat Automatic Web SQL Injector by Sandeep Kamble

Provide Good Advise for Good People

Warning! : FatCat is being used for security research. All PHP files will be

infected and all yours data will be collected. If you want to be safe, don't use this Tool. If you do that, don't send

sensitive information. If after all you continue, do it on your own risk

Page 5: Fatcat Automatic Web SQL Injector by Sandeep Kamble

1)It’s New , it’s cool to use , inject web! 2)Normal SQL injection 3)Error Based SQL injection 4)WAF (Web application firewall ) Bypass

function. 5)Helpful to Pentester – You can create POC

from anywhere .6)It supports Mysql 5.0 7)Developed in PHP 8)FatCat made 3400+ Downloads on

Code.google.com

Ladies gentleman introducing FatCat V2

Page 6: Fatcat Automatic Web SQL Injector by Sandeep Kamble

SQL injection in Brief

“SQL Injection happens when user manipulate input & form a SQL Query. “

Sending payload !@#$%^&*()

It’s me .. Hi, :/ Payload : ; Drop table Clubhackparty -- -

Page 7: Fatcat Automatic Web SQL Injector by Sandeep Kamble

1)DB Information & server Information gathering.

2)Normal SQL injection.3)Error Based SQL injection.4)WAF (Web Application Firewall)Bypass

functions.

FatCat Ingredients

Page 8: Fatcat Automatic Web SQL Injector by Sandeep Kamble

1)DB Information & server Information gathering.1. Finding Total Column Count

• Order by n+1;2. Finding MySQL Version

• VERSION () Function3. Finding current User

• User() Function 4. Finding Data Directory

• @@datadir Function5. Finding Base Directory

• @@basedir Function6. Finding Host Name

• @@hostname Function 7. Finding Operating System

• @@version_compile_os Function 8. Finding Current Database name

• Database() Function

By using MYSQL Statement , Db & Server information can be gathered

FatCat Ingredients

9. Max allowed Packet size• @@max_allowed_packet

function

Page 9: Fatcat Automatic Web SQL Injector by Sandeep Kamble

1)Normal SQL injection •It is also Know as Union SQL injection •Union help us to combine two result set of the select statement •Eg: Id=-2+Union+select+13371,13372,13373,13374-- -

FatCat Ingredients

Page 10: Fatcat Automatic Web SQL Injector by Sandeep Kamble

2) Error based SQL injection •It is also Know as Double Query SQL injection •Some times union based SQLi get fails that time you can use Error based SQLi• A query which confuse the DB engine and produce helpful mysql errors •Eg: select gmailid,(select password from id where id=9)

As Google_India from id;

FatCat Ingredients

FatCat web interface

Sending payload !@#$W00T%^&*()

Aww .. ! Double Query

duplicate entry '~‘Clubhack_screte'~1' for key 1

Page 11: Fatcat Automatic Web SQL Injector by Sandeep Kamble

3) WAF (Web application Firewall) Bypass ?

FatCat Ingredients

Page 12: Fatcat Automatic Web SQL Injector by Sandeep Kamble

FatCat Ingredients

1.Protection Against OWASP Top Ten!2.Types of Vulnerabilities it can prevent.3.Brute Force protection.

In simple language , It’s Monitor HTTP conversation

Page 13: Fatcat Automatic Web SQL Injector by Sandeep Kamble

3) WAF (Web application Firewall) Bypass

FatCat Ingredients

•We use Following Methods to bypass WAF• C-Style Mysql comment WAF Bypass• Buffer overflow WAF Bypass• CRLF WAF Bypass• Bypass with Information_schema.statics• Bypass with Information_schema.key_column_usage

•Linux Based WAFS • AppArmor• ModSecurity - Also works under Mac OS X, Solaris and other

versions of Unix.• Systrace• Zorp

Page 14: Fatcat Automatic Web SQL Injector by Sandeep Kamble

3) WAF (Web application Firewall) Bypass

1. Mysql Comment WAF bypass • Syntax /*! Mysql Statements */• Example

FatCat Ingredients

Page 15: Fatcat Automatic Web SQL Injector by Sandeep Kamble

3) WAF (Webapplication Firwall) Bypass

1. Buffer Overflow WAF bypass • Syntax : ‘ AAAAAAAAAAAAAAAAAAAAAAAAAAAA Mysql Statement • Example:

FatCat Ingredients

Page 16: Fatcat Automatic Web SQL Injector by Sandeep Kamble

3) WAF (Webapplication Firwall) Bypass

1. CRLF WAF Bypass Syntax : %0A%0D+Mysql Statements+%0A%0

Example :

FatCat Ingredients

Page 17: Fatcat Automatic Web SQL Injector by Sandeep Kamble

3) WAF (Webapplication Firwall) Bypass

1. Bypass with information_schema.key_column_usage

Example :

FatCat Ingredients

Page 18: Fatcat Automatic Web SQL Injector by Sandeep Kamble

3) WAF (Webapplication Firwall) Bypass

1. Bypass with information_schema.statics

Example :

FatCat Ingredients

Page 19: Fatcat Automatic Web SQL Injector by Sandeep Kamble

Countermeasures for SQLI

Page 20: Fatcat Automatic Web SQL Injector by Sandeep Kamble

Lets Inject with FatCat

Page 21: Fatcat Automatic Web SQL Injector by Sandeep Kamble

A Gentleman never asks.

A Lady never tells.

Any Questions ?

Page 22: Fatcat Automatic Web SQL Injector by Sandeep Kamble

</presentation>

Thank you !