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



Download 5,76 Mb.
Pdf ko'rish
bet501/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   497   498   499   500   501   502   503   504   ...   875
Bog'liq
3794 1008 4334

282

Chapter 9 



Injecting Code

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



An example of this is the following query, which tests whether the default

Oracle user 

DBSNMP

exists. If this user exists, then the expression 



1/0

is evalu-

ated, causing an error:

SELECT 1/0 FROM dual WHERE (SELECT username FROM all_users WHERE

username = ‘DBSNMP’) = ‘DBSNMP’

The following query tests whether an invented user 

AAAAAA

exists. Because



the 

WHERE


condition is never true, the expression 

1/0


is not evaluated, and so

no error occurs. 

SELECT 1/0 FROM dual WHERE (SELECT username FROM all_users WHERE

username = ‘AAAAAA’) = ‘AAAAAA’

What this technique achieves is a way of inducing a conditional response

within the application, even in cases where the query you are injecting has no

impact on the application’s logic or data processing. It, therefore, enables you

to use the inference techniques described previously to extract data in a very

wide range of situations. Further, because of the technique’s simplicity, the

same attack strings will work on a range of databases, and where the injection

point is into various types of SQL statement.


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   497   498   499   500   501   502   503   504   ...   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