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

Security improvements: use valid HTTPS where possible #624

Closed
wants to merge 3 commits into from

Conversation

cjthornton
Copy link

These minor changes use valid HTTPS for outgoing connections to different services or web requests in general. The different APIs are available over HTTPS now (including ipinfo which allows its IP lookup @ https://ipinfo.io/ip for free).

As for the general webaccess.get and webaccess.post, verifying TLS/SSL ensures that the connection is secured, avoiding man in the middle attacks or otherwise connecting to a service with any form of invalid cert. This makes for better standard security overall.

I see that #138 exists but if a device's SSL is broken or old that it can't connect to a valid https:// address, then there's a lot wrong with the device/system. If broken SSL implementations had to be supported, then another option could be to add a "Don't verify SSL" option to the settings (eg how SABnzbd does it). In that case, the default should be to always verify and maybe add a warning message in the UI against disabling the setting.

By default, the requests library verifies TLS certs so this improves security. As it was, any outgoing requests through these methods could have been man-in-the-middled.
@theotherp
Copy link
Owner

Thanks. I will take over your changes and add a configuration to switch the behavior. For this I will add the changes manually and reject this PR, so you know.

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.

2 participants