This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Loop through all directories in the current directory | |
for dir in */; do | |
# Enter the directory | |
cd "$dir" | |
# Check if the directory is a git repository | |
if [ -d ".git" ]; then | |
# Reset the repository to the latest version and pull the latest changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$time_start = microtime(true); | |
// MAGENTO START | |
require dirname(__FILE__) . '/../app/bootstrap.php'; | |
use Magento\Framework\App\Bootstrap; | |
$bootstrap = Bootstrap::create(BP, $_SERVER); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/vendor/magento/module-sales/Model/Order/Email/Sender.php | |
+++ b/vendor/magento/module-sales/Model/Order/Email/Sender.php | |
@@ -73,6 +73,20 @@ | |
*/ | |
protected function checkAndSend(Order $order) | |
{ | |
+ $possibleExploitTags = ['{{', '}}', '()', '.()', 'base64_', 'this.', 'addAfterFilterCallback', '.filter', '.Filter', 'getTemplateFilter']; | |
+ $addressArray = $order->getAddressesCollection()->toArray()['items']; | |
+ $addressStringCombined = ""; | |
+ foreach ($addressArray as $addressArrayItem) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Based on commit: https://github.com/bentideswell/magento2-wordpress-integration/commit/b277b35697ff2c1e9e5dd48c6642a761ddb73a2b | |
if (php_sapi_name() == 'cli' && empty($_SERVER['REMOTE_ADDR'])) { | |
require dirname(__FILE__) . '/../app/bootstrap.php'; | |
$cacheDir = BP . '/var/cache'; | |
$infectedFiles = []; | |
$it = 1; | |
$messages = []; |