Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: PHP Deserialize - NULL values are incorrectly converted to JSON #641

Closed
nanawel opened this issue Sep 19, 2019 · 1 comment · Fixed by #655
Closed

Bug Report: PHP Deserialize - NULL values are incorrectly converted to JSON #641

nanawel opened this issue Sep 19, 2019 · 1 comment · Fixed by #655

Comments

@nanawel
Copy link

nanawel commented Sep 19, 2019

The NULL value in a PHP-serialized input string is not correctly converted which then break any JSON operation that comes next.

a:1:{i:0;N;}

gets converted to

{"0": }

which is not a valid JSON string.

Check out the demo here: https://gchq.github.io/CyberChef/#recipe=PHP_Deserialize(true)JSON_Beautify('%20%20%20%20',false)&input=YToxOntpOjA7Tjt9

@Storms-Engineering
Copy link
Contributor

Can I get assigned to this?

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

Successfully merging a pull request may close this issue.

3 participants