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


Example 1: Fooling a Password Change Function



Download 5,76 Mb.
Pdf ko'rish
bet607/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   603   604   605   606   607   608   609   610   ...   875
Bog'liq
3794 1008 4334

Example 1: Fooling a Password Change Function

The authors have encountered this logic flaw in a web application imple-

mented by a financial services company and also in the AOL AIM Enterprise

Gateway application.



The Functionality

The application implemented a password change function for end users. It

required the user to fill out fields for username, existing password, new pass-

word, and confirm new password.

There was also a password change function for use by administrators. This

allowed them to change the password of any user without the need to supply

the existing password. The two functions were implemented within the same

server-side script.



The Assumption

The client-side interface presented to users and administrators differed in one

respect — the administrator’s interface did not contain a field for an existing

password. When the server-side application processed a password change

request, it used the presence or absence of the existing password parameter to

indicate whether the request was from an administrator or an ordinary user. In

other words, it assumed that ordinary users would always supply an existing

password parameter.

The code responsible looked something like this:

String existingPassword = request.getParameter(“existingPassword”);

if (null == existingPassword)

{

trace(“Old password not supplied, must be an administrator”);



return true;

}

else



{

trace(“Verifying user’s old password”);

...


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   603   604   605   606   607   608   609   610   ...   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