Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Verify ssl cert #12

Closed
wants to merge 2 commits into from
Closed

Verify ssl cert #12

wants to merge 2 commits into from

Conversation

picatz
Copy link

@picatz picatz commented Oct 14, 2017

I noticed last night that this gem had the peculiar OpenSSL::SSL::VERIFY_NONE verification mode when making requests to the Shodan API. This mode doesn't perform any verification.

This can leave communication susceptible to man in the middle attacks, which I'm sure we'd much rather avoid. So I've explicitly changed that to OpenSSL::SSL::VERIFY_PEER to verify our peer.

This PR should have no real effect on the typical usage of this gem, other than making it safer. 馃憤

This helps our communication from being tampered with from man in the
middle attacks. We want to verify the SSL certificate of the API,
basically always.
To match the style in Shodan class including explicitly setting the
verification mode to VERIFY_PEER to prevent man in the middle attacks.
@picatz
Copy link
Author

picatz commented Oct 14, 2017

Just noticed this exact issue was brought up a few years ago by @azet : #7

@picatz
Copy link
Author

picatz commented Oct 29, 2017

@achillean 馃悰

@picatz
Copy link
Author

picatz commented Dec 28, 2017

@achillean 馃

@picatz
Copy link
Author

picatz commented Dec 28, 2017

@achillean 鉂わ笍

@noraj
Copy link

noraj commented Feb 1, 2020

@achillean 鈽庯笍 ? Maybe archiving this project?

@achillean
Copy link
Owner

Sorry, yes this project should probably get archived. We actually don't link to this project anymore on the developer website. Instead, we refer to the excellent https://github.com/picatz/shodanz gem developed by @picatz

@picatz picatz closed this Sep 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants