What about OWASP Top 10

274 views
Skip to first unread message

danny

unread,
May 14, 2012, 6:58:43 AM5/14/12
to play-framework
Lift is very safe (so Lift says) how good is Play 2 at OWASP Top
10 ?

Thanks
Danny

Julien Tournay

unread,
May 14, 2012, 8:40:51 AM5/14/12
to play-fr...@googlegroups.com
Hi,

Every single language out here has an API escaping SQL parameters. This is typically an bad usage of those API (building query using string concat).
No framework will protect you from being stupid, but some API makes it easy to have injection issues (PHP).

Typically not directly related to your web framework, it's more a template engine issue. Play default engine escapes HTML by default.
Any decent template engine should do that by default, jsp does not...

Again, fwk can give you nice API's and helpers, but pretty much every app out there manage auth differently. It's up to you to do it correctly.

Again, app dev error. The fwk can't do much for you here.

A5-Cross Site Request Forgery (CSRF)
I've made a module for that https://github.com/jto/CSRF. But again, if you do database updates on GET requests, too bad for you.

A6-Security Misconfiguration
Dev error. Fwk can't do much. Typical example, for years, the most common security issue on mysql was people not changing the default root password (which was no password).

Once again, it's up to you to decide what to crypt and what not. Play has Helpers.

The security class should help.

HTTPS conf issue. Not even closely related to the web framework you choosed.

A10-Unvalidated Redirects and Forwards
Again, the fwk just can't prevent you from doing this.

Summarizing, I really don't like people claiming that your app is secured just because you're using their framework.
It's giving developer a false feeling of security, while for most vulnerabilities, the framework can help, but can't prevent you from doing something stupid.

jto.

Reply all
Reply to author
Forward
0 new messages