Skip to content
Crypto Disclosed report Beginner

Active Mixed Content over HTTPS

The report states that an HTTPS page loads active content such as scripts or stylesheets over plain HTTP. An attacker who can intercept network traffic could rewrite that content and run malicious code in the page.

caesardiedd Follow

Originally disclosed on HackerOne

  • Disclosed after 4 months

Summary:

[Resources Loaded from Insecure Origin (HTTP)]

Steps To Reproduce:

[Vulnerability Details detected that an active content loaded over HTTP within an HTTPS page]

Remedy There are two technologies to defense against the mixed content issues: HTTP Strict Transport Security (HSTS) is a mechanism that enforces secure resource retrieval, even in the face of user mistakes (attempting to access your web site on port 80) and implementation errors (your developers place an insecure link into a secure page) Content Security Policy (CSP) can be used to block insecure resource retrieval from third-party web sites Last but not least, you can use "protocol relative URLs" to have the user's browser automatically choose HTTP or HTTPS as appropriate, depending on which protocol the user is connected with. For example: A protocol relative URL to load an style would look like <link rel="stylesheet" href="//example.com/style.css"/>. Same for scripts <script type="text/javascript" src="//example.com/code.js"></script> The browser will automatically add either "http:" or "https:" to the start of the URL, whichever is appropriate.

External References

https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content

Remedy References https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security https://en.wikipedia.org/wiki/Content_Security_Policy

Impact

Impact Active Content is a resource which can run in the context of your page and moreover can alter the entire page. If the HTTPS page includes active content like scripts or stylesheets retrieved through regular, cleartext HTTP, then the connection is only partially encrypted. The unencrypted content is accessible to sniffers. A man-in-the-middle attacker can intercept the request for the HTTP content and also rewrite the response to include malicious codes. Malicious active content can steal the user's credentials, acquire sensitive data about the user, or attempt to install malware on the user's system (by leveraging vulnerabilities in the browser or its plugins, for example), and therefore the connection is not safeguarded anymore.

The original report as published on HackerOne, by caesardiedd. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the page includes script or stylesheet URLs that use the http scheme instead of https or a protocol-relative URL.

Impact

A man-in-the-middle attacker could intercept the HTTP request and rewrite the response to include malicious code, which could steal credentials or sensitive data, though the text does not show this being exploited.

What the attacker needed

Victim uses the HTTPS page; attacker can intercept network traffic

The fix

The page should load all active content over HTTPS, for example by using protocol-relative URLs or by enforcing HSTS and CSP.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a website uses HTTPS, the connection between your browser and the site is encrypted. But if the page also loads some files, like scripts, over plain HTTP, those files are not protected. Someone on the same network could change those files and make the page do harmful things.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More from curl

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.