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 -ddecode it. - Change the admin value from 0 to 1 (true).
- URL encode it and then
base64encode 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 -decode it. - Change the string value
wienertoadministratorand update theslength accordingly. (word | wc -m). - Remember
sstands for string, so change it tointeger 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