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


Chapter 9  ■ Injecting Code



Download 5,76 Mb.
Pdf ko'rish
bet447/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   443   444   445   446   447   448   449   450   ...   875
Bog'liq
3794 1008 4334

Chapter 9 



Injecting Code



247

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




Of course, when you are interacting with a remote application, it is not nor-

mally possible to know in advance what type of statement a given item of user

input will be processed by. However, you can usually make an educated guess

based upon the type of application function you are dealing with. The most

common types of SQL statements and their uses are described here.

SELECT Statements

SELECT


statements are used to retrieve information from the database. They

are frequently employed in functions where the application returns informa-

tion in response to user actions, such as browsing a product catalog, viewing a

user’s profile, or performing a search. They are also often used in login func-

tions where user-supplied information is checked against data retrieved from

a database.

As in the previous examples, the entry point for SQL injection attacks is nor-

mally the 

WHERE

clause of the query, in which user-supplied items are passed to



the database to control the scope of the query’s results. Because the 

WHERE


clause is usually the final component of a 

SELECT


statement, this enables the

attacker to use the comment symbol to truncate the query to the end of his

input without invalidating the syntax of the overall query.

Occasionally, SQL injection vulnerabilities occur that affect other parts of the

SELECT

query, such as the 



ORDER BY

clause or the names of tables and columns.




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   443   444   445   446   447   448   449   450   ...   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