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



Download 5,76 Mb.
Pdf ko'rish
bet305/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   301   302   303   304   305   306   307   308   ...   875
Bog'liq
3794 1008 4334

170

Chapter 6 



Attacking Authentication

70779c06.qxd:WileyRed  9/14/07  3:13 PM  Page 170



■■

Features such as password “hints” should absolutely never be used,

since they mainly serve to assist an attacker in trawling for accounts

with obvious hints set.

■■

The best automated solution for enabling users to regain control of



accounts is to email the user a unique, time-limited, unguessable, 

single-use recovery URL. This email should be sent to the address that

the user provided during registration. Visiting the URL will allow the

user to set a new password. After this has been done, a second email

should be sent, indicating that a password change was made. To pre-

vent an attacker denying service to users by continually requesting

password reactivation emails, the user’s existing credentials should

remain valid until such time as they are changed.

■■

To further protect against unauthorized access, applications may pre-



sent users with a secondary challenge that they must complete before

gaining access to the password reset function. Care must taken to

ensure that the design of this challenge does not introduce new 

vulnerabilities:

■■

The challenge should implement the same question or set of ques-



tions for everyone, mandated by the application during registration.

If users provide their own challenge, it is likely that some of these

will be very weak, and this also enables an attacker to enumerate

valid accounts by identifying those which have a challenge set.

■■

Responses to the challenge should contain sufficient entropy that



they cannot be easily guessed. For example, asking the user for the

name of their first school is preferable to asking for their favorite

color.

■■

Accounts should be temporarily suspended following a number of



failed attempts to complete the challenge, to prevent brute-force

attacks.


■■

The application should not leak any information in the event of

failed responses to the challenge — regarding the validity of the

username, any suspension of the account, and so on.

■■

Successful completion of the challenge should be followed by the



process described previously, in which a message is sent to the

user’s registered email address containing a reactivation URL.

Under no circumstances should the application disclose the user’s

forgotten password or simply drop the user into an authenticated

session. Even proceeding directly to the password reset function is

undesirable, because the response to the account recovery challenge

will in general be easier for an attacker to guess than the original

password, and so it should not be relied upon on its own to authen-

ticate the user.


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   301   302   303   304   305   306   307   308   ...   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