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



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

Manipulating Blocked Strings

If the application blocks certain strings that you wish to place as data items

within an injected query, then the required string can be constructed dynami-

cally using various string manipulation functions. For example, if the expres-

sion 

admin


is being blocked, then you can build this in the following ways: 

■■

Oracle:

‘adm’||’in’

■■

MS-SQL:

‘adm’+’in’

■■

MySQL:

concat(‘adm’,’in’)

Most databases contain many custom functions for string manipulation that

can be used to construct blocked strings in arbitrarily complex ways, in order

to circumvent different input validation filters. For example, Oracle contains

the functions 

CHR


REVERSE


TRANSLATE

REPLACE


, and 

SUBSTR


. A function like

CHR


can be used to introduce a literal string in cases where single quotation

marks are being blocked. For example, the following query effectively smug-

gles in the string 

admin


:

SELECT password from users where username = chr(97) || chr(100) ||

chr(109) || chr(105) || chr(110)


Download 5,76 Mb.

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