No SSL server certificate validation → No SSL MITM protection #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Even if using HTTPS, you are manually deactivating SSL server cert verification.
https://github.com/ConradIrwin/showterm/blob/5df9541b381037c4dba5208d56340e4f29fe5847/lib/showterm.rb#l168
I just checked the hard-coded HTTPS URL, and my firefox says the certificate is valid, so ruby should not say otherwise and this is not even necessary.
In this case, an even better option than just enabling SSL cert verification is to enable it and hardcode the server cert's public key(s). Since, after all, the URL is hardcoded, too, this does not make much of a difference except for increasing transport security.
The only thing left to do now is to move to a host with proper SSL support, since otherwise anybody with a heroku account can still MITM you because there is only one cert for all of *.herokuapp.com.