SlideShare a Scribd company logo
HTTP
by Kumita Ryusuke
T P
PHP
WEB SEO
NLP blockchain
H T P
@reus_k95
• H
• …
SSL
HTTPS SEO 2014
HTTPS P Google H H
https://webmaster-ja.googleblog.com/2014/08/https-as-ranking-signal.html
HTTPS UX 2018
HTTP T
HTTP
• P
SEO H
• P
SSL
T
Today’s Topics
1. XSS
Content Security Policy /
2. SSL
HTTP Public Key Pinning / Certificate
Transparency / HTTP Strict Transport
Security
3.
ReportURI
Today’s Topics
1. XSS
Content Security Policy /
2. SSL
HTTP Public Key Pinning / Certificate
Transparency / HTTP Strict Transport
Security
3.
ReportURI
Content Security Policy
CSP
https://csp.com
script.comimage.com csp.com
unknown.com
…
script.com OK
image.com OK
…
CSP
CSP
• C
• C
• C
• P Script T
• Content-Security-Policy-Report-Only T
H S
CSP H
• HTML
• WEB conf C
• C
C
CSP nc?HTML if g h
• if j
<meta http-equiv="Content-Security-Policy" content=”...”>
• lmC H
:: - - - / / - =- . - : - :
- : a C H
TP S b ed?
CSP WEB
• Nginx Apache
add_header Content-Security-Policy “...”;
•
C H
C
CSP C
• PHP header
header(“Content-Security-Policy: ...”);
•
C
CSP
default-src 'self’; upgrade-insecure-requests; report-uri endpoint;
•
• Fetch
• Reporting H
• etc…
C
Fetch
default-src ‘self’; script-src ‘A.com’; style-src ‘B.com’; frame-src ’none’;
• S H
• A.com T B.com C
‘self’ frame
•
• S H
P
FetchH
• default-src T
• script-src JavaScript
• style-src
• img-src
• connect-src JavaScript URL
• font-src @font-face
• frame-src <frame> <iframe>
• manifest-src P
• media-src <audio> <video> <track> H
• object-src <object> <embed> <applet>
• prefetch-src fetch T
• webrtc-src WebRTC S
• child-src web workers <frame>/<iframe>
• worker-src Worker, SharedWorker, ServiceWorker T
C T S
Reporting H
• S
• report-to report-uri H
• report-uri T CSP Level3 deprecated
• report-to
• H report-to
C P S
report-to
Report-To: {“group”: “csp-report”, ”include-subdomains”: false, “max-
age”: 86400, endpoints: {“url”: “...”}}
Content-Security-Policy: ...; report-to csp-report;
• Report-To
•
• P report-uri
C H
report-uri
Content-Security-Policy: ...; report-uri: endpoint;
• JSON C
{
"csp-report": {
"document-uri": "https://myblog.jp/entries/12",
"blocked-uri": "ms-browser-extension",
"violated-directive": "default-src 'self' https://asset.myblog.jp ...",
"original-policy": "default-src 'self' https://asset.myblog.jp ...",
"effective-directive": "img-src",
"status-code": 0
}
}
report-uri
• blocked-uri URI
• document-uri URI
• violated-directive C
H
• Mixed Content H
• HTTPS S HTTP T
• upgrade-insecure-requests
http https C
• block-all-mixed-content
http T
C P
CSP GitHub
Content-Security-Policy: default-src 'none'; base-uri
'self'; block-all-mixed-content; connect-src 'self'
uploads.github.com githubstatus.com
collector.githubapp.com api.github.com www.google-
analytics.com github-cloud.s3.amazonaws.com github-
production-repository-file-5c1aeb.s3.amazonaws.com
github-production-upload-manifest-file-
7fdce7.s3.amazonaws.com github-production-user-asset-
6210df.s3.amazonaws.com wss://live.github.com; font-src
github.githubassets.com; form-action 'self' github.com
gist.github.com; frame-ancestors 'none'; frame-src
render.githubusercontent.com; img-src 'self' data:
github.githubassets.com identicons.github.com
collector.githubapp.com github-cloud.s3.amazonaws.com
*.githubusercontent.com; manifest-src 'self'; media-src
'none'; script-src github.githubassets.com; style-src
'unsafe-inline' github.githubassets.com
CSP Twitter
content-security-policy: script-src https://ssl.google-analytics.com 'nonce-oTPLYVAFzPwnlPVafnQbGQ==' https://twitter.com 'unsafe-eval'
https://*.twimg.com https://api.twitter.com https://analytics.twitter.com https://publish.twitter.com https://ton.twitter.com
https://syndication.twitter.com https://www.google.com https://platform.twitter.com https://www.google-analytics.com blob: 'self';
frame-ancestors 'self'; font-src https://twitter.com https://*.twimg.com data: https://ton.twitter.com 'self'; media-src
https://rmpdhdsnappytv-vh.akamaihd.net https://prod-video-eu-central-1.pscp.tv https://prod-video-ap-south-1.pscp.tv
https://v.cdn.vine.co https://dwo3ckksxlb0v.cloudfront.net https://twitter.com https://prod-video-us-east-2.pscp.tv https://prod-video-
cn-north-1.pscp.tv https://amp.twimg.com https://smmdhdsnappytv-vh.akamaihd.net https://*.twimg.com https://prod-video-eu-west-
1.pscp.tv https://*.video.pscp.tv https://rmmdhdsnappytv-vh.akamaihd.net https://clips-media-assets.twitch.tv https://prod-video-ap-
northeast-2.pscp.tv https://prod-video-us-west-2.pscp.tv https://prod-video-us-west-1.pscp.tv https://prod-video-ap-northeast-1.pscp.tv
https://smdhdsnappytv-vh.akamaihd.net https://ton.twitter.com https://prod-video-eu-west-3.pscp.tv https://rmdhdsnappytv-
vh.akamaihd.net https://mmdhdsnappytv-vh.akamaihd.net https://prod-video-ca-central-1.pscp.tv https://smpdhdsnappytv-vh.akamaihd.net
https://prod-video-sa-east-1.pscp.tv https://mdhdsnappytv-vh.akamaihd.net https://prod-video-ap-southeast-2.pscp.tv
https://mtc.cdn.vine.co https://prod-video-cn-northwest-1.pscp.tv https://prod-video-eu-west-2.pscp.tv https://canary-video-us-east-
1.pscp.tv https://dev-video-us-west-2.pscp.tv https://prod-video-us-east-1.pscp.tv blob: 'self' https://prod-video-ap-northeast-
3.pscp.tv https://prod-video-ap-southeast-1.pscp.tv https://mpdhdsnappytv-vh.akamaihd.net https://dev-video-eu-west-1.pscp.tv; connect-
src https://rmpdhdsnappytv-vh.akamaihd.net https://prod-video-eu-central-1.pscp.tv https://prod-video-ap-south-1.pscp.tv
https://*.giphy.com https://dwo3ckksxlb0v.cloudfront.net https://prod-video-us-east-2.pscp.tv https://prod-video-cn-north-1.pscp.tv
https://vmaprel.snappytv.com https://smmdhdsnappytv-vh.akamaihd.net https://*.twimg.com https://embed.pscp.tv https://api.twitter.com
https://prod-video-eu-west-1.pscp.tv https://*.video.pscp.tv https://rmmdhdsnappytv-vh.akamaihd.net https://clips-media-
assets.twitch.tv https://prod-video-ap-northeast-2.pscp.tv https://prod-video-us-west-2.pscp.tv https://pay.twitter.com https://prod-
video-us-west-1.pscp.tv https://analytics.twitter.com https://vmap.snappytv.com https://*.twprobe.net https://prod-video-ap-northeast-
1.pscp.tv https://smdhdsnappytv-vh.akamaihd.net https://prod-video-eu-west-3.pscp.tv https://syndication.twitter.com https://sentry.io
https://rmdhdsnappytv-vh.akamaihd.net https://media.riffsy.com https://mmdhdsnappytv-vh.akamaihd.net https://prod-video-ca-central-
1.pscp.tv https://embed.periscope.tv https://smpdhdsnappytv-vh.akamaihd.net https://prod-video-sa-east-1.pscp.tv
https://vmapstage.snappytv.com https://upload.twitter.com https://proxsee.pscp.tv https://mdhdsnappytv-vh.akamaihd.net https://prod-
video-ap-southeast-2.pscp.tv https://prod-video-cn-northwest-1.pscp.tv https://prod-video-eu-west-2.pscp.tv https://canary-video-us-
east-1.pscp.tv https://dev-video-us-west-2.pscp.tv https://prod-video-us-east-1.pscp.tv blob: 'self' https://prod-video-ap-northeast-
3.pscp.tv https://vmap.grabyo.com https://prod-video-ap-southeast-1.pscp.tv https://mpdhdsnappytv-vh.akamaihd.net https://dev-video-eu-
west-1.pscp.tv; style-src https://fonts.googleapis.com https://twitter.com https://*.twimg.com https://translate.googleapis.com
https://ton.twitter.com 'unsafe-inline' https://platform.twitter.com 'self'; object-src https://twitter.com https://pbs.twimg.com;
default-src 'self' blob:; frame-src https://twitter.com https://*.twimg.com https://player.vimeo.com https://pay.twitter.com
https://ton.twitter.com https://syndication.twitter.com https://vine.co twitter: https://www.youtube.com https://platform.twitter.com
https://upload.twitter.com 'self'; img-src https://*.giphy.com https://*.pscp.tv https://twitter.com https://*.twimg.com data:
https://clips-media-assets.twitch.tv https://lumiere-a.akamaihd.net https://ton.twitter.com https://syndication.twitter.com
https://media.riffsy.com https://www.google.com https://platform.twitter.com https://api.mapbox.com https://www.google-analytics.com
blob: https://*.periscope.tv 'self'; report-uri https://twitter.com/i/csp_report?a=NVQWGYLXFVZXO2LGOQ%3D%3D%3D%3D%3D%3D&ro=false;
CSP
• CSP nonce / strict-dynamic
P
• H Level3
•
• script
C
script-src
• CSP
URL
• script TS
script TS
• P C H
unsafe-inline CSP
• nonce / strict-dynamic
nonce
• S T nonce
• script nonce
• script nonce
S nonce script
nonce H
CCP
nonce
• HTTP
script-src: 'nonce-43f23r98’
•
<script src="..." nonce="43f23r98"></script>
nonce PTS
• script nonce
• H script
• strict-dynamic
C
nonce + strict-dynamic
• PS nonce T
• scriptDOM P
• HTTPC
script-src: 'nonce-43f23r98' 'strict-dynamic’
•
<script nonce="43f23r98">...</script>
H
nonce + strict-dynamic
• strictCSP
https://csp.withgoogle.com/docs/strict-csp.html
• script
• T T C
• S
• T
H PT
CSP
• Report-Only S
• H
• T
C 20 CSP
• T C
P
X-XSS-Protection
X-XSS-Protection: 0 or 1; [mode=block;] [report=...;]
• XSS H
• mode=block
• report
X-Content-Type-Options
X-XSS-Protection: nosniff
•
• IE
H
Today’s Topics
1. XSS
Content Security Policy /
2. SSL
HTTP Public Key Pinning / Certificate
Transparency / HTTP Strict Transport
Security
3.
ReportURI
HTTP Public Key Pinning
HPKP
hpkp.com
https://hpkp.com
hpkp.com
HPKP T
• HTTP Public Key Pinning
• WEB
• 2 P
• T H
• PHP header
K
HPKP
Public-Key-Pins: pin-sha256=”base64=="; max-age=5184000;
[includeSubDomains;] [report-uri=”...”;]
• Base64 P
• max-age T
• includeSubDomains
• report-uri H
KH
HPKP H
• HPKP
• K
HPKP
hpkp.com
K H
P
https://hpkp.com
hpkp.com
KK
HPKP H
max-age
HPKP H K
hpkp.com
H
https://hpkp.com
hpkp.com
HH
HPKP HK
•
• P
•
HPKP P T
• max-age ≦ T H
• K T
HPKP
K T
max-age
HPKP
•
• T
•
• Chrome 67 P
• CT
H K
CT
CT
https://ct.com
ct.comC
CT
…
ct.com
…
C
CT
• Certificate Transparency T
• C SCT Signed
Certificate Timestamp
• SCT
• Let’s Encrypt Amazon Certificate Manager
• Expect-CT
H P
Expect-CT H
Expect-CT: max-age=86400, [enforce,] [report-uri=”...”]
• max-age
• enforce C report-only
• report-uri
CT
• …
P C C
•
H
•
T
CT
• HPKP
• HPKP CT
• T
C H P
HTTP Strict Transport Security
HSTS
hsts.com
HTTPS
http://hpkp.com
hsts.com
https://hpkp.com
HSTS S
• HTTP Strict Transport Security
• HTTPS H
• HTTPS H
• PHP header P
HSTS
Strict-Transport-Security: max-age=31536000; [includeSubDomains;]
[preload;]
• max-age
• includeSubDomains
• preload
• S HTTPS P
https://hstspreload.org/
• T
H
Today’s Topics
1. XSS
Content Security Policy /
2. SSL
HTTP Public Key Pinning / Certificate
Transparency / HTTP Strict Transport
Security
3.
ReportURI
• HTTP report
•
H
• ReportURIT
P
ReportURI
•
• 10,000 report / month $100 1000,000 report /month
• H H CSP Except-CT
H P
•
• T
H
To close
•
CSP
•
•
Thank you for
listening.

