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



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

INSERT Statements

INSERT


statements are used to create a new row of data within a table. They are

commonly used when an application adds a new entry to an audit log, creates

a new user account, or generates a new order.

For example, an application may allow users to self-register, specifying their

own username and password, and may then insert the details into the 

users


table with the following statement:

INSERT INTO users (username, password, ID, privs) VALUES (‘daf’,

‘secret’, 2248, 1)

If the 


username

or 


password

field is vulnerable to SQL injection, then an

attacker can insert arbitrary data into the table, including his own values for 

ID

and 



privs

. However, to do so he must ensure that the remainder of the 

VALUES

clause is completed gracefully. In particular, it must contain the correct num-



ber of data items of the correct types. For example, injecting into the 

username


field, the attacker can supply the following:

foo’, ‘bar’, 9999, 0)--




Download 5,76 Mb.

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