Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
132 lines (80 sloc) 9.3 KB

Heartbleed, Reverse Heartbleed, Poodlebleed, and More: A Mitigation Guide

It was suggested by a member of the Education Committee that the following draft guide be provided here. Please dive in and edit, add to, delete, modify, etc., as needed.

Guide Process to Mitigating Vulnerabilities, Step-by-Step

Key Steps: Upgrade and Check

I. Read this thing about backing up your bitcoin wallet, and also, upgrade or install Bitcoin Core. Vital.

Ia. Do you use services that rely upon a two-factor authentication app, such as Google Authenticator?
Make sure you take the below guidance (shown as the last step of part II).

II. Your Machines / Operating Systems / App(s) - Updating / Patching Heartbleed (and more) from Terminal First, open a terminal - how-to: in Ubuntu / similar, or for Mac / OSX, here or if you can try here.

Terminal is open? Great, now do the below commands depending on your operating system. Note it asks you for your password to continue once you hit enter after these commands, and it will prompt you Y/n at some point in the process, you want to type Y:

Mac / OSX: brew upgrade openssl

For OSX users, it is recommended to also see more detailed instructions here.

Debian / Ubuntu: sudo apt-get update && sudo apt-get upgrade (Once that's all done, for Ubuntu, read and check this.)

Fedora / CentOS: sudo yum update openssl

Regardless of the operating system shown above, the following is an important final step in this process: Type in your terminal, the following: openssl version Once you've typed this in and hit enter or return, it should return the most recent version as shown here. Later releases will result in a higher numbered version with a later date associated with it. If you didn't see the most current version appear, please follow the more detailed instructions below, under the section titled, 'What if I couldn't update to the most current version?'

Important Notes!

If you are running the terminal commands shown above (for Mac / OSX, Debian / Ubuntu, or Fedora / CentOS) on or after May 5, 2014, be sure to also check again your OpenSSL version (see below):

Some key commands from terminal to get you information you need about your openssl:

openssl version

For more detailed information:

openssl version -a

You can obtain even more information, depending on your operating system, with these commands:

(Debian / Ubuntu) dpkg -l | grep "openssl"

(CentOS / Fedora) rpm -q -a | grep "openssl"

(ArchLinux) pacman -Q | grep "openssl"

'What if I couldn't update to the most current version?'

If you've done everything recommended above, and the version present on your system still does not match the most current OpenSSL version available, which can be found marked as 'latest' at the OpenSSL binaries page, then review the instructions here. Note that the instructions shown at that link were written for the initial heartbleed mitigation in early April, and do not address the security issue released on June 5, 2014 or any future notices (see also, as an example, Masashi Kikuchi's post of June 5, 2014). For this reason, it is important that you ensure that after checking by using the openssl version command as shown above, that you check it against the most current OpenSSL version available and update accordingly. Thus, if the update and upgrade commands mentioned earlier in this post did not update OpenSSL on your system, the commands you would use would look like this:

(Note that the following corrects both heartbleed and poodlebleed vulnerabilities as of Oct. 15, 2014.)

(Copy and paste all of the following into your terminal and press enter)

curl https://www.openssl.org/source/openssl-1.0.1j.tar.gz | tar xz && cd openssl-1.0.1j && sudo ./config && sudo make && sudo make install

(Next, when that's done, copy and paste the following into your terminal, and press enter)

sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`

By copying and pasting the two lines shown above, you can ensure update to the most current OpenSSL version. Close all open things and restart your computer after you are done. Note that as the version changes in the future, you can always use these same commands, but instead of openssl-1.0.1j.tar.gz appearing in parts of the first line (where it appears after: curl https://www.openssl.org/source/ with a tar.gz extension and where it appears after: cd (just as the openssl file name)), you will replace that text with whatever OpenSSL version is released as most current in the future, prior to using the commands shown above.

You can also list all available ciphers, as follows:

openssl ciphers -v

Other notes, the most current OpenSSL version and FAQ, and additional details are found here.

Earlier in this guide Google Authenticator was mentioned. If you're using that, or another app intended to facilitate two-factor authentication, check the app and make sure that: 1) it is up to date, 2) if it isn't, update it, 3) if it has codes to authorize you into sites that are vulnerable to heartbleed, you may wish to not authorize into those sites until they get their stuff fixed, as a precaution.

If you are using Apple, do not rely solely upon Apple's automatic upgrades. Check your version(s) by following the process above. If you are using Windows or Apple, it is recommended you migrate off of those operating systems. Consider dual-boot options for Apple or for Windows to ease your migration process away from such operating systems. Ubuntu is one example that may work for you, although there are many others.

Passwords You Need To Change, Things That You Probably Need To Test

You can check for what passwords you should change - if you haven't already - here, and there's a handy site that allows you to test your site or any site on the internet for free for various issues and vulnerabilities.

Reverse Heartbleed

Reverse Heartbleed? Yes, there is such a thing. This tool checks for vulnerabilities in traditional clients - such as Dropbox, apps in iOS / Android, and more - and open agents, including social networks, webhooks, and more, via 'reverse heartbleed.' This is detailed in a handy blog post here. You may need some help to do this checking ~ get some if you need it ~ but if you haven't checked it yet and you understand what to do, have fun!

Github

If you are reading this, you use github. Read Github's entire page - it's not that long - on what to do to address the issues. You may also want to visit your settings, and remove any authorized applications you have that have not yet fixed for heartbleed or reverse heartbleed. If you haven't done this lately, go to account settings, two-factor authentication section (which should be on!) and note your recovery codes.

Web Servers

If you are running a server, this heartbleed guide contains steps to the rekeying process. This is relevant for those who have purchased SSL certificates from a provider.

You should also start checking for SHA-related problems now, if you have not already. For that, use the SHA check site provided by Eric Mill.

Finally, read considerations for businesses and managers of servers listed at this useful Symantec post, which addresses the poodlebleed issues in some detail.

ResetTheNet

Consider making everything you do more secure. This will help you and many others. Check out ResetTheNet to learn more.

In closing, if there's something missing or flawed or just needs to be changed here, please by all means dive in and add, change, make a pull request, etc. This is intended to help everyone. Thanks in advance!

ResetTheNet