SlideShare uma empresa Scribd logo
1 de 48
Baixar para ler offline
A Boy,
A Sugar Glider
and the TSA
Brian Clark
@_clarkio
Credit: https://www.flickr.com/photos/pitmanra/
Credit: https://www.flickr.com/photos/lostintexas/
Credit: https://www.flickr.com/photos/muar_chee/
Browser
http://insecureheroes.com
Server
http://insecureheroes.com
Browser
http://insecureheroes.com
Server
http://insecureheroes.com
Browser
http://insecureheroes.com
Server
http://insecureheroes.com
Browser
http://insecureheroes.comCookies
Server
http://insecureheroes.com
Browser
http://insecureheroes.comCookies
Server
http://insecureheroes.com
Hero: Luke
Browser
http://insecureheroes.comCookies
Server
http://insecureheroes.com
http://clickbaity.co
Browser
http://insecureheroes.comCookies
Server
http://insecureheroes.com
http://attacker.com
Attack
insecureheroes.com
Hero: Darth
An attack that executes a request on behalf of another
authenticated user that was not intending to perform that action
being requested
Cross-site Request Forgery
Synchronizer
Token Pattern
Random token
Unique to user and session
Part of the request header
Validated server-side
https://www.npmjs.com/package/csurf
https://angular.io/guide/http#security-xsrf-protection
https://caniuse.com/#search=samesite
An attack that injects malicious code into a trusted web site such
that it may be executed unintendedly by other users
Cross-site Scripting (XSS)
Prevention
Content Security PolicyInput Handling
Control what resources the
browser is allowed to load
Ensure data is aligned with
the expectations for its
intended use
Input Handling
Input Handling
Input Handling
EscapingSanitizationValidation
Sanitization EscapingValidation
Ensure the data is legit
Invalid EmailResult:
Validation EscapingSanitization
Clean the bad data
BCResult:
SanitizationValidation Escaping
Encode the bad data
B<script>alert(1);</script>CResult:
Do not trust user input
Where should we apply
input handlers?
Where should we apply
input handlers?
Client? Server?
Browser
http://insecureheroes.com
Server
http://insecureheroes.com
Browser
http://insecureheroes.com
Server
http://insecureheroes.com
Security
Boundary
Browser
http://insecureheroes.com
Server
http://insecureheroes.com
Security
Boundary
Untrusted
Browser
http://insecureheroes.com
Server
http://insecureheroes.com
Security
Boundary
Trusted
Both
?
https://angular.io/guide/security
https://angular.io/guide/security
?
https://www.npmjs.com/package/express-validator
https://www.npmjs.com/package/xss-filters
Summary
Access Control
Malicious Input
Sugar Gliders
Faking Requests
References
https://owasp.org
https://github.com/Azure-Samples/angular-cosmosdb
(branch:	insecure-heroes)
https://angular.io/guide/security
https://www.npmjs.com/package/csurf
https://angular.io/guide/http#security-xsrf-protection
https://caniuse.com/#search=samesite
Brian	Clark
@_clarkio
Thank You!

Mais conteúdo relacionado

Semelhante a 2018 Orlando Devs - Application Security

2018 Orlando Code Camp Application Security
2018 Orlando Code Camp Application Security2018 Orlando Code Camp Application Security
2018 Orlando Code Camp Application SecurityBrian Clark
 
Forgotten Security
Forgotten SecurityForgotten Security
Forgotten SecurityBrian Clark
 
Library Analytics with Char Booth and Paul Signorelli, Session 1 Part 2
Library Analytics with Char Booth and Paul Signorelli, Session 1 Part 2Library Analytics with Char Booth and Paul Signorelli, Session 1 Part 2
Library Analytics with Char Booth and Paul Signorelli, Session 1 Part 2ALATechSource
 
Attacking websockets
Attacking websocketsAttacking websockets
Attacking websocketssinakheirkhah
 
Ignite raleigh henry copeland 2010
Ignite raleigh henry copeland 2010Ignite raleigh henry copeland 2010
Ignite raleigh henry copeland 2010Ignite Raleigh
 
The Search for the Perfect Door - Deviant Ollam
The Search for the Perfect Door - Deviant OllamThe Search for the Perfect Door - Deviant Ollam
The Search for the Perfect Door - Deviant OllamShakacon
 
Don't Forget to Pack Your Social Network: Data Portability Myths and Realities
Don't Forget to Pack Your Social Network: Data Portability Myths and RealitiesDon't Forget to Pack Your Social Network: Data Portability Myths and Realities
Don't Forget to Pack Your Social Network: Data Portability Myths and RealitiesMark Congiusta
 
