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



Download 5,76 Mb.
Pdf ko'rish
bet486/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   482   483   484   485   486   487   488   489   ...   875
Bog'liq
3794 1008 4334

Chapter 9 



Injecting Code



271

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




embedded directly into the query. When the user attempts to change the pass-

word, the application returns the following message, which reveals the flaw:

Unclosed quotation mark before the character string ‘foo

To exploit this vulnerability, an attacker can simply register a username con-

taining his crafted input, and then attempt to change his password. For exam-

ple, if the following username is registered:

‘ or 1 in (select password from users where username=’admin’)--

then the registration step itself will be handled securely. When the attacker

tries to change his password, his injected query will be executed, resulting in

the following message, which discloses the admin user’s password:

Microsoft OLE DB Provider for ODBC Drivers error ‘80040e07’

[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting

the varchar value ‘fme69’ to a column of data type int.

The attacker has successfully bypassed the input validation that was

designed to block SQL injection attacks, and now has a means of executing

arbitrary queries within the database and retrieving the results.




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   482   483   484   485   486   487   488   489   ...   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