Skip to content

Conversation

@wunused
Copy link

@wunused wunused commented Nov 27, 2023

The PHP unserialize function can take an optional parameter allowed_classes to restrict the set of allowed classes that can be deserialized (https://www.php.net/manual/en/function.unserialize.php). When an application has a restricted set of allowed classes at an unserialize call site, an exploit can only use gadgets from the set of allowed classes.

We extended FUGIO to support the semantics of the allowed_classes optional parameter.

This was necessary to evaluate our mitigation for deserialization vulnerabilities that automatically determines a correct set of allowed_classes, and we hope that it can benefit other researchers in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant