Better HN
topnewbestaskshowjobs
Log inSign up

padraicb

1 karma · joined Mar 18, 2011 (15y ago) · 5 submissions

Submissions

comment 12y ago · link · parent

1) Agreed. 2) Citation? PHP is extremely popular so it has more insecure code in comparison to Ruby. Also Rails isn't above multiple security vulnerabilities per year so I don't see how Wordpress (which incidentally is an extremely old application) could be. 3) Testing is extremely popular these days. It's 2014, not 1999. 4) Agreed. PHP finally got shut of PEAR and Composer has had an unbelievable impact on PHP. 5) PHP 5 was released 10 years ago. Give it up already about procedural code. 6) Agreed. 7) Not my experience. 8) PHP has a massive community. Ergo, it has a long tail of frameworks. I seem to remember that Ruby has had more than one.

2.

PHP RFC: Consistent Escaping Functionality For Killing XSS(blog.astrumfutura.com ↗)

1 points · by padraicb · 14y ago · discuss

3.

PHP Security, Authorative Knowledge and Combining Forces(blog.astrumfutura.com ↗)

1 points · by padraicb · 14y ago · discuss

4.

PHP Security: Default Vulnerabilities and Security Omissions(blog.astrumfutura.com ↗)

1 points · by padraicb · 14y ago · discuss

comment 14y ago · link · parent

Problem with HTML escaping by default - it's not all HTML escaping. Javascript strings need to be JS escaped, sometimes escaped by HTML as a second (or even first) step to complete the correct encoding needed to avoid XSS for the specific context(s) that output actually ends up in for a browser. Same for CSS, URIs, vbscript, parameters, etc.

HTML escaping is not the one and only escaping strategy that magically makes everything safe. So any automated system would need to incorporate overrides on a per variable basis.

http://blog.astrumfutura.com/2012/06/automatic-output-escapi...