|
|
|
|
|
by damncabbage
5533 days ago
|
|
> We have made PHP so easy that even your grandmother can do it. I'd wager it's so easy that even your grandmother can do it /badly/, while putting her business or data at risk. More seriously: Frameworks or languages that make it easy to be secure by default are a lot better, both for newbies who don't know better, or for old hands who slip up once or twice. The simplest example I can think of to illustrate the difference: <h1>Hi, <?php echo $name; ?></h1>
vs
<h1><%= name %></h1>
(Say "name" is "<script src=xss.js></script>". The former is vulnerable, the latter is not. Both are just as easy to write.) |
|