I'm Mark Goodwin
I work for Mozilla
I work on web security and some products (e.g. Firefox)
(though I'll talk about some browser features)
(and a little bit about what I'm doing at Mozilla too)
Active domains: 313 to 677 million in year to April 2012 (Netcraft)
Many of these aren't well trained in security
Many active sites are infrequently maintained
Source: langpop.com
Provide tools when a framework doesn't deliver
popular among pentesters, less so with devs
There are many, many server technologies - fewer browsers
I can say 'set this header' to Django / Java / .NET devs - they'll all know what I mean
any help is welcome, right?
occurs when an attacker is able to inject malicious script into a victim's browser in the context of a target site.
IE, Chrome (60-72% of users) - also on the Firefox roadmap
Can be controlled with a header:
X-XSS-Protection: 1; mode=block
also useful in other scenarios
Chrome and Firefox have support (38-55% of users)
though excellent documentation is available
is enabled by setting a header
X-Content-Security-Policy: default-src 'self'; img-src *; script-src 'self' *.example.com
has a report-only mode
X-Content-Security-Policy-Report-Only: default-src 'self'; img-src *; script-src 'self' *.example.com; report-uri /csp/report
Attackers 'hide' the target site and fool the user into clicking or typing
IE prior to IE8 - framing document could steal keypresses intended for framed
Supported in current version of all major browsers (95% of users)
(mostly to prevent clickjacking)
x-frame-options: DENY
Makes use of untrusted networks, untrusted proxies (TOR?) dangerous
Strict-Transport-Security: max-age=43200; includeSubDomains
Once set, a browser knows only to visit that site via HTTPS
occurs when an attacker is able to use a victim's browser to forge requests to a target site
intended as a simple, reliable fix for CSRF
simple for most cases, completely opt in
Some of these features are harder to implement than others
Existing sites have a huge investment in current systems
...surely? Actually, no.
| 2011 | 2012 | |
| X-Frame-Options: | 0.54% | 2.48% |
| X-XSS-Protection: | 1.52% | 2.2% |
| Strict-Transport-Security: | 0.01% | 0.21% |
| X-Content-Security-Policy: | 0.01% |
(probably not)
(more likely)
(almost certainly)
Questions?
Contact:
/
#