Testing for Credentials Transported over an Encrypted Channel
In this recipe, we will walk through how to verify that the user’s login username and password are transmitted to the web server from the browser over an encrypted channel. It is crucial for an application to send login information or any sensitive data such as session IDs over an encrypted channel. The data transmitted between the application server and the user’s browser can be intercepted by an attacker, and if the traffic is encrypted, the attacker will not be able to read the data being transmitted.
Getting ready
To prepare for this recipe, please start ZAP and OWASP Juice Shop. Make sure that ZAP intercepts traffic at the OWASP Juice Shop application home page.
How to do it…
To know whether a website is accessible and transmits data over Hypertext Transfer Protocol (HTTP) or Hypertext Transfer Protocol Secure (HTTPS), we have to intercept the login HTTP request. Let’s look at...