File tree 26 files changed +170
-1
lines changed
26 files changed +170
-1
lines changed Original file line number Diff line number Diff line change 11
11
| Trivial (1 / flag) | [ A little something to get you started] [ 2 ] | Web | 1 / 1 |
12
12
| Easy (2 / flag) | [ Micro-CMS v1] [ 3 ] | Web | 4 / 4 |
13
13
| Moderate (3 / flag) | [ Micro-CMS v2] [ 5 ] | Web | 3 / 3 |
14
+ | Easy (4 / flag) | [ Postbook] [ 6 ] | Web | 7 / 7 |
14
15
| Moderate (5 / flag) | [ TempImage] [ 4 ] | Web | 2 / 2 |
15
16
16
17
[ 1 ] : https://ctf.hacker101.com/ctf
17
18
[ 2 ] : ./a_little_something_to_get_you_started
18
19
[ 3 ] : ./micro-cms_v1
19
20
[ 4 ] : ./tempimage
20
- [ 5 ] : ./micro-cms_v2
21
+ [ 5 ] : ./micro-cms_v2
22
+ [ 6 ] : ./postbook
Original file line number Diff line number Diff line change
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?
Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments