Insecure deserialization - gachikuku/portswigger GitHub Wiki
Apprentice lab:
Modifying serialized objects
Apprentice lab:
Modifying serialized objects
-
Solution
- Log in as
wiener:peter
. - Check the cookie set from the website.
- URL decode it and then
base64 -d
decode it. - Change the admin value from 0 to 1 (true).
- URL encode it and then
base64
encode it. - Use the modified cookie, Rfresh and access Admin panel to delete carlito.
- Log in as
Practitioner lab:
Modifying serialized data types
Practitioner lab:
Modifying serialized data types
-
Solution
- Log in as
wiener:peter
. - URL decode and
base64 -d
ecode it. - Change the string value
wiener
toadministrator
and update thes
length accordingly. (word | wc -m
). - Remember
s
stands for string, so change it toi
nteger and set it to 0. - URL encode and base64 encode it (
echo -n 'string' | base64 | jq -rR @uri
). - Set it as a cookie.
- Log in as