Secure Pages Include Mixed Content
A page served over HTTPS loaded an image over plain HTTP, so part of the page was transmitted unencrypted. An attacker able to intercept that traffic could tamper with the image content, though the text does not demonstrate any concrete exploit.
- Disclosed after 32 days
Hello, The page includes mixed content, that is content accessed via HTTP instead of HTTPS. tag=img src=http://www.gravatar.com/avatar/abbcd6344e160597fb2694f25c46149f.jpg?s=256&d=http%3A%2F%2Fwww.openstreetmap.org%2Fassets%2Fusers%2Fimages%2Flarge-8d2e51c2ddd01eb899f4bfb0bca3cf5e.png Evidence: http://www.gravatar.com/avatar/abbcd6344e160597fb2694f25c46149f.jpg?s=256&d=http%3A%2F%2Fwww.openstreetmap.org%2Fassets%2Fusers%2Fimages%2Flarge-8d2e51c2ddd01eb899f4bfb0bca3cf5e.png
HTTP/1.1 200 OK Connection: keep-alive Server: gunicorn Date: Sun, 27 Nov 2016 16:21:49 GMT Content-Type: text/html; charset=UTF-8 X-Gratipay-Version: 2014 Set-Cookie: csrf_token=SyU4gwZJ221GAFZDCb3wpG62UU8n58vY; expires=Sun, 04 Dec 2016 16:21:49 GMT; Path=/; secure X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff X-Xss-Protection: 1; mode=block Cache-Control: no-cache Via: 1.1 vegur
Solution: A page that is available over SSL/TLS must be comprised completely of content which is transmitted over SSL/TLS. The page must not contain any content that is transmitted over unencrypted HTTP. This includes content from third party sites.
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 hard-coded an image URL using the http scheme rather than https or a scheme-relative URL.
Impact
Content on the secure page could be altered by a network attacker, but the report shows no working attack and only a passive-content image is affected.
What the attacker needed
Attacker on the same network path
The fix
The page should load all resources, including third-party ones, over HTTPS so nothing is transmitted unencrypted.
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 is encrypted so others on the network cannot read or change it. Mixed content means the page still pulls some parts, like an image, over plain HTTP, which is not protected. Someone sitting on the same network could then swap that unprotected part for something else.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.