Network Communication / Mixed Content
Mixed content is a type of IT vulnerability in which a web page or an API request is served from both secure (HTTPS) and non-secure (HTTP) sources. This type of vulnerability is classified as a network communication vulnerability and is listed in the Common Weakness Enumeration (CWE) Directory as CWE-295. According to the OWASP Testing Guide, this vulnerability is caused when web applications request resources from both secure and non-secure sources, leading to a lack of security and data integrity.
Mixed content vulnerabilities can lead to man-in-the-middle attacks, which can lead to data theft or unauthorized access to sensitive data. This type of vulnerability is considered high-risk and can have serious implications for the security of a system.
The best way to prevent mixed content vulnerabilities is to use HTTPS for all web requests. This ensures that all requests are encrypted and that the data is secure. Additionally, developers should use Content Security Policies to restrict the loading of insecure content.