Reputation: 917
Hi I am looking for advice regarding protection and testing against attacks on your php website.
I have found some advice myself by searching around and I hope the more experienced developers have more suggestions and can fill in the blanks. please help out if you can so we can make safer and better websites.
First some common attacks against websites:
1. Server side: port scanning (1.1)
2. websites: Cross-site scripting, (2.1) Injection attacks, (2.2) Cross-site request forgery, (2.3) Broken authentication and session management, (2.4) Insecure cryptographic storage, (2.5) Insecure Communications, (2.6) information Leakage (2.7)
How to test:
how to fix in php (and preferably codeigniter,cakephp/symfony/zend):
1.1 close your ports? (except for 80 and 465?)
2.1
$config['global_xss_filtering'] = TRUE;
(codeigniter)
please help out if you can
thx
Upvotes: 1
Views: 1981
Reputation: 1176
Unfortunately security is much more than a list of tests. Before I continue on technical details you should first understand that the largest security issue is between keyboard and chair. So:
For the server (assuming you use a linux/unix/bsd environment):
You can test your application with all kind of security tools (like Nikto, Paros/Burp proxy, nmap, ...) but in fact since you wrote the application you can do a much better security test yourself.
httponly
(does not work in all browsers yet)There are also a lot more attacking vectors; probably to much for a regular developer to be aware of. Your application is secure by writing it secure and not by doing all sorts of tests. Use tests as a confirmation, in short: code secure.
Upvotes: 4