More Related Content

Similar to セキュアアプリケーションのためのHTTP設定

HTTP_Header_Security.pdf
HTTP_Header_Security.pdfHTTP_Header_Security.pdf
HTTP_Header_Security.pdf
ksudhakarreddy5
 
Csp vortrag
Csp vortragCsp vortrag
Csp vortrag
András Ottó
 
Creating Secure Web Apps: What Every Developer Needs to Know About HTTPS Today
Creating Secure Web Apps: What Every Developer Needs to Know About HTTPS TodayCreating Secure Web Apps: What Every Developer Needs to Know About HTTPS Today
Creating Secure Web Apps: What Every Developer Needs to Know About HTTPS Today
Heroku
 
BigWP: Delivering the news over HTTPS
BigWP: Delivering the news over HTTPSBigWP: Delivering the news over HTTPS
BigWP: Delivering the news over HTTPS
Paul Schreiber
 
Mehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp KölnMehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp Köln
Walter Ebert
 
CSS and image optimization
CSS and image optimizationCSS and image optimization
CSS and image optimization
Stoyan Stefanov
 
SEO Considerations When Migrating to HTTPS by Kenneth Sytian
SEO Considerations When Migrating to HTTPS by Kenneth SytianSEO Considerations When Migrating to HTTPS by Kenneth Sytian
SEO Considerations When Migrating to HTTPS by Kenneth Sytian
Glen Dimaandal
 
