Skip to content

Commit bc6e3fe

Browse files
committed
petshop_pro flag2
1 parent 427203d commit bc6e3fe

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| Easy (2 / flag) | [Micro-CMS v1][3] | Web | 4 / 4 |
1313
| Moderate (3 / flag) | [Micro-CMS v2][5] | Web | 3 / 3 |
1414
| Easy (4 / flag) | [Postbook][6] | Web | 7 / 7 |
15-
| Easy (3 / flag) | [Petshop Pro][7] | Web | 1 / 3 |
15+
| Easy (3 / flag) | [Petshop Pro][7] | Web | 3 / 3 |
1616
| Moderate (5 / flag) | [TempImage][4] | Web | 2 / 2 |
1717

1818
[1]: https://ctf.hacker101.com/ctf

petshop_pro/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- Tools may help you find the entrypoint
1212
- Tools are also great for finding credentials
1313

14-
## [Flag2](./flag2) -- Not Found
14+
## [Flag2](./flag2) -- Found
1515

1616
- Always test every input
1717
- Bugs don't always appear in a place where the data is entered

petshop_pro/flag2/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Petshop Pro - FLAG2
2+
3+
## 0x00 Admin Index
4+
5+
![](../flag1/imgs/flag.jpg)
6+
7+
## 0x01 Edit Page
8+
9+
Insert with XSS code for all possible inputs.
10+
11+
``` js
12+
<img src=x onerror=alert(1)>
13+
```
14+
15+
![](./imgs/edit.jpg)
16+
17+
## 0x02 FLAG
18+
19+
Add them into cart and go check the shopping cart.
20+
21+
![](./imgs/flag.jpg)

petshop_pro/flag2/imgs/edit.jpg

51.4 KB
Loading

petshop_pro/flag2/imgs/flag.jpg

14.7 KB
Loading

0 commit comments

Comments
 (0)