GithubHelp home page GithubHelp logo

piotrsiejczuk / magento-security-checklist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talesh/magento-security-checklist

0.0 1.0 0.0 15 KB

A Magento community sourced security pre-flight checklist.

License: BSD 3-Clause "New" or "Revised" License

magento-security-checklist's Introduction

Magento Security Checklist

This is a community sourced checklist of security measures to take before launching your store. Think of it as a pre-flight checklist so you don't forget something important because you've been in a headlong rush for the last few months to get all the features of your eCommerce site built.

This checklist will apply to only Magento 2.x versions.

Custom code

  • Are all inputs validated on the server side? (Link to volidation tutorial)
  • Are you sanitizing all inputs also? (eg: casting to integers if a number is expected?)
  • Are you using Magento built in form_key validation on all custom forms? (Link for more info on CSRF Anti-forgery tokens)
  • Are you properly escaping all output to screen using escapeHtml(), escapeJs() and similar functions?
  • Are you setting HttpOnly and Secure flag on any custom cookies?
  • Are you using the Magento\Config\Model\Config\Backend\Encrypted backend model for sensitive API data to be stored in the DB? eg: payment gateway keys.
  • Are you using any dynamic code execution functions like eval, shell_exec? (Exploitable PHP functions)
  • Are you building MySQL queries properly, and not using direct queries?
  • Are all sensitive or system specific settings treated as sensitive configuration? (DevDocs on sensitive configuration)

Extension security checklist

  • Do you have the latest version of all the extesions being used on the site?
  • Are all you extensions using Magento ACL properly to limit the scope of users?
  • Did you perform a security audit on 3rd party extensions used on the store? (Link to sample tools to help perform security audit on extensions)

Magento Admin settings

  • Are you using a custom Magento Admin URL?
  • Is access to your Admin URL IP whitelisted or protected via VPN?
  • Confirm that Web -> Default Cookie Settings -> Use HTTP Only is not disabled?
  • Are you using 2FA for your admin login? For example MageSpecialist TwoFactorAuth module
  • Are there any old/unused admin users which were created for testing or development that should be removed?

Server settings

  • Is your site logging information in a format that is easily reviewed by your team?
  • Is your site logging any potentially sensitive information?
  • Is everything running on HTTPS?
  • Do you have notifications turned on for filesystem integrity?

Regular Maintenance

  • Do you have an Incident Response Plan implemented and tested (mock scenario)? (Magento Incidence Response Plan template
  • Do you have a person with regular scheduled time to review log messages for suspicious behaviour?
  • Do you have a person with a subscription to security notices from Magento security blog for urgent patches/updates? (Link to security blog)

Web-Application

  • Are there any (development) files or database dumps lying around in the document root that are not intended for public useage (for example info.php, phpinfo.php, dbdump.sql.gz)?

External security concerns

magento-security-checklist's People

Contributors

talesh avatar avoelkl avatar renttek avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.