Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good Php Framework for strong security [closed]

I'm trying to choose a framework that provides really good security of web applications, protects against as much of OWASP Top-10 as possible, such as:

  • Sql Injection
  • XSS
  • CSRF
  • Authentication
  • Authorization
  • etc.

the thing is I've tried researching really heavily: Cakephp, Zend, Yii, Code Igniter, Kohana and some have basic authentication, maybe a little authorization, but nothing for any application that needs solid code-security.

Is most of the vulnerability types above currently secured by only writing custom code in these frameworks?

This is kinda my first experience with using frameworks, everything up til this point has been custom php web apps. My whole thought for php-frameworks was it was going to be easy to protect against these vulnerabilities, given it isn't natively, why use one? Or is there a framework out there I'm not looking at which is better than those listed above for strong web app security? Thanks

like image 969
CodeTalk Avatar asked Oct 25 '12 17:10

CodeTalk


People also ask

What is the fastest PHP framework?

Phalcon is a full-stack PHP framework whose source code is written in the C programming language. Using the framework doesn't require knowledge of C as it uses PHP classes and its namespaces. Phalcon is one of the fastest PHP frameworks available. It's very lightweight and uses an MVC architecture.

Is Laravel better than PHP?

PHP vs Laravel are both well-suited frameworks for building PHP based web apps with effective solutions. With PHP, the development solutions might comparatively be more straightforward, and on the other hand, Laravel offers more variety in terms of tools and resources, making it reliable.


1 Answers

I'd also say try CodeIgniter.

  • Sql-Injection - If you use the active record pattern in CodeIgniter you're secure
  • XSS - It's a config value in config.php
  • CSRF - Also a config value in config.php
  • Login etc. - There are libraries for that like https://github.com/EllisLab/CodeIgniter/wiki/SimpleLoginSecure

Also CodeIgniter is easy to use if you're working with a framework for the first time and has a great user guide which is really easy to understand.

Edit: Since I'm still getting upvotes here in 2019, please check https://laravel.com/

like image 151
Evo_x Avatar answered Oct 06 '22 23:10

Evo_x