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



Download 5,76 Mb.
Pdf ko'rish
bet331/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   327   328   329   330   331   332   333   334   ...   875
Bog'liq
3794 1008 4334

186

Chapter 7 



Attacking Session Management

70779c07.qxd:WileyRed  9/14/07  3:13 PM  Page 186



Given our analysis of how tokens are created, it is straightforward to con-

struct a scripted attack to harvest the session tokens that the application issues

to other users:

■■

We continue polling the server to obtain new session tokens in quick



succession.

■■

We monitor the increments in the first number. When this increases by



more than one, we know that a token has been issued to another user.

■■

When a token has been issued to another user, we know the upper and



lower bounds of the second number that was issued to them, because

we possess the tokens that were issued immediately before and after

theirs. Because we are obtaining new session tokens frequently, the

range between these bounds will typically consist of only a few hun-

dred values.

■■

Each time a token is issued to another user, we launch a brute-force



attack to iterate through each number in the range, appending this to

the missing incremental number that we know was issued to the other

user. We attempt to access a protected page using each token we con-

struct, until the attempt succeeds and we have compromised the user’s

session.

■■

Running this scripted attack continuously will enable us to capture the



session token of every other application user. When an administrative

user logs in, we will fully compromise the entire application. 




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   327   328   329   330   331   332   333   334   ...   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