Ceh Sqlinjection
Ceh Sqlinjection
Ceh Sqlinjection
Configuration:
Objectives:
Tools:
Internet Explorer.
HACMEBANK application.
Preparation:
Username : jv
Password : jv789
1
©2011-BR
I. AUTHENTICATION BYPASS
Detailed Steps:
http://localhost/HacmeBank_v2_Website/aspx/login.aspx
3. You can see there’s a welcome message and logout button. This two items indicate
that you’ve been successfully log-on to this hacmebank.
2
©2011-BR
Username : jv
Password : ' or 1=1 --
3
©2011-BR
From there we can determine that the name of the table storing login information is
FSB_USERS and that it has a column named USER_ID
4
©2011-BR
2. The next step towards that is obtaining the name of all the column names of the
table.
5
©2011-BR
6
©2011-BR
FSB_USERS . user.id
FSB_USERS . user_name
FSB_USERS . login_id
FSB_USERS . password
FSB_USERS . creation_date
1. After this, you need know the data type of column FSB_USERS.password, use this
SQL statement :
You will get an error message, stating that FSB_USERS.password data type is
VARCHAR.
The sum or average aggregate operation cannot take a
varchar data type as an argument
You will see an error, its normal. Just try to login using the new password