Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send sensitive data using POST+application/x-www-form-urlencoded

Tags:

http

post

I am trying to implement user authentication process, and I have gone through enormous number of posts and totally agree that using HTTPS is probably best way to transfer username/password from client to server befor hashing.

Just out of curiosity, I want to know : how safe it is to send username/password from client to server using POST method along with enctype='application/x-www-form-urlencoded' as this also send form data in encoded form?

PS. I am using GWT for frontend and JAVA for backend.

like image 881
genirahul Avatar asked Aug 28 '14 07:08

genirahul


People also ask

How do you send data in application X-www-form-Urlencoded?

To use it, we need to select the x-www-form-urlencoded tab in the body of their request. We need to enter the key-value pairs for sending the request body to the server, and Postman will encode the desired data before sending it. Postman encodes both the key and the value.

How do you send an object in X-www-form-Urlencoded?

To use the x-www-form-urlencoded type in Postman, we need to select the radio button with the same name within the request's body tab. As already mentioned, the request consists of the key-value pairs. Postman will encode the data before sending it to the server. Additionally, it will encode both the key and the value.

Is application X-www-form-Urlencoded secure?

Security considerations: In isolation, an application/x-www-form-urlencoded payload poses no security risks. However, as this type is usually used as part of a form submission, all the risks that apply to HTML forms need to be considered in the context of this type.


1 Answers

Sending data by way of the body instead of url params is the way to go, but to ensure that is not sniffed out, you must use HTTPS. Otherwise it will be plaintext. As to how safe? see here: https://security.stackexchange.com/questions/53596/how-safe-is-ssl

like image 63
steve Avatar answered Sep 22 '22 22:09

steve