Skip to content

Instantly share code, notes, and snippets.

View omega8cc's full-sized avatar

BOA Dev Team omega8cc

View GitHub Profile
v190q:~# su -s /bin/bash - aegir
aegir@v190q:~$ which sass
/usr/local/bin/sass
aegir@v190q:~$
@omega8cc
omega8cc / gist:32a1a02b036d7e9bf124
Last active August 29, 2015 14:04
How to mitigate DRUPAL-SA-CORE-2014-004
How to mitigate DRUPAL-SA-CORE-2014-004 related to xmlrpc.php DoS Vulnerability on any BOA system:
sed -i "s/|xmlrpc//g" /var/aegir/config/includes/*.conf
sed -i "s/|xmlrpc//g" /data/disk/*/config/includes/*.conf
service nginx reload
Details: https://www.drupal.org/SA-CORE-2014-004
$ apt-get install openssh-server -f -y --force-yes --reinstall
$ apt-get install openssh-client -f -y --force-yes --reinstall
$ apt-get install ssh -f -y --force-yes --reinstall
$ aptitude install openssh-server
$ aptitude install openssh-client
$ aptitude install ssh
$ echo "openssh-server install" | dpkg --set-selections
$ echo "openssh-client install" | dpkg --set-selections
Submitted by admin on Wed, 09/17/2014 - 08:44
Site: q5.civi-pro.o1.base.qq.o8.io
Status: Failed
Executed: Wed, 09/17/2014 - 08:44
Execution time: 8 sec
Log message
Log message
Task starts processing
Returned from hook drush_hosting_task_validate
Submitted by admin on Wed, 09/17/2014 - 17:32
Site: latest.d6.civi.o1.base.qq.o8.io
Status: Failed
Executed: Wed, 09/17/2014 - 17:32
Execution time: 9 sec
Log message
Task starts processing
Returned from hook drush_hosting_task_validate
Calling hook drush_hosting_alias_pre_hosting_task
Submitted by admin on Wed, 09/17/2014 - 17:41
Site: test.d7.civi.o1.base.qq.o8.io
Status: Successful
Executed: Wed, 09/17/2014 - 17:41
Execution time: 15 sec
Log message
Task starts processing
Returned from hook drush_hosting_task_validate
Calling hook drush_hosting_alias_pre_hosting_task
Returned from hook drush_hosting_alias_pre_hosting_task
Submitted by admin on Wed, 09/17/2014 - 18:14
Site: ok.d7.civi.o1.base.qq.o8.io
Status: Successful
Executed: Wed, 09/17/2014 - 18:15
Execution time: 13 sec
Log message
Task starts processing
Returned from hook drush_hosting_task_validate
Calling hook drush_hosting_alias_pre_hosting_task
Returned from hook drush_hosting_alias_pre_hosting_task
Submitted by admin on Thu, 09/18/2014 - 19:32
Site: crm45.d6.civi.o1.base.qq.o8.io
Status: Failed
Executed: Thu, 09/18/2014 - 19:34
Execution time: 9 sec
Log message
Log message
Task starts processing
Returned from hook drush_hosting_task_validate
Submitted by admin on Thu, 09/18/2014 - 19:52
Site: prof.crm45.d7.civi.o1.base.qq.o8.io
Status: Successful
Executed: Thu, 09/18/2014 - 19:53
Execution time: 15 sec
Log message
Task starts processing
Returned from hook drush_hosting_task_validate
Calling hook drush_hosting_alias_pre_hosting_task
Returned from hook drush_hosting_alias_pre_hosting_task
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 1f69df1f13c4d22fcb93c8388906341ba1564d14..bf6500a738f9edbbc36ae36bec6b0416b0583270 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -880,7 +880,13 @@ function _drush_bootstrap_drupal_configuration() {
if (is_array($url)) {
$url = $url['default'];
}
+ drush_log(dt('DEBUG DRUSH_DB_CREDENTIALS A @url', array('@url' => $url)));
+ if (preg_match("/@:3306/", $url)) {