r/Magento • u/Traejen DEVELOPER (Mage-OS core team) • Oct 23 '15
Automating SUPEE-6788 patch fixes
As you may have heard, Magento has a new security patch coming out soon, and a lot of extensions will be affected.
Not a good situation.
The patch impacts are obviously far-reaching.
We don't know to what extent any given site is actually impacted by the changes, nor how long it will take to resolve all issues.
Even after covering the basics, we have no assurange that we didn't miss something.
Not patching sites, or patching development and waiting until all issues are tested and resolved before deploying, is not an option. There's no telling how long that process may actually take. Leaving a site vulnerable for any extended period of time is unacceptable.
There is no promise that extension developers will resolve issues with their extensions promptly, or that those fixes will actually be available without re-purchasing the extension.
If we have to resolve the conflicts manually, that's a very intensive process. Dozens or hundreds of files to touch on any given install, and zero room for error.
So, I've written a script to handle most of the grunt work. And since everyone else is going to be dealing with the same issues, we're releasing it to all.
Throw this into a Magento install and it will tell you exactly where the problems are, and can even try to fix them.
I'm not going to pretend the script is flawless. I've done some testing and it went well, but only have so much time to work with. I'm hoping that by releasing it now, others have a chance to try it out and maybe make it even better.
Script and details are up on GitHub: https://github.com/rhoerr/supee-6788-toolbox
Hope this helps.
1
u/magebitsupport Oct 30 '15
Here is an extension that fixes the whitelist blocks issue (layout blocks will not be broken anymore). http://supee6788.magebit.com/
The extension will automatically add all blocks to whitelist on first run. After that it is possible to turn on/off automatic whitelisting. This is the only automatic way available for servers without SSH till now.
1
u/Traejen DEVELOPER (Mage-OS core team) Oct 30 '15
...if anything that isn't on the whitelist gets automatically added, doesn't that defeat the entire purpose?
I'm not sure what kind of host you're using that doesn't allow SSH.
1
u/magebitsupport Oct 30 '15
No, it just does it once. After that it gets automatically disabled. It is also possible to put time when to shut the extension down.
For example, you have to update 4 environments. Running the fix on all would be pain so it is easier to fix the whitelist issue automatic.
Another example is you are working on a site on multiple environments that is not live yet. You can set to auto whitelist blocks till the golive date so you don't have to run the fix/whitelist blocks manually.
3
1
u/AmastyLtd Oct 29 '15
Some of our extensions have also been affected by the patch. We have already updated most of them, you can see a list at https://blog.amasty.com/supee-6788-qa-about-extensions-and-security-patch-compatibility-important/ The updates connected with Magento Security Patch SUPEE-6788 are provided for free.
1
2
u/singumsupermint Oct 23 '15
Thanks. Are you using tab, instead of space as Magento standard, for indent?