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



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

Using Time Delays

Despite all of the sophisticated techniques already described, there may yet be

situations in which none of these tricks are effective. In some cases, you may

be able to inject a query that returns no results to the browser, cannot be used

to open an out-of-band channel, and that has no effect on the application’s

behavior, even if it induces an error within the database itself.

In this situation, all is not lost, thanks to a technique invented by Chris

Anley and Sherief Hammad of NGSSoftware. They devised a way of crafting

a query that would cause a time delay, contingent upon some condition speci-

fied by the attacker. The attacker can submit his query, and then monitor the

time taken for the server to respond. If a delay occurs, then the attacker may

infer that the condition is true. Even if the actual content of the application’s

response is identical in the two cases, the presence or absence of a time delay

enables the attacker to extract a single bit of information from the database. By

performing numerous such queries, the attacker can systematically retrieve

arbitrarily complex data from the database, one bit at a time.

The precise means of inducing a suitable time delay depends upon the tar-

get database being used. MS-SQL contains a built-in 

WAITFOR

command, which

can be used to cause a specified time delay. For example, the following query

will cause a time delay of 5 seconds if the current database user is 

sa

:

if (select user) = ‘sa’ waitfor delay ‘0:0:5’




Download 5,76 Mb.

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