Can I securely embed an iframe HTTPS on the HTTP page?

421    Asked by AndrewJenkins in Cyber Security , Asked on Mar 21, 2022

 I've seen websites placing HTTPS iframes on HTTP pages.

Are there any security concerns with this? Is it secure to transmit private information like credit card details in such a scheme (where the information is only placed on the HTTPS iframe form, and not on the HTTP parent page)?

Answered by Andrea Bailey

An iframe HTTPS within a page served over HTTP will not allow the user to be sure they are actually using the HTTPS connection that they expect to be; therefore, this potentially allows the iframe to be hijacked in a simple attack such as an iframe injection. This would allow password harvesting, among other things. Such an attack could begin through a Trojan, a virus, or simply visiting a malicious website.


Your Answer

Interviews

Parent Categories