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



Download 5,76 Mb.
Pdf ko'rish
bet856/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   852   853   854   855   856   857   858   859   ...   875
Bog'liq
3794 1008 4334

512

Chapter 14 



Exploiting Information Disclosure

70779c14.qxd:WileyRed  9/14/07  3:14 PM  Page 512



exception which contains the output from the command. This will return a

stack trace to the browser, the first line of which contains a directory listing:

ByteArrayOutputStream baos = new ByteArrayOutputStream();

try


{

Process p = Runtime.getRuntime().exec(“ls”);

InputStream is = p.getInputStream();

int c;


while (-1 != (c = is.read()))

baos.write((byte) c);

}

catch (Exception e)



{

}

throw new RuntimeException(new String(baos.toByteArray()));



Gathering Published Information

Aside from the disclosure of useful information within error messages, the

other primary way in which web applications give away sensitive data is by

actually publishing it directly. There are various reasons why an application

may publish information that can be of use to an attacker:

■■

By design, as part of the application’s core functionality.



■■

As an unintended side effect of another function.

■■

Through debugging functionality that remains present in the live 



application.

■■

Because of some vulnerability, such as broken access controls.



Examples of potentially sensitive information that applications often pub-

lish to users include:

■■

Lists of valid usernames, account numbers, and document IDs.



■■

User profile details, including user roles and privileges, date of last

login, and account status.

■■

The current user’s password (this is usually masked on-screen but is



present in the page source).

■■

Log files containing information like usernames, URLs, actions per-



formed, session tokens, and database queries.

■■

Application details in client-side HTML source, such as commented-out



links or form fields, and comments about bugs.


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   852   853   854   855   856   857   858   859   ...   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