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


Chapter 7  ■ Attacking Session Management



Download 5,76 Mb.
Pdf ko'rish
bet374/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   370   371   372   373   374   375   376   377   ...   875
Bog'liq
3794 1008 4334

Chapter 7 



Attacking Session Management



207

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




mitigating any weaknesses in the core pseudo-random number generator

being used. Examples of information that may be incorporated include:

■■

The source IP address and port number from which the request was



received.

■■

The 



User-Agent

header in the request.

■■

The time of the request in milliseconds.



A highly effective formula for incorporating this entropy is to construct a

string that concatenates a pseudo-random number, a variety of request-

 specific data as listed, and a secret string known only to the server and gener-

ated afresh on each reboot. A suitable hash is then taken of this string (using,

for example, SHA-256 at the time of this writing), to produce a manageable

fixed-length string that can be used as a token. (Placing the most variable items

towards the start of the hash’s input serves to maximize the “avalanche” effect

within the hashing algorithm.)



T I P


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   370   371   372   373   374   375   376   377   ...   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