Are HTTPS URLs encrypted?

前端 未结 14 1896
无人共我
无人共我 2020-11-22 04:26

Are all URLs encrypted when using TLS/SSL (HTTPS) encryption? I would like to know because I want all URL data to be hidden when using TLS/SSL (HTTPS).

If TLS/SSL gi

相关标签:
14条回答
  • 2020-11-22 04:48

    Yes and no.

    The server address portion is NOT encrypted since it is used to set up the connection.

    This may change in future with encrypted SNI and DNS but as of 2018 both technologies are not commonly in use.

    The path, query string etc. are encrypted.

    Note for GET requests the user will still be able to cut and paste the URL out of the location bar, and you will probably not want to put confidential information in there that can be seen by anyone looking at the screen.

    0 讨论(0)
  • 2020-11-22 04:48

    You can not always count on privacy of the full URL either. For instance, as is sometimes the case on enterprise networks, supplied devices like your company PC are configured with an extra "trusted" root certificate so that your browser can quietly trust a proxy (man-in-the-middle) inspection of https traffic. This means that the full URL is exposed for inspection. This is usually saved to a log.

    Furthermore, your passwords are also exposed and probably logged and this is another reason to use one time passwords or to change your passwords frequently.

    Finally, the request and response content is also exposed if not otherwise encrypted.

    One example of the inspection setup is described by Checkpoint here. An old style "internet café" using supplied PC's may also be set up this way.

    0 讨论(0)
  • 2020-11-22 04:50

    A third-party that is monitoring traffic may also be able to determine the page visited by examining your traffic an comparing it with the traffic another user has when visiting the site. For example if there were 2 pages only on a site, one much larger than the other, then comparison of the size of the data transfer would tell which page you visited. There are ways this could be hidden from the third-party but they're not normal server or browser behaviour. See for example this paper from SciRate, https://scirate.com/arxiv/1403.0297.

    In general other answers are correct, practically though this paper shows that pages visited (ie URL) can be determined quite effectively.

    0 讨论(0)
  • 2020-11-22 04:53

    As the other answers have already pointed out, https "URLs" are indeed encrypted. However, your DNS request/response when resolving the domain name is probably not, and of course, if you were using a browser, your URLs might be recorded too.

    0 讨论(0)
  • 2020-11-22 04:55

    While you already have very good answers, I really like the explanation on this website: https://https.cio.gov/faq/#what-information-does-https-protect

    in short: using HTTPS hides:

    • HTTP method
    • query params
    • POST body (if present)
    • Request headers (cookies included)
    • Status code
    0 讨论(0)
  • 2020-11-22 04:57

    Althought there are some good answers already here, most of them are focusing in browser navigation. I'm writing this in 2018 and probably someone wants to know about the security of mobile apps.

    For mobile apps, if you control both ends of the application (server and app), as long as you use HTTPS you're secure. iOS or Android will verify the certificate and mitigate possible MiM attacks (that would be the only weak point in all this). You can send sensitive data through HTTPS connections that it will be encrypted during transport. Just your app and the server will know any parameters sent through https.

    The only "maybe" here would be if client or server are infected with malicious software that can see the data before it is wrapped in https. But if someone is infected with this kind of software, they will have access to the data, no matter what you use to transport it.

    0 讨论(0)
提交回复
热议问题