Re:Comodo “Chromodo” Browser disables same origin policy
by sarciszewski on Tuesday February 02, 2016 @07:44PM
(#11023939)
That's the more sound advice.
Also, random_bytes() > openssl_random_pseudo_bytes() :P
Though if you use random_compat[1] it might be the same function ;)
>PHP Object Injection in PHP 7: either disable object loading or whitelist the allowed types; i.e. unserialize($var, false); or unserialize($var, ['DateTime']);
I'd stick to not unserializing user input in both cases, that's a can of worms you just don't want to open.
Also, RNG bugs are common and exploitable enough to be worth noting: Never use mt_rand, stick to openssl_random_pseudo_bytes.