Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mozilla Observatory First Draft

Mozilla Observatory First Draft

luke crouch

March 15, 2021
Tweet

More Decks by luke crouch

Other Decks in Technology

Transcript

  1. Me Luke Crouch • Privacy & Security Engineer,
 Mozilla •

    Board member,
 Techlahoma Foundation • I’ve had 4 cups of coffee already
 ☕ ☕ ☕ ☕
  2. This talk • 112 slides in ~15m • Mozilla Observatory

    • Website • Command-line tool • API • Questions
  3. How many of you use a tool to scan your

    web site or app for security issues? 🙋
  4. • their bank • their PayPal • their workplace •

    their healthcare provider • their password manager (!) • their computer • etc. • their email • which gives an attacker access to all of those others!
  5. Which of the following security tech applies to your code?

    • Mixed Content • Subresource Integrity • Cross-Origin Resource Sharing • Cookies • Secure • HttpOnly • Content Security Policy • HTTP Strict Transport Security • Redirections • Referrer Policy • X-Frame-Options • X-XSS-Protection • X-Content-Type-Options
  6. Which of the following security tech applies to your code?

    • Mixed Content • Subresource Integrity • Cross-Origin Resource Sharing • Cookies • Secure • HttpOnly • Content Security Policy • HTTP Strict Transport Security • Redirections • Referrer Policy • X-Frame-Options • X-XSS-Protection • X-Content-Type-Options
  7. Because the reason most of us don’t do all this

    … • Mixed Content • Subresource Integrity • Cross-Origin Resource Sharing • Cookies • Secure • HttpOnly • Content Security Policy • HTTP Strict Transport Security • Redirections • Referrer Policy • X-Frame-Options • X-XSS-Protection • X-Content-Type-Options
  8. So basically, GSA gives permission to scan some sites, within

    certain scope and under certain conditions
  9. No?

  10. Do you need to support old IE browsers? • No?

    • add X-Content-Type-Options: nosniff • Yes? • Sorry to hear that • Does your site need to render user uploads in pages? • No? add X-Content-Type-Options: nosniff • Yes? • Sorry again …
  11. 1. Find a potential vulnerability
 2. Learn about the potential

    attack(s)
 3. Determine how much if affects your code specifically
 4. Make an appropriate fix
 5. Repeat
  12. You might as well take care of older browser users

    (they need all they help they can get!)
  13. Do you need to render HTML from url params? •

    No? • add X-XSS-Protection: 1; mode-block • Yes? • No you don’t. add X-XSS-Protection: 1; mode-block • For real you do? • No, for real you don’t.
  14. But you could put this in your CI pipeline to

    scan a dev or stage site on every code change