I'm looking for clarification of some of the details of an SSL stripping attack.
My current understanding is that:
The attacker sits between the victim and a server.
When the attackers receives an HTTP request from the victim, the attacker sends the request to the server using HTTPS
When the attacker receives the response from the server, it strips away the HTTPS links and then forwards the response to the victim using HTTP
These are some of the details I'm missing:
The response from the server back to the attacker is in HTTPS and is encrypted. How is the attacker able to read the content to strip away the HTTPS links?
Are the HTTPS links being stripped in the body of the response from the server?
Does anything in the response header need to be changed before forwarding the response back to the victim?