Skip to content

Commit f644c93

Browse files
committed
postbook
1 parent a2bfd4d commit f644c93

26 files changed

+170
-1
lines changed

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
| Trivial (1 / flag) | [A little something to get you started][2] | Web | 1 / 1 |
1212
| Easy (2 / flag) | [Micro-CMS v1][3] | Web | 4 / 4 |
1313
| Moderate (3 / flag) | [Micro-CMS v2][5] | Web | 3 / 3 |
14+
| Easy (4 / flag) | [Postbook][6] | Web | 7 / 7 |
1415
| Moderate (5 / flag) | [TempImage][4] | Web | 2 / 2 |
1516

1617
[1]: https://ctf.hacker101.com/ctf
1718
[2]: ./a_little_something_to_get_you_started
1819
[3]: ./micro-cms_v1
1920
[4]: ./tempimage
20-
[5]: ./micro-cms_v2
21+
[5]: ./micro-cms_v2
22+
[6]: ./postbook

Diff for: postbook/README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Postbook
2+
3+
## [Flag0](./flag0) -- Found
4+
5+
- The person with username "user" has a very easy password...
6+
7+
## [Flag1](./flag1) -- Found
8+
9+
- Try viewing your own post and then see if you can change the ID
10+
11+
## [Flag2](./flag2) -- Found
12+
13+
- You should definitely use "Inspect Element" on the form when creating a new post
14+
15+
## [Flag3](./flag3) -- Found
16+
17+
- 189 * 5
18+
19+
## [Flag4](./flag4) -- Found
20+
21+
- You can edit your own posts, what about someone else's?
22+
23+
## [Flag5](./flag5) -- Found
24+
25+
- 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?
26+
27+
## [Flag6](./flag6) -- Found
28+
29+
- Deleting a post seems to take an ID that is not a number. Can you figure out what it is?

Diff for: postbook/flag0/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Postbook - FLAG0
2+
3+
## 0x00 Index
4+
5+
![](./imgs/index.jpg)
6+
7+
## 0x01 Log In
8+
9+
Try weak password
10+
11+
```
12+
username: user
13+
password: password
14+
```
15+
16+
![](./imgs/login.jpg)
17+
18+
## 0x02 FLAG
19+
20+
![](./imgs/flag.jpg)

Diff for: postbook/flag0/imgs/flag.jpg

57.2 KB
Loading

Diff for: postbook/flag0/imgs/index.jpg

34.3 KB
Loading

Diff for: postbook/flag0/imgs/login.jpg

10.8 KB
Loading

Diff for: postbook/flag1/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Postbook - FLAG1
2+
3+
## 0x00 View Post
4+
5+
http://127.0.0.1/1234567890/index.php?page=view.php&id=1
6+
7+
![](./imgs/post.jpg)
8+
9+
## 0x01 FLAG
10+
11+
The id seems can be change.
12+
13+
http://127.0.0.1/1234567890/index.php?page=view.php&id=2
14+
15+
![](./imgs/flag.jpg)

Diff for: postbook/flag1/imgs/flag.jpg

29.3 KB
Loading

Diff for: postbook/flag1/imgs/post.jpg

18.9 KB
Loading

Diff for: postbook/flag2/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Postbook - FLAG2
2+
3+
## 0x00 New Post
4+
5+
![](./imgs/new_post.jpg)
6+
7+
There is a hidden value shows **user_id = 2**.
8+
9+
Change it to 1 which may post as other people.
10+
11+
![](./imgs/test_post.jpg)
12+
13+
## 0x01 FLAG
14+
15+
![](./imgs/flag.jpg)

Diff for: postbook/flag2/imgs/flag.jpg

28.7 KB
Loading

Diff for: postbook/flag2/imgs/new_post.jpg

58.5 KB
Loading

Diff for: postbook/flag2/imgs/test_post.jpg

59.3 KB
Loading

Diff for: postbook/flag3/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Postbook - FLAG3
2+
3+
## 0x00 View Post
4+
5+
http://127.0.0.1/1234567890/index.php?page=view.php&id=1
6+
7+
![](./imgs/post.jpg)
8+
9+
## 0x01 FLAG
10+
11+
The id seems can be change to very large value (189 * 5 = 945).
12+
13+
http://127.0.0.1/1234567890/index.php?page=view.php&id=945
14+
15+
![](./imgs/flag.jpg)

Diff for: postbook/flag3/imgs/flag.jpg

20.1 KB
Loading

Diff for: postbook/flag3/imgs/post.jpg

18.9 KB
Loading

Diff for: postbook/flag4/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Postbook - FLAG4
2+
3+
## 0x00 Edit Post
4+
5+
http://127.0.0.1/1234567890/index.php?page=edit.php&id=3
6+
7+
![](./imgs/edit.jpg)
8+
9+
## 0x01 Edit Others Post
10+
11+
The id seems can be change.
12+
13+
http://127.0.0.1/1234567890/index.php?page=edit.php&id=1
14+
15+
![](./imgs/edit_others.jpg)
16+
17+
## 0x02 FLAG
18+
19+
Save the edit result. Get the flag.
20+
21+
![](./imgs/flag.jpg)

Diff for: postbook/flag4/imgs/edit.jpg

28.6 KB
Loading

Diff for: postbook/flag4/imgs/edit_others.jpg

27.3 KB
Loading

Diff for: postbook/flag4/imgs/flag.jpg

21.8 KB
Loading

Diff for: postbook/flag5/README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Postbook - FLAG5
2+
3+
## 0x00 Cookie
4+
5+
user cookie
6+
7+
```
8+
id: "c81e728d9d4c2f636f067f89cc14862c"
9+
```
10+
11+
Check at [cmd5.com][1]. It is just md5 value of 2.
12+
13+
![](./imgs/cookie.jpg)
14+
15+
## 0x01 Admin Cookie
16+
17+
md5(1)
18+
19+
```
20+
id: "c4ca4238a0b923820dcc509a6f75849b"
21+
```
22+
23+
## 0x02 FLAG
24+
25+
Successfully login as admin.
26+
27+
![](./imgs/flag.jpg)
28+
29+
[1]: https://www.cmd5.com/
30+
31+

Diff for: postbook/flag5/imgs/cookie.jpg

11.4 KB
Loading

Diff for: postbook/flag5/imgs/flag.jpg

44.8 KB
Loading

Diff for: postbook/flag6/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Postbook - FLAG6
2+
3+
## 0x00 Delet Post
4+
5+
http://127.0.0.1/1234567890/index.php?page=delete.php&id=eccbc87e4b5ce2fe28308fd9f2a7baf3
6+
7+
Where **id=eccbc87e4b5ce2fe28308fd9f2a7baf3** is also [md5][1] value of post id.
8+
9+
![](./imgs/delete.jpg)
10+
11+
## 0x01 Delete Others
12+
13+
http://127.0.0.1/1234567890/index.php?page=delete.php&id=c4ca4238a0b923820dcc509a6f75849b
14+
15+
## 0x02 FLAG
16+
17+
![](./imgs/flag.jpg)
18+
19+
[1]: https://www.cmd5.com/
20+
21+

Diff for: postbook/flag6/imgs/delete.jpg

46.5 KB
Loading

Diff for: postbook/flag6/imgs/flag.jpg

62.9 KB
Loading

0 commit comments

Comments
 (0)