Skip to content

Conversation

@igrigorik
Copy link
Owner

Closes #339, CVE-2020-13482

Credit to Mislav Marohnić for original implementation, merged from Faraday.

Closes #339, CVE-2020-13482

Credit to Mislav Marohnić for original implementation, merged from
Faraday.
@agustingianni
Copy link

LGTM

@igrigorik igrigorik merged commit e5fa144 into master Jun 1, 2020

def ssl_handshake_completed
unless verify_peer?
warn "[WARNING; em-http-request] TLS hostname validation is disabled (use 'tls: {verify_peer: true}'), see" +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be conditional? If a caller explicitly doesn't want to verify_peer and they do

EventMachine::HttpRequest.new(url, opts.merge({tls: {verify_peer: false}})

It seems unnecessary kick this warning out...

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's reasonable. Willing to put together a quick patch? :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. How about #341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security vulnerability: missing SSL hostname validation

4 participants