High Performance Webdesign
High Performance WebdesignHigh Performance Webdesign
High Performance Webdesign
拓樹 谷
 
The Future of https in Search
The Future of https in SearchThe Future of https in Search
The Future of https in Search
semrush_webinars
 
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
SEO monitor
 
Content Security Policy - Lessons learned at Yahoo
Content Security Policy - Lessons learned at YahooContent Security Policy - Lessons learned at Yahoo
Content Security Policy - Lessons learned at Yahoo
Binu Ramakrishnan
 
HTTPS The Road To A More Secure Web / SEOCamp Paris
HTTPS The Road To A More Secure Web / SEOCamp ParisHTTPS The Road To A More Secure Web / SEOCamp Paris
HTTPS The Road To A More Secure Web / SEOCamp Paris
Aysun Akarsu
 
Connecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter PlatformConnecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter Platform
Andy Piper
 
Progressive Downloads and Rendering
Progressive Downloads and RenderingProgressive Downloads and Rendering
Progressive Downloads and Rendering
Stoyan Stefanov
 
GIB2020 - Building Event-Driven Integration Architectures
GIB2020 - Building Event-Driven Integration ArchitecturesGIB2020 - Building Event-Driven Integration Architectures
GIB2020 - Building Event-Driven Integration Architectures
Daniel Toomey
 
