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



Download 5,76 Mb.
Pdf ko'rish
bet479/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   475   476   477   478   479   480   481   482   ...   875
Bog'liq
3794 1008 4334

Circumventing Simple Validation

Some input validation routines employ a simple blacklist, and either block or

remove any supplied data which appears on this list. In this instance, you

should try the standard attacks looking for common defects in validation and

canonicalization mechanisms. For example, if the 

SELECT


keyword is being

blocked or removed, you can try the following bypasses:

SeLeCt

SELSELECTECT



%53%45%4c%45%43%54

%2553%2545%254c%2545%2543%2554



Chapter 9 



Injecting Code



267

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




Using SQL Comments

Inline comments can be inserted into SQL statements in the same way as for

C++, by embedding them between the symbols 

/*

and 



*/

. If the application

blocks or strips spaces from your input, you can use comments to simulate

whitespace within your injected data. For example:

SELECT/*foo*/username,password/*foo*/FROM/*foo*/users

In MySQL, comments can even be inserted within keywords themselves,

which provides another means of bypassing some input validation filters

while preserving the syntax of the actual query. For example:

SEL/*foo*/ECT username,password FR/*foo*/OM users


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   475   476   477   478   479   480   481   482   ...   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