DEV Community

Discussion on: PHP Security: Introduction

Collapse
 
alchermd profile image
John Alcher

PHP isn't secure by design.

Examples to back this statement up?

Thread Thread
 
devmazee2057282 profile image
dewbiez • Edited

I don't think PHP's secure by design, because they allow developers to be vulnerable by some of PHP's defaults. And actually Pert Soomann pointed one of them out.

Although I don't believe that's an issue in new versions of PHP.

And now-a-days I believe it's mostly developers' fault for insecure PHP applications. Especially since PHP-7.2.x ships with lobsodium for cryptography, htmlentities for XSS protection, filter_var for both validating and sanitizing variables(I don't see many apps use this though).