Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 1.19 KB

File metadata and controls

18 lines (10 loc) · 1.19 KB

Task 6

For Task 6, the goal was to modify the authentication token to gain access to the attacker's backend site.

The first step for Task 6 was to figure out how the backend site worked. Using the token from Task 5, I decoded the token using CyberChef to obtain

token.png

expired.png

The token would not be accepted because it was expired so I changed the expiration date to the near future. The HMAC key could be obtained from util.py (TZcaeOJi0T3YY0vbP1qxMLAzGQdGa3ku). After signing the token with this key, I was able to log in to the site.

newtoken.png

Answer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTM5MDk2OTksImV4cCI6MTc2NjUwMTY5OSwic2VjIjoibGhkRHREcm9yVjM5cXprelQyYXR0eVc4ajlTTlZYTzciLCJ1aWQiOjI0MDQ3fQ.JukAJj92R6_vOv2Njh8oIJbGfK_2Sc0ymF_C2ldDXYc