Are security concerns sending a password using a GET request over https valid?

前端 未结 5 715
萌比男神i
萌比男神i 2020-12-05 04:58

We have webpage which uses the sapui5-framework to build a spa. The communication between the browser and the server uses https. The interaction to log into the page is the

5条回答
  •  时光说笑
    2020-12-05 05:33

    Consider this:

    https://www.example.com/login

    Javascript within login page:

    $.getJSON("/login?user=joeblow&pass=securepassword123");

    What would the referer be now?

    If you're concerned about security, an extra layer could be:

    var a = Base64.encode(user.':'.pass);
    $.getJSON("/login?a="+a);
    

    Although not encrypted, at least the data is obscured from plain sight.

提交回复
热议问题