r/programming • u/sarciszewski • Nov 25 '15
Don't use the OWASP PHPSec Crypto Library
https://gist.github.com/paragonie-scott/91893fdb18ee4d1a1b95
38
Upvotes
r/programming • u/sarciszewski • Nov 25 '15
View all comments
Show parent comment
3
u/terrkerr Nov 25 '15
PHP makes it really, really easy to write file-inclusion vulnerabilities. It took far longer than is reasonble for PHP to at least offer immunity to the NULL poison byte in URLs.
The combination of the include/require system and the fact text outside a <?php ?> block will be echoed to the client by default is a dismal mess.
In theory you can readily guard against this, sure, but in practice I've seen plenty of devs write FI bugs again and again because it's so amazingly easy and so close to what the actual recommended way in a lot of tutorials and the like.