Skip to content
GitHub

GitHub's post-CSP journey

Jan 19, 2017Patrick Toomey21 min read
Opens github.blog
What the post coversAI, from the source post

This post details specific bypasses of GitHub's CSP policy related to `img-src` directives, particularly concerning Google Analytics and Gravatar.

  • It describes how attackers could leverage these services with injected content and dangling markup to exfiltrate sensitive information.
  • The post outlines the technical solutions implemented: migrating Google Analytics to an XHR approach and proxying Gravatar images through GitHub's own Camo image proxy to remove them from the `img-src` list.
  • It also introduces a strategy for mitigating dangling markup attacks by adding specific HTML comments and tags before form elements to close potential injection vectors.
Read the full post on github.blog · 21 min (opens in a new tab)

More from the Content Security Policy Evolution and Defense-in-Depth trail