Although HTTP is widely used, it still has flaws:
- Communication using clear text, within easy to be tapped;
- Do not verify identity information, identity is easily disguised;
- Cannot ensure message integrity and may be tampered with.
1. Encryption can prevent eavesdropping:
Communication encryption
The HTTP protocol can encrypt HTTP communication content using a combination of SSL (Secure Socket layer, Secure Sockets layers) or TLS (Transport layer Security, Security Layer Transport Protocol).
HTTP used in combination with SSL is becoming HTTPS
Content encryption
Encrypt the contents of the HTTP message. There is still a risk of tampering because the communication line is not encrypted.
2. Do not verify identity information identity is easily disguised
- It is not possible to determine whether the Web server that sent the request to the destination is on the server that is returning the response with true intent. It could be a spoofing server.
- It is not possible to determine whether the client returned by the response is a client that accepts the response in true intent. It is possible that the client has been spoofed.
- There is no way to determine whether the other person communicating has access rights. Because some Web servers hold important information, only the permissions that you want to communicate to specific users.
- There is no way to determine where the request came from and by whom.
- Even meaningless requests are accepted as a single order. Unable to block Dos attacks under massive requests.
Verification information can be used to identify each other by means of a certificate.
3. Unable to ensure message integrity may be tampered with
HTTP does not guarantee that the requested/response and received requests/responses are consistent. This means that when you download a file, the files actually downloaded to your computer may not be the same as the files on the server, because the content is tampered with when the client is unaware. An attack so subjected to interception and tampering is called a man-in-the-middle attack (MITM).
http+ Encryption + certificate authentication + integrity Protection =https
Finish
"Learning notes" http and HTTPS