06.Postbook
Hints for "Postbook"
Hints for “Postbook”
Flag0 — Not Found
- The person with username “user” has a very easy password…
Flag1 — Found
- Try viewing your own post and then see if you can change the ID
Flag2 — Not Found
- You should definitely use “Inspect Element” on the form when creating a new post
Flag3 — Not Found
- 189 * 5
Flag4 — Not Found
- You can edit your own posts, what about someone else’s?
Flag5 — Not Found
- The cookie allows you to stay signed in. Can you figure out how they work so you can sign in to user with ID 1?
Flag6 — Not Found
- Deleting a post seems to take an ID that is not a number. Can you figure out what it is?
FLAG0
跑一下user的密码

发现密码是PASSWORD

FLAG1
常规的测试,发现链接
http://35.227.24.107/2e865f040f/index.php?page=view.php&id=1
把id=1改为id=2 得到一个FLAG
FLAG3
看来只能在那个列表里面去枚举那个id了,提示中的数字比较大

在945处发现了不同,得到了一个FLAG
FLAG4

修改编辑URL中的id,这里改为了1,这是其他用户的id,也可以修改成功
FLAG2
在发表文章的页面中,存在一个隐藏的元素,启用之后会带一个user_id=2的参数,
title=aaa&body=bbb&private=on&user_id=2
那我们试着修改这个参数。

得到了一个FLAG
FLAG5
在登录的时候,有一个设置cookie的过程,发现这个cookie的值是md5值


把cookie替换成1的md5值,看看是什么效果

FLAG6
点了删除,发现URL中的id不是数字,看起来是做了编码了的。
GET http://34.94.3.143/3dc96c6482/index.php?page=delete.php&id=a87ff679a2f3e71d9181a67b7542122c
id=4 变成了 a87ff679a2f3e71d9181a67b7542122c

发现是进行了一次md5,那我们把1也进行编码,试试