Security and Privacy on the Web in 2015
Security and Privacy on the Web in 2015Security and Privacy on the Web in 2015
Security and Privacy on the Web in 2015
Francois Marier
 
Content Security Policies: A whole new way of securing your website that no o...
Content Security Policies: A whole new way of securing your website that no o...Content Security Policies: A whole new way of securing your website that no o...
Content Security Policies: A whole new way of securing your website that no o...
Miriam Schwab
 
Content Security Policies: A whole new way of securing your website that no o...
Content Security Policies: A whole new way of securing your website that no o...Content Security Policies: A whole new way of securing your website that no o...
Content Security Policies: A whole new way of securing your website that no o...
Miriam Schwab
 
Hacking Web Performance
Hacking Web PerformanceHacking Web Performance
Hacking Web Performance
Maximiliano Firtman
 

Similar to セキュアアプリケーションのためのHTTP設定 (20)

HTTP_Header_Security.pdf
HTTP_Header_Security.pdfHTTP_Header_Security.pdf
HTTP_Header_Security.pdf
 
Csp vortrag
Csp vortragCsp vortrag
Csp vortrag
 
Creating Secure Web Apps: What Every Developer Needs to Know About HTTPS Today
Creating Secure Web Apps: What Every Developer Needs to Know About HTTPS TodayCreating Secure Web Apps: What Every Developer Needs to Know About HTTPS Today
Creating Secure Web Apps: What Every Developer Needs to Know About HTTPS Today
 
