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



Download 5,76 Mb.
Pdf ko'rish
bet175/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   171   172   173   174   175   176   177   178   ...   875
Bog'liq
3794 1008 4334

The Referer Header

Browsers include the 

Referer

header within most HTTP requests. This is used

to indicate the URL of the page from which the current request originated —

either because the user clicked a hyperlink or submitted a form, or because the

page referenced other resources such as images. Hence, it can be leveraged as

a mechanism for transmitting data via the client: because the URLs processed

by the application are within its control, developers may assume that the 

Ref-


erer

header can be used to reliably determine which URL generated a partic-

ular request.

For example, consider a mechanism that enables users to reset their pass-

word if they have forgotten it. The application requires users to proceed

through several steps in a defined sequence, before they actually reset their

password’s value with the following request:

POST /customer/ResetForgotPassword.asp HTTP/1.1

Referer: http://wahh-app.com/customer/ForgotPassword.asp

Host: wahh-app.com

Content-Length: 44

uname=manicsprout&pass=secret&confirm=secret

The application may use the 

Referer


header to verify that this request orig-

inated from the correct stage (

ForgotPassword.asp

), and if so allow the user to

reset their password.

However, because the user controls every aspect of every request, including

the HTTP headers, this control can be trivially circumvented by proceeding

directly to 

ResetForgotPassword.asp

, and using an intercepting proxy to fix

the value of the 

Referer


header to the value that the application requires.


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   171   172   173   174   175   176   177   178   ...   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