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


Chapter 7  ■ Attacking Session Management



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

Chapter 7 



Attacking Session Management



187

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




session token prediction attack. The server used the Java API 

java.util

.Random

to generate session tokens. This implements a “linear congruential

generator,” which generates the next number in the sequence as follows:

synchronized protected int next(int bits) {

seed = (seed * 0x5DEECE66DL + 0xBL) & ((1L << 48) - 1);

return (int)(seed >>> (48 - bits));

}

This algorithm in effect takes the last number generated, multiplies it by one



constant, and adds another constant, to obtain the next number. The number is

truncated to 48 bits, and the algorithm shifts the result to return the specific

number of bits requested by the caller.

Knowing this algorithm and a single number generated by it, we can easily

derive the sequence of numbers that the algorithm will generate next, and also

(with a little number theory) derive the sequence that it generated previously.

This means that an attacker who obtains a single session token from the server

can obtain the tokens of all current and future sessions.



N OT E


Download 5,76 Mb.

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