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



Download 5,76 Mb.
Pdf ko'rish
bet522/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   518   519   520   521   522   523   524   525   ...   875
Bog'liq
3794 1008 4334

298

Chapter 9 



Injecting Code

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



concatenated directly into the string used to specify the query structure.

The use of parameterized queries will not prevent SQL injection if some

parameters are handled in this way.

■■

Parameter placeholders cannot be used to specify the table and column



names used in the query. In some very rare cases, applications need to

specify these items within an SQL query on the basis of user-supplied

data. In this situation, the best approach is to use a white list of known

good values (i.e., the list of tables and columns actually used within the

database) and reject any input that does not match an item on this list.

Failing this, strict validation should be enforced on the user input — for

example, allowing only alphanumeric characters, excluding white-

space, and enforcing a suitable length limit.




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   518   519   520   521   522   523   524   525   ...   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