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


hash character to specify a comment



Download 5,76 Mb.
Pdf ko'rish
bet433/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   429   430   431   432   433   434   435   436   ...   875
Bog'liq
3794 1008 4334

hash character to specify a comment.

242

Chapter 9 



Injecting Code

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



T I P

In some situations, an alternative way to handle the trailing quotation

mark without using the comment symbol is to “balance the quotes” by

concluding the injected input with an item of string data that requires a trailing

quote to encapsulate it. For example, entering the search term

Wiley’ OR ‘a’ = ‘a



will result in the query

SELECT author,title,year FROM books WHERE publisher = ‘Wiley’ OR ‘a’=’a’



which is perfectly valid and achieves the same result as the 

1 = 1


attack.

The previous example may appear to have little security impact, because

users can probably access all book details using entirely legitimate means.

However, we will describe shortly how many SQL injection flaws like this can

be used to extract arbitrary data from different database tables, and to escalate

privileges within the database and the database server. For this reason, any

SQL injection vulnerability should be regarded as extremely serious, regard-

less of its precise context within the application’s functionality.




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   429   430   431   432   433   434   435   436   ...   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