BigWP: Delivering the news over HTTPS
BigWP: Delivering the news over HTTPSBigWP: Delivering the news over HTTPS
BigWP: Delivering the news over HTTPS
 
Mehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp KölnMehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp Köln
 
CSS and image optimization
CSS and image optimizationCSS and image optimization
CSS and image optimization
 
SEO Considerations When Migrating to HTTPS by Kenneth Sytian
SEO Considerations When Migrating to HTTPS by Kenneth SytianSEO Considerations When Migrating to HTTPS by Kenneth Sytian
SEO Considerations When Migrating to HTTPS by Kenneth Sytian
 
High Performance Webdesign
High Performance WebdesignHigh Performance Webdesign
High Performance Webdesign
 
The Future of https in Search
The Future of https in SearchThe Future of https in Search
The Future of https in Search
 
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
 
Content Security Policy - Lessons learned at Yahoo
Content Security Policy - Lessons learned at YahooContent Security Policy - Lessons learned at Yahoo
Content Security Policy - Lessons learned at Yahoo
 
HTTPS The Road To A More Secure Web / SEOCamp Paris
HTTPS The Road To A More Secure Web / SEOCamp ParisHTTPS The Road To A More Secure Web / SEOCamp Paris
HTTPS The Road To A More Secure Web / SEOCamp Paris
 
Connecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter PlatformConnecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter Platform
 
Progressive Downloads and Rendering
Progressive Downloads and RenderingProgressive Downloads and Rendering
Progressive Downloads and Rendering
 
GIB2020 - Building Event-Driven Integration Architectures
GIB2020 - Building Event-Driven Integration ArchitecturesGIB2020 - Building Event-Driven Integration Architectures
GIB2020 - Building Event-Driven Integration Architectures
 
Security and Privacy on the Web in 2015
Security and Privacy on the Web in 2015Security and Privacy on the Web in 2015
Security and Privacy on the Web in 2015
 
Web Security - CSP & Web Cryptography
Web Security - CSP & Web CryptographyWeb Security - CSP & Web Cryptography
Web Security - CSP & Web Cryptography
 
Content Security Policies: A whole new way of securing your website that no o...
Content Security Policies: A whole new way of securing your website that no o...Content Security Policies: A whole new way of securing your website that no o...
Content Security Policies: A whole new way of securing your website that no o...
 
