Skip to content

Commit 294298c

Browse files
committed
Added Pixels Camp 2017 CTF W200 challenge solution
1 parent fe969c7 commit 294298c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Solution
2+
========
3+
4+
To solve the problem you need to find out that the site is using JWT tokens to authenticate itself, the header is created on the clientside, and the secret for the JWT is the information stored on localStorage.
5+
6+
Then, you can proceed on two ways:
7+
8+
1. Just set an known token on localStorage, and go to the homepage.
9+
10+
For example, write in the browser console:
11+
12+
```javascript
13+
localStorage.user = "89a572794c0a4e608891f31f3f86f85f";
14+
```
15+
<br>
16+
17+
2. View the code that generates the token on `app-services/user.service.js` function `GenAuthorization` and replicate it on your own.
18+
19+
20+
Flag
21+
----
22+
23+
`flag{Y-ARHq29rhchpFJjyJyr} `
24+

0 commit comments

Comments
 (0)