Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not validate SSL certificates #21

Closed
evgeni opened this issue Jan 1, 2012 · 1 comment
Closed

does not validate SSL certificates #21

evgeni opened this issue Jan 1, 2012 · 1 comment

Comments

@evgeni
Copy link

evgeni commented Jan 1, 2012

Heya,

when using identi.ca¹, bti does not check the SSL certificate, leading to a MITM.

to reproduce:

  1. start a httpd with a random cert on port 443
  2. put "127.0.0.1 identi.ca api.identi.ca api.twitter.com twitter.com" in /etc/hosts
  3. call echo blah | bti --account a --password b --host identica

result:

127.0.0.1 - - [01/Jan/2012:22:44:04 +0100] "POST /api/statuses/update.xml HTTP/1.1" 404 1162 "-" "-"
in the access.log of the wrong identi.ca httpd :)

¹: this would apply to twitter too, ofc, here the mitm is limited to the OAuth authentication step though

@gregkh
Copy link
Owner

gregkh commented Jan 1, 2012

Patches to do this would be appreciated if you feel it is something that should be resolved.

@gregkh gregkh closed this as completed Jan 22, 2012
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

No branches or pull requests

2 participants