Skip to content

【Web Security】HTTP

About 116 wordsLess than 1 minute

security

2023-11-20

001 HTTP

  1. 拦截浏览器GET请求,点击Action,然后Send to repeater。Repeater中有如下请求:

image.png

  1. 修改为GET /?key1=YulinSec HTTP/1.1

image.png

  1. 将GET改为POST,在后面添加key2=YulinSec,还要记得添加Content-Type: application/x-www-form-urlencoded

image.png

  1. 伪造IP,添加Referer: YulinSec://127.0.0.1

image.png

  1. 观察到Set-Cookie: admin=0,猜测应该添加Cookie: admin=1。获取flag!

image.png