Content Security Policies: A whole new way of securing your website that no o...
Content Security Policies: A whole new way of securing your website that no o...Content Security Policies: A whole new way of securing your website that no o...
Content Security Policies: A whole new way of securing your website that no o...
 
Hacking Web Performance
Hacking Web PerformanceHacking Web Performance
Hacking Web Performance
 

Recently uploaded

LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 

Recently uploaded (20)

LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 

セキュアアプリケーションのためのHTTP設定

  • 2.
  • 3. T P PHP WEB SEO NLP blockchain H T P @reus_k95
  • 4.
  • 6. SSL HTTPS SEO 2014 HTTPS P Google H H https://webmaster-ja.googleblog.com/2014/08/https-as-ranking-signal.html HTTPS UX 2018 HTTP T
  • 8. Today’s Topics 1. XSS Content Security Policy / 2. SSL HTTP Public Key Pinning / Certificate Transparency / HTTP Strict Transport Security 3. ReportURI
  • 9. Today’s Topics 1. XSS Content Security Policy / 2. SSL HTTP Public Key Pinning / Certificate Transparency / HTTP Strict Transport Security 3. ReportURI
  • 12. CSP • C • C • C • P Script T • Content-Security-Policy-Report-Only T H S
  • 13. CSP H • HTML • WEB conf C • C C
  • 14. CSP nc?HTML if g h • if j <meta http-equiv="Content-Security-Policy" content=”...”> • lmC H :: - - - / / - =- . - : - : - : a C H TP S b ed?
  • 15. CSP WEB • Nginx Apache add_header Content-Security-Policy “...”; • C H C
  • 16. CSP C • PHP header header(“Content-Security-Policy: ...”); • C
  • 17. CSP default-src 'self’; upgrade-insecure-requests; report-uri endpoint; • • Fetch • Reporting H • etc… C
  • 18. Fetch default-src ‘self’; script-src ‘A.com’; style-src ‘B.com’; frame-src ’none’; • S H • A.com T B.com C ‘self’ frame • • S H P
  • 19. FetchH • default-src T • script-src JavaScript • style-src • img-src • connect-src JavaScript URL • font-src @font-face • frame-src <frame> <iframe> • manifest-src P • media-src <audio> <video> <track> H • object-src <object> <embed> <applet> • prefetch-src fetch T • webrtc-src WebRTC S • child-src web workers <frame>/<iframe> • worker-src Worker, SharedWorker, ServiceWorker T C T S
  • 20. Reporting H • S • report-to report-uri H • report-uri T CSP Level3 deprecated • report-to • H report-to C P S
  • 21. report-to Report-To: {“group”: “csp-report”, ”include-subdomains”: false, “max- age”: 86400, endpoints: {“url”: “...”}} Content-Security-Policy: ...; report-to csp-report; • Report-To • • P report-uri C H
  • 22. report-uri Content-Security-Policy: ...; report-uri: endpoint; • JSON C { "csp-report": { "document-uri": "https://myblog.jp/entries/12", "blocked-uri": "ms-browser-extension", "violated-directive": "default-src 'self' https://asset.myblog.jp ...", "original-policy": "default-src 'self' https://asset.myblog.jp ...", "effective-directive": "img-src", "status-code": 0 } }
  • 23. report-uri • blocked-uri URI • document-uri URI • violated-directive C
  • 24. H • Mixed Content H • HTTPS S HTTP T • upgrade-insecure-requests http https C • block-all-mixed-content http T C P
  • 25. CSP GitHub Content-Security-Policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com githubstatus.com collector.githubapp.com api.github.com www.google- analytics.com github-cloud.s3.amazonaws.com github- production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file- 7fdce7.s3.amazonaws.com github-production-user-asset- 6210df.s3.amazonaws.com wss://live.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com
  • 26. CSP Twitter content-security-policy: script-src https://ssl.google-analytics.com 'nonce-oTPLYVAFzPwnlPVafnQbGQ==' https://twitter.com 'unsafe-eval' https://*.twimg.com https://api.twitter.com https://analytics.twitter.com https://publish.twitter.com https://ton.twitter.com https://syndication.twitter.com https://www.google.com https://platform.twitter.com https://www.google-analytics.com blob: 'self'; frame-ancestors 'self'; font-src https://twitter.com https://*.twimg.com data: https://ton.twitter.com 'self'; media-src https://rmpdhdsnappytv-vh.akamaihd.net https://prod-video-eu-central-1.pscp.tv https://prod-video-ap-south-1.pscp.tv https://v.cdn.vine.co https://dwo3ckksxlb0v.cloudfront.net https://twitter.com https://prod-video-us-east-2.pscp.tv https://prod-video- cn-north-1.pscp.tv https://amp.twimg.com https://smmdhdsnappytv-vh.akamaihd.net https://*.twimg.com https://prod-video-eu-west- 1.pscp.tv https://*.video.pscp.tv https://rmmdhdsnappytv-vh.akamaihd.net https://clips-media-assets.twitch.tv https://prod-video-ap- northeast-2.pscp.tv https://prod-video-us-west-2.pscp.tv https://prod-video-us-west-1.pscp.tv https://prod-video-ap-northeast-1.pscp.tv https://smdhdsnappytv-vh.akamaihd.net https://ton.twitter.com https://prod-video-eu-west-3.pscp.tv https://rmdhdsnappytv- vh.akamaihd.net https://mmdhdsnappytv-vh.akamaihd.net https://prod-video-ca-central-1.pscp.tv https://smpdhdsnappytv-vh.akamaihd.net https://prod-video-sa-east-1.pscp.tv https://mdhdsnappytv-vh.akamaihd.net https://prod-video-ap-southeast-2.pscp.tv https://mtc.cdn.vine.co https://prod-video-cn-northwest-1.pscp.tv https://prod-video-eu-west-2.pscp.tv https://canary-video-us-east- 1.pscp.tv https://dev-video-us-west-2.pscp.tv https://prod-video-us-east-1.pscp.tv blob: 'self' https://prod-video-ap-northeast- 3.pscp.tv https://prod-video-ap-southeast-1.pscp.tv https://mpdhdsnappytv-vh.akamaihd.net https://dev-video-eu-west-1.pscp.tv; connect- src https://rmpdhdsnappytv-vh.akamaihd.net https://prod-video-eu-central-1.pscp.tv https://prod-video-ap-south-1.pscp.tv https://*.giphy.com https://dwo3ckksxlb0v.cloudfront.net https://prod-video-us-east-2.pscp.tv https://prod-video-cn-north-1.pscp.tv https://vmaprel.snappytv.com https://smmdhdsnappytv-vh.akamaihd.net https://*.twimg.com https://embed.pscp.tv https://api.twitter.com https://prod-video-eu-west-1.pscp.tv https://*.video.pscp.tv https://rmmdhdsnappytv-vh.akamaihd.net https://clips-media- assets.twitch.tv https://prod-video-ap-northeast-2.pscp.tv https://prod-video-us-west-2.pscp.tv https://pay.twitter.com https://prod- video-us-west-1.pscp.tv https://analytics.twitter.com https://vmap.snappytv.com https://*.twprobe.net https://prod-video-ap-northeast- 1.pscp.tv https://smdhdsnappytv-vh.akamaihd.net https://prod-video-eu-west-3.pscp.tv https://syndication.twitter.com https://sentry.io https://rmdhdsnappytv-vh.akamaihd.net https://media.riffsy.com https://mmdhdsnappytv-vh.akamaihd.net https://prod-video-ca-central- 1.pscp.tv https://embed.periscope.tv https://smpdhdsnappytv-vh.akamaihd.net https://prod-video-sa-east-1.pscp.tv https://vmapstage.snappytv.com https://upload.twitter.com https://proxsee.pscp.tv https://mdhdsnappytv-vh.akamaihd.net https://prod- video-ap-southeast-2.pscp.tv https://prod-video-cn-northwest-1.pscp.tv https://prod-video-eu-west-2.pscp.tv https://canary-video-us- east-1.pscp.tv https://dev-video-us-west-2.pscp.tv https://prod-video-us-east-1.pscp.tv blob: 'self' https://prod-video-ap-northeast- 3.pscp.tv https://vmap.grabyo.com https://prod-video-ap-southeast-1.pscp.tv https://mpdhdsnappytv-vh.akamaihd.net https://dev-video-eu- west-1.pscp.tv; style-src https://fonts.googleapis.com https://twitter.com https://*.twimg.com https://translate.googleapis.com https://ton.twitter.com 'unsafe-inline' https://platform.twitter.com 'self'; object-src https://twitter.com https://pbs.twimg.com; default-src 'self' blob:; frame-src https://twitter.com https://*.twimg.com https://player.vimeo.com https://pay.twitter.com https://ton.twitter.com https://syndication.twitter.com https://vine.co twitter: https://www.youtube.com https://platform.twitter.com https://upload.twitter.com 'self'; img-src https://*.giphy.com https://*.pscp.tv https://twitter.com https://*.twimg.com data: https://clips-media-assets.twitch.tv https://lumiere-a.akamaihd.net https://ton.twitter.com https://syndication.twitter.com https://media.riffsy.com https://www.google.com https://platform.twitter.com https://api.mapbox.com https://www.google-analytics.com blob: https://*.periscope.tv 'self'; report-uri https://twitter.com/i/csp_report?a=NVQWGYLXFVZXO2LGOQ%3D%3D%3D%3D%3D%3D&ro=false;
  • 27. CSP • CSP nonce / strict-dynamic P • H Level3 • • script C
  • 28. script-src • CSP URL • script TS script TS • P C H unsafe-inline CSP • nonce / strict-dynamic
  • 29. nonce • S T nonce • script nonce • script nonce S nonce script nonce H CCP
  • 30. nonce • HTTP script-src: 'nonce-43f23r98’ • <script src="..." nonce="43f23r98"></script>
  • 31. nonce PTS • script nonce • H script • strict-dynamic C
  • 32. nonce + strict-dynamic • PS nonce T • scriptDOM P • HTTPC script-src: 'nonce-43f23r98' 'strict-dynamic’ • <script nonce="43f23r98">...</script> H
  • 33. nonce + strict-dynamic • strictCSP https://csp.withgoogle.com/docs/strict-csp.html • script • T T C • S • T H PT
  • 34. CSP • Report-Only S • H • T C 20 CSP • T C P
  • 35.
  • 36. X-XSS-Protection X-XSS-Protection: 0 or 1; [mode=block;] [report=...;] • XSS H • mode=block • report
  • 38. Today’s Topics 1. XSS Content Security Policy / 2. SSL HTTP Public Key Pinning / Certificate Transparency / HTTP Strict Transport Security 3. ReportURI
  • 39. HTTP Public Key Pinning
  • 41. HPKP T • HTTP Public Key Pinning • WEB • 2 P • T H • PHP header K
  • 42. HPKP Public-Key-Pins: pin-sha256=”base64=="; max-age=5184000; [includeSubDomains;] [report-uri=”...”;] • Base64 P • max-age T • includeSubDomains • report-uri H KH
  • 47. HPKP P T • max-age ≦ T H • K T HPKP K T max-age
  • 48. HPKP • • T • • Chrome 67 P • CT H K
  • 49. CT
  • 51. CT • Certificate Transparency T • C SCT Signed Certificate Timestamp • SCT • Let’s Encrypt Amazon Certificate Manager • Expect-CT H P
  • 52. Expect-CT H Expect-CT: max-age=86400, [enforce,] [report-uri=”...”] • max-age • enforce C report-only • report-uri
  • 53. CT • … P C C • H • T
  • 54. CT • HPKP • HPKP CT • T C H P
  • 57. HSTS S • HTTP Strict Transport Security • HTTPS H • HTTPS H • PHP header P
  • 59. • S HTTPS P https://hstspreload.org/ • T H
  • 60. Today’s Topics 1. XSS Content Security Policy / 2. SSL HTTP Public Key Pinning / Certificate Transparency / HTTP Strict Transport Security 3. ReportURI
  • 62. ReportURI • • 10,000 report / month $100 1000,000 report /month • H H CSP Except-CT H P • • T H