Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Content Security Policy 101 - Lightning Talk
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Christoph Rumpel
April 24, 2018
Technology
140
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Content Security Policy 101 - Lightning Talk
This is a 5min talk version of Content Security Policy 101 talk.
Christoph Rumpel
April 24, 2018
Transcript
37 slides
Hello webclerks :)
Content Security Policy 101
Content Security Policy 101 Can Christoph do 40 slides in
5 minutes?
ABOUT ME
CHRISTOPH RUMPEL Web Developer PHP / Laravel Chatbots Talks @christophrumpel
christoph-rumpel.com
SECURITY IS HARD
SSL Input Handling Updates Packages Extension CSRF NONCES Weak Typing
Error Handling Storing Credentials Server Access SQL Prepared Statements Passwords Brute Force Attacks
Adobe Playstation Network Cloudflare FAMOUS LEAKS
How can we protect our sites when even big companies
can't?
Step by step
CONTENT SECURITY POLICY
CSP lets you define trusted resources.
Content-Security-Policy: policies
Content-Security-Policy: img-src *; script-src 'self'; Policies EXAMPLE
img-src *; script-src 'self'; DIRECTIVES
img-src *; script-src 'self'; LOCATIONS
img-src *; script-src 'self'; TRANSLATED Images are allowed to be
loaded from any resource
img-src *; script-src 'self'; TRANSLATED Scripts are allowed to be
loaded from the current site's origin only
img-src script-src DIRECTIVES
img-src script-src style-src font-src media-src form-action ...
* 'self' LOCATIONS
* 'self' domain.example.com *.example.com 'none' ...
CSP christoph-rumpel.com
BROWSER SUPPORT
BROWSER SUPPORT
INTEGRATIONS
SERVER CONFIGURATION Apache
SERVER CONFIGURATION Nginx
LARAVEL MIDDLEWARE
WP Content Security Policy Plugin - Screenshot Policies PLUGINS
MUCH MORE
HASHES AND NONCES
REPORTING
Content Security Policy 101 Laravel Response Caching And CSP CSP,
Hash-Algorithm, and Turbolinks Quick CSP Reference Guide MDN web docs CSP Level 2 W3C Recommendation CSP Level 3 Working Draft RESOURCES
THANKS
QUESTIONS?
THANKS AGAIN
More Decks by Christoph Rumpel
See All by Christoph Rumpel
How To Manage 5000+ Tests Efficiently
christophrumpel
0
150
Christoph Dreams Of Simple Code (Laravel Vienna Meetup)
christophrumpel
0
220
Why Refactoring Is The Best Tool To Write Better Code
christophrumpel
0
630
Debugging with PhpStorm & XDebug
christophrumpel
0
320
The final Laravel Service Container talk (Laracon Online)
christophrumpel
1
860
NomadPHP - The Laravel Core - Demystify The Beast
christophrumpel
0
190
Laravel Factories Reloaded (Laracon Online)
christophrumpel
1
370
The Beauty of Laravel's Notification System (Laracon EU Amsterdam)
christophrumpel
0
290
The Laravel Core - Demystify The Beast (New York)
christophrumpel
0
250
Other Decks in Technology
See All in Technology
gradle-best-practices 使ってみた
mikanichinose
0
240
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
280
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
460
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
Dark Web - Como o Cibercrime Opera na Internet
nicholsjasper
0
120
専門家に使ってもらうAIプロダクトをつくる - 病院の医事課向けDPCコーディング支援システムの設計と評価
hagino3000
4
1.1k
AIが学べる子供の夏休みの自由研究教材を作ったが空振りだった話
yoshimura_datam
0
100
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
490
Welcome JXL!
dynamis
0
600
みん強Lightning! データ基盤ひとりでできるかな
endonanana
0
220
正しくWeb サイトを守るためのコンテンツセキュリティーポリシー
hinalin
0
380
Taking back control of your AI development
inesmontani
PRO
0
320
Featured
See All Featured
The SEO Collaboration Effect
kristinabergwall1
1
630
HDC tutorial
michielstock
2
1k
The Cult of Friendly URLs
andyhume
79
7.1k
Designing for Timeless Needs
cassininazir
1
570
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Abbi's Birthday
coloredviolet
5
11k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
エンジニアに許された特別な時間の終わり
watany
109
250k
The Limits of Empathy - UXLibs8
cassininazir
2
800
Are puppies a ranking factor?
jonoalderson
2
4.2k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
How STYLIGHT went responsive
nonsquared
100
6.4k