New Media 101 - NewBCamp 2008
New Media 101 - NewBCamp 2008New Media 101 - NewBCamp 2008
New Media 101 - NewBCamp 2008Christopher Penn
 
The Quest for the Ultimate Web Design Tool
The Quest for the Ultimate Web Design ToolThe Quest for the Ultimate Web Design Tool
The Quest for the Ultimate Web Design ToolDan Rose
 
Things i am thankful for
Things i am thankful forThings i am thankful for
Things i am thankful forMrsLOnlineA2011
 
Suporte técnico em redes sociais
Suporte técnico em redes sociaisSuporte técnico em redes sociais
Suporte técnico em redes sociaisRoberto Cohen
 
Thing Im Thankful For BKaminski
Thing Im Thankful For BKaminskiThing Im Thankful For BKaminski
Thing Im Thankful For BKaminskiLundquistOnlineA
 
SBGames 2012 - What is going on with ubicomp games
SBGames 2012 - What is going on with ubicomp gamesSBGames 2012 - What is going on with ubicomp games
SBGames 2012 - What is going on with ubicomp gamesFabricio Nogueira Buzeto
 
Digital Storytelling
Digital StorytellingDigital Storytelling
Digital StorytellingRachelStaman
 
The Digital Teacher
The Digital TeacherThe Digital Teacher
The Digital TeacherKyle Pace
 
Second Life: An Introduction
Second Life: An IntroductionSecond Life: An Introduction
Second Life: An Introductioniconolith
 

Semelhante a 2018 Orlando Devs - Application Security (20)

2018 Orlando Code Camp Application Security
2018 Orlando Code Camp Application Security2018 Orlando Code Camp Application Security
2018 Orlando Code Camp Application Security
 
Forgotten Security
Forgotten SecurityForgotten Security
Forgotten Security
 
Library Analytics with Char Booth and Paul Signorelli, Session 1 Part 2
Library Analytics with Char Booth and Paul Signorelli, Session 1 Part 2Library Analytics with Char Booth and Paul Signorelli, Session 1 Part 2
Library Analytics with Char Booth and Paul Signorelli, Session 1 Part 2
 
Attacking websockets
Attacking websocketsAttacking websockets
Attacking websockets
 
Contact.rtf
Contact.rtfContact.rtf
Contact.rtf
 
Ignite raleigh henry copeland 2010
Ignite raleigh henry copeland 2010Ignite raleigh henry copeland 2010
Ignite raleigh henry copeland 2010
 
The Search for the Perfect Door - Deviant Ollam
The Search for the Perfect Door - Deviant OllamThe Search for the Perfect Door - Deviant Ollam
The Search for the Perfect Door - Deviant Ollam
 
Don't Forget to Pack Your Social Network: Data Portability Myths and Realities
Don't Forget to Pack Your Social Network: Data Portability Myths and RealitiesDon't Forget to Pack Your Social Network: Data Portability Myths and Realities
Don't Forget to Pack Your Social Network: Data Portability Myths and Realities
 
New Media 101 - NewBCamp 2008
New Media 101 - NewBCamp 2008New Media 101 - NewBCamp 2008
New Media 101 - NewBCamp 2008
 
The Quest for the Ultimate Web Design Tool
The Quest for the Ultimate Web Design ToolThe Quest for the Ultimate Web Design Tool
The Quest for the Ultimate Web Design Tool
 
Things i am thankful for
Things i am thankful forThings i am thankful for
Things i am thankful for
 
Here be Dragons
Here be Dragons Here be Dragons
Here be Dragons
 
Suporte técnico em redes sociais
Suporte técnico em redes sociaisSuporte técnico em redes sociais
Suporte técnico em redes sociais
 
Thing Im Thankful For BKaminski
Thing Im Thankful For BKaminskiThing Im Thankful For BKaminski
Thing Im Thankful For BKaminski
 
Why using the krya dishwash can make you a superhero - 2020
Why using the krya dishwash can make you a superhero - 2020 Why using the krya dishwash can make you a superhero - 2020
Why using the krya dishwash can make you a superhero - 2020
 
Msvisit10
Msvisit10Msvisit10
Msvisit10
 
SBGames 2012 - What is going on with ubicomp games
SBGames 2012 - What is going on with ubicomp gamesSBGames 2012 - What is going on with ubicomp games
SBGames 2012 - What is going on with ubicomp games
 
Digital Storytelling
Digital StorytellingDigital Storytelling
Digital Storytelling
 
The Digital Teacher
The Digital TeacherThe Digital Teacher
The Digital Teacher
 
Second Life: An Introduction
Second Life: An IntroductionSecond Life: An Introduction
Second Life: An Introduction
 

Último

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

2018 Orlando Devs - Application Security