How secure is a HTTP GET when the data is URL Enco

2020-03-03 06:48发布

If the data is Url Encoded, is it secure enough to send login credentials over HTTP GET?

6条回答
够拽才男人
2楼-- · 2020-03-03 07:04

Not at all secure.

查看更多
姐就是有狂的资本
3楼-- · 2020-03-03 07:08

URL encoding is not any kind of encryption, it just prepares the string to be sent through the network.

If your data is sensitive, GET should be completely out of question. Reasons for this?

  1. The obvious one, everyone who takes a peek at the URL bar, will see the data
  2. The data will be left in every proxy log that it passes trough
  3. If the user leaves the site, the next site will have the URL recorded in it's logs/web statistics (REFERER).
查看更多
劳资没心,怎么记你
4楼-- · 2020-03-03 07:09

Please read the purpose of URL encoding

The specification for URLs (RFC 1738, Dec. '94) poses a problem, in that it limits the use of allowed characters in URLs to only a limited subset of the US-ASCII character set.

HTML, on the other hand, allows the entire range of the ISO-8859-1 (ISO-Latin) character set to be used in documents - and HTML4 expands the allowable range to include all of the Unicode character set as well. In the case of non-ISO-8859-1 characters (characters above FF hex/255 decimal in the Unicode set), they just can not be used in URLs, because there is no safe way to specify character set information in the URL content yet [RFC2396.]

URLs should be encoded everywhere in an HTML document that a URL is referenced to import an object (A, APPLET, AREA, BASE, BGSOUND, BODY, EMBED, FORM, FRAME, IFRAME, ILAYER, IMG, ISINDEX, INPUT, LAYER, LINK, OBJECT, SCRIPT, SOUND, TABLE, TD, TH, and TR elements.)

Security is not the point here. Like already noted, HTTPS should be used when that is required.

查看更多
混吃等死
5楼-- · 2020-03-03 07:09

URLEncoding is for encoding/transmission, not security.

查看更多
疯言疯语
6楼-- · 2020-03-03 07:24

Not at all. URL encoded is easily reversible. You should encrypt the transport layer (i.e. use HTTPS)

查看更多
虎瘦雄心在
7楼-- · 2020-03-03 07:30

No - URL encoding is meant to make sure all the characters you try to send with a GET request can actually arrive at the other end.

It is actually designed to be easily encoded and decoded to prepare data for transport, not for security.

查看更多
登录 后发表回答