Articles found for the tag : Security

Securing your module 4/4 - Protect your template against XSS vulnerabilities

2 years ago

If you don't know what an XSS (Cross-Site Scripting) flaw is, I recommend that you do a quick search on the Internet. The most common XSS error is using GET or POST values in templates.

Securing your module 3/4 - Protect your code against SQL injections

2 years ago

Even though PrestaShop has been using the PDO library since version 1.5, it still does not call some important methods, such as bindParam() or bindValue(), which are designed to protect SQL queries. So we have to protect them manually.

Securing your module 2/4 - Disallow direct file access

2 years ago

Of your PHP files that are in your modules, you should only have class definitions and no dots - except for Ajax scripts (and again, you should only go through front or admin controllers). It is still recommended to prohibit access to all subdirectories containing PHP files or templates.

Securing your module 1/4 - Protecting yourself against Directory listing

2 years ago

Directory listing functionality is enabled by default on many web servers. And, depending on your host, it will be more or less easy to deactivate it.



Subscribe to Newsletter