SpyreStudios

Web Design and Development Magazine

  • Design
  • Showcase
  • Inspirational
  • Tutorials
  • CSS
  • Resources
  • Tools
  • UX
  • More
    • Mobile
    • Usability
    • HTML5
    • Business
    • Freebies
    • Giveaway
    • About SpyreStudios
    • Advertise On SpyreStudios
    • Get In Touch With Us

20 Tips to Secure Your Magento Store Without Extensions

September 10, 2018 by Spyre Studios

secure magento

Are you working on an online store on Magento? There is a 63% chance it is infected with at least one security issue.

Magento is free and open source, and that means, it is a very attractive platform for intruders, fraud and malware. It is second most attacked e-commerce platform, and that means, unless you have customers who trust you their payment information, your store is in danger. Any piece of personal information is a clue to stealing from you or your customers.

But there is also good news for you: even if your business is not making a fortune, you can afford a secure Magento. Below you will find obvious and not so obvious security measures, accessible for both Magento 1 and Magento 2.

Know your security patches

This tip is not a top secret. If you are using Magento of any version, update it as soon as you can. Updates are there for a reason, they cover last discovered compatibility and security issues for your Magento version. No software or extension can replace regular updates and original security patches. Speaking of which, there are two patches that are must-haves for functioning online stores:

  • SUPEE-9767. This patch adds an important setting to the Magento, which helps new customers register at the checkout. The setting is located at System > Configuration > Admin > Security.
  • SUPEE-6788 is a major patch in providing the security of the online store backend. Without this patch, there is a breach that allows anyone to access admin login page just by a direct link to the installed extension. Installing this patch cuts off any unauthorized users from your store admin area.

The patches above are the top priority ones for Magento 1, but with any new vulnerability, there comes a new patch, special for every version.

Get updates for PHP and Apache

This might be yesterday news, but PHP version older than 5.6 and Apache versions lower than 2.2 are not only a bad decision in terms of functionality, but also a dangerous practice for online business. There are no active support and updates for the older versions, and that means, you are left one on one with unexplored vulnerabilities, which will never be covered. But if you are to used to it, what are the dangers of not shifting to a newer version? Well, in 2016 alone there were more than 100 PHP-related issues reported, including XSS, malicious code execution, and DDoS attacks.

Find your way around admin settings

Everything you need to make sure only real administrators have instant access to the admin area is located under System > Configuration > Admin > Security in the admin panel. The settings you need to double check are:

  • Add Secret Key to URLs. enabling the setting closes your website from possible forgery attacks and commands from unauthorized users.
  • Login is Case Sensitive. A simple feature to provide better security at admin login by requiring complex usernames with letters and numbers.
  • Session Lifetime (seconds). By constraining time for sessions you make your admin team confirm their identity once in a period of time to continue working. Works best if set on minimum value.

secure magento

secure magento

There are a few more tabs with settings that can contribute to the store security.  You should pay attention and fill in:

  • Admin User Emails. If it happens that an admin forgets the password, the recovery link is highly confidential information. To protect it, you can restrict the time it works.
  • Admin Base URL. by default, all Magento stores have the same path to the admin area. For intruders, It doesn’t take much to guess the link for your store and exploit it with script attacks. Changing the link to a custom one is not a 100% hack proof solution, but works great.

magento captcha

magento security

Extra tip: you can change the URL in app/etc/local.xml file. A new link should be placed in the brackets instead of ‘admin’.

  • CAPTCHA. It is an old but golden rule for a secure login, available both for Magento 1 and Magento 2 at  System > Coрnfiguration > Advanced > CAPTCHA. You can adjust the requirements to your liking.

Take security measures on a server level

Magento security doesn’t end on Magento settings. Among the measures for your server side you can find useful the following ones:

  • You can’t overestimate a secure login. Enabling two-factor authentication via SMS for admin users is the fastest way to verify someone’s identity.
  • Keep the systems you are working with, like development, staging and testing away from public access. You can manage access by configuring IP whitelisting and .htaccess password protection.
  • Set appropriate and secure permissions according to this guide.
  • Make sure script launching is forbidden.
  • Schedule antivirus scanning once in a while. There are tools compatible with Magento like  ClamAV and Magento-malware-scanner.
  • For an extra layer of security, the default session_id can be changed to custom. It prevents cookie stuffing.
  • The parameters listed below should be set to low values.
    • app/etc/local.xml
    • dev/tests/functional/etc/config.xml
    • skin/error.php
    • dev/tests/functional/composer.json
    • var/resource_config.json 
    • includes/magmi
  • Block access to the .xml and json files, including:
    • php_value memory_limit
    • php_value max_execution_time
    • php_value max_input_vars
    • php_value suhosin.post.max_vars
    • php_value suhosin.request.max_vars
    • php_value upload_max_filesize
    • php_value post_max_size
    • php_value allow_url_fopen

As you can see, Magento settings can be interpreted very vastly. But do not fall for the comfort of usage when there is no restrictions for the admin users. If you spend a few more seconds at the login page, it won’t harm you or your data.

What else can I do to protect my site?

  • Bewareadd-onsdons, themes and third-party extensions you install. Double-check the source of any software before using it. Torrents and third-party websites are a no go, but you can trust to Magento Marketplace extensions and certified developers.
  • Backup all of your data automatically on a schedule. Make sure the location you back up to is closed for any outside access, and safe for keeping sensitive information.
  • Come up with a recovery plan that can be applied in the emergency situations.

With everything mentioned above, you can consider your Magento store safe for shopping and operating. But the techniques intruders are using are improving every year, and unfortunately, there is no guarantee one day there won’t be a breach you couldn’t foresee. For such cases, you can find all-in-one security kits among existing extensions. You can collect security features separately or try products like Security Suite for Magento.

Author’s Bio: Oksana Mikhalchuk is Content Manager at NEKLO, a software engineering company with a primary focus on ecommerce development for Magento. Oksana is dedicated to writing about marketing, web design and, of course, everything Magento-related.

Filed Under: Development, Ecommerce Tagged With: ecommerce, Magento, security

Recent Posts

  • 31 Fresh Design Elements for Spring and Easter
  • 10 Templates for Music Concert Flyers
  • How to Build a Web Scraper Using Node.js
  • Best PHP Books, Courses and Tutorials in 2022
  • How to Get Your First Web Design Client

Archives

  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • May 2008
  • April 2008

Categories

  • Accessibility
  • Android
  • Apps
  • Art
  • Article
  • Blogging
  • Books
  • Bootstrap
  • Business
  • CSS
  • Design
  • Development
  • Ecommerce
  • Fireworks
  • Flash
  • Freebies
  • Freelance
  • General
  • Giveaway
  • Graphic Design
  • HTML5
  • Icons
  • Illustrator
  • InDesign
  • Infographics
  • Inspirational
  • Interview
  • Jobs
  • jQuery
  • Learning
  • Logos
  • Matrix
  • Minimalism
  • Mobile
  • Motion Graphics
  • Music
  • News
  • Photoshop
  • PHP
  • Promoted
  • Rails
  • Resources
  • Showcase
  • Tools
  • Tutorial
  • Twitter
  • Typography
  • Uncategorized
  • Usability
  • UX
  • Wallpapers
  • Wireframing
  • WordPress
  • Work

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

SpyreStudios © 2022