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


Chapter 6  ■ Attacking Authentication



Download 5,76 Mb.
Pdf ko'rish
bet301/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   297   298   299   300   301   302   303   304   ...   875
Bog'liq
3794 1008 4334

Chapter 6 



Attacking Authentication



167

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




requires an attacker to have somehow discovered one or more specific

usernames before mounting an attack.

■■

Some security-critical applications (such as online banks) simply 



disable an account after a small number of failed logins (e.g., three) 

and require that the account owner take various out-of-band steps to

reactivate the account, such as telephoning customer support and

answering a series of security questions. Disadvantages of this policy

are that it allows an attacker to deny service to legitimate users by

repeatedly disabling their accounts, and the cost of providing the

account recovery service. A more balanced policy, suitable for most

security-aware applications, is to suspend accounts for a short period

(e.g., 30 minutes) following a small number of failed login attempts

(e.g., three). This serves to massively slow down any password-

guessing attack, while mitigating the risk of denial-of-service attacks

and also reducing call center work.

■■

If a policy of temporary account suspension is implemented, care



should be taken to ensure its effectiveness:

■■

To prevent information leakage leading to username enumeration,



the application should never indicate that any specific account has

been suspended. Rather, it should respond to any series of failed

logins, even those using an invalid username, with a message advis-

ing that accounts are suspended if multiple failures occur and that

the user should try again later (as discussed previously).

■■

The metrics of the policy should not be disclosed to users. Telling



legitimate users simply to “try again later” does not seriously dimin-

ish their quality of service. But informing an attacker exactly how

many failed attempts are tolerated, and how long the suspension

period is for, enables them to optimize any attempt to continue

guessing passwords in spite of the policy. 

■■

If an account is suspended, then login attempts should be rejected



without even checking the credentials. Some applications that have

implemented a suspension policy remain vulnerable to brute forcing

because they continue to fully process login attempts during the sus-

pension period, and return a subtly (or not so subtly) different mes-

sage when valid credentials are submitted. This behavior enables an

effective brute-force attack to proceed at full speed regardless of the

suspension policy.

■■

Per-account countermeasures such as account lockout do not help to



protect against one kind of brute-force attack that is often highly effec-

tive — namely to iterate through a long list of enumerated usernames

checking a single weak password, such as 

password


. If, for example, five


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   297   298   299   300   301   302   303   304   ...   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