Skip to main content
Blog General

Installing Magento Security Patch SUPEE-9767 v2

Chandran
July 14, 2017 |

The need for the most secure eCommerce platform is here. Check out our Magneto services for your business.

Magento has released a new security patch SUPEE-9767 v2. This patch is of high priority and Magento 1.x merchants have to apply it immediately.

Magento Security Patch

This patch provides protection against several types of security-related issues, including remote code execution, information leaks, and cross-site scripting.

Before installation:

Before installing the patch, check if the old patches have been installed correctly. Some patches depend on other patches to be installed already. You can use magereport.com to check the patches installed in your site.

Preparations:

  • Disable Magento Compiler and clear compiler cache
  • Disable Symlinks setting. In the Magento backend, navigate to System > Configuration > Advanced > Developer > Template Settings > Enable Symlinks and set it to No, if it is not set already.
  • You can upgrade to the latest version (1.9.3.4), or revert SUPEE-9767 v1 and then you can apply the SUPEE-9767 v2 of the patch. Either option will resolve the issue.
  • Be sure to test the patch in a development environment first, as it can affect extensions and customizations.

How to Revert a SUPEE-9767 v1 Security Patch?

Enter the following command to write to Magento files (typically, the web server user or root):

sh patch-file-name.sh –R

Installing the Patch:

If you have SSH access, it would be simpler to install the patch.

Before installing the patch make sure to disable Magento Compiler at System > Configuration > Tools > Magento Compiler and clear compiled cache (if a compiler is used).

To apply and revert the Magento security patch, please refer the link below.

http://devdocs.magento.com/guides/m1x/other/ht_install-patches.html#apply


After Installing the Patch:

After the patch has been installed successfully, check whether all sessions, check out, shipping, payment and landing pages are loading correctly without any issues.

Magento security patch SUPEE 9767 v2 affects the page sessions, check-out, file upload, admin pages and downloadable products.

What are the Main fixes in SUPEE 9767 v2?

  • General Fixes

    • Restored missing strip_tags functionality in the checkout JavaScript.
    • Changed how Magento validates form keys during the generic five-step checkout process. Previously, customer registration failed during standard checkout processing if form key authentication was enabled.
    • Magento now displays the Allow_symlinks message in the Admin message area as expected.
    • Magento now preserves the background transparency of uploaded images as expected. Previously, transparency was lost after the image was uploaded, resulting in an unusable image. You can now use Checkout with Multiple Addresses when checkout form validation is enabled.
  • Installation

    • You can now install an extension as part of installing a package.
    • The Allow symlinks option is now disabled during installation or upgrade processes. Previously, when you changed the Allow symlinks setting to true in the database before upgrading and then installing the patch, this option remained enabled, but you could no longer access it from the Admin panel.

Challenges:

The patch adds getBlockHtml(“formkey”) ?> to the following template files:

app/design/frontend/base/default/template/checkout/multishipping/addresses.phtml

app/design/frontend/base/default/template/checkout/onepage/payment.phtml

app/design/frontend/rwd/default/template/checkout/onepage/payment.phtml

Anybody overwrite in your local file. Please add formkey.

Hope this was helpful. Please post your queries if you face any issues in installation.

References

Chandran

Ramachandran, known for his expertise in developing numerous eCommerce projects at DCKAP for over a decade. Currently handling DCKAP's product suite as a product manager and is now heading towards marking new milestones in his upcoming journey.

More posts by Chandran