SlideShare a Scribd company logo
Is Your App Secure
Chathur anga Bandar a
Who TF is this?
• Engineer by profession, Husband and a Father by decision
• Love Python
• Love and hate JavaScript
• Have 8 odd years of experience doing some coding and shit
• Like CnH2n+1OH, Gin to be specific
Is your app secure
What Does
Securing
your app
means?
Best Practices
-
Security Implementations
Use Latest Angular Possible
XSS | XSRF
XSS?
“enables an attacker toinject
client-side script into web pages
viewed by other users”
Is your app secure
Is your app secure
How toPrevent?
Angular is a Good Guy..
Rather Like an overprotective Girl/Boy Friend
“Angular treats all values as
untrusted bydefault. When a
value is insertedinto the DOM
froma template, via property,
attribute, style and class binding,
orinterpolation,
Angular sanitizes and escapes
untrusted values.”
Is your app secure
unsafe value usedin a resource URL context.
Bypassing?
Makesure you sanitize after!
Is your app secure
Is your app secure
Avoid direct DOMmanipulations
Is your app secure
Is your app secure
Ahead-of-Time Compilation
“You can compilethe app
in the browser, at runtime,
as the application loads,
usingthe just-in-time (JIT) compiler.
This is the standard development approach
shownthroughout the documentation.
It's great but it has shortcomings.”
“With AOT, the compiler
runs onceat build time
using oneset of libraries;
with JIT it runs every time
forevery user at runtime
using a different set of libraries.”
Faster Rendering
FewerAsync Requests
Smaller Angular frameworkdownload
Detect Template Errors earlier
Better Security
Never use Angular Templating fromServer side
XSRF??
“Cross-Site Request Forgery(CSRF) is an attack
that forcesan end user to executeunwanted
actions ona web application in whichthey're
currentlyauthenticated.”
To prevent this, the application
must ensure that a user
request originates fromthe
real application
Angular's HttpClient has built-in support
for theclient-side half ofthis technique.
CookieXSRFStrategy
Is your app secure
Macaroons
Decentralized Authorization
js-macaroon
Python, C, C++,C#,Java
http://macaroons.io/
Thank you

More Related Content

PDF
Web Servislerinin Hacklenmesi, Ömer Çıtak
PDF
Laravel ile hızlı ve modern web programlama
PPTX
Introduction to CSRF Attacks & Defense
PDF
Understanding CSRF
PDF
State of Web Security RailsConf 2016
PDF
RailsConf 2015 - Metasecurity: Beyond Patching Vulnerabilities
PDF
GoSec 2015 - Protecting the web from within
PPTX
Web attacks using obfuscated script
Web Servislerinin Hacklenmesi, Ömer Çıtak
Laravel ile hızlı ve modern web programlama
Introduction to CSRF Attacks & Defense
Understanding CSRF
State of Web Security RailsConf 2016
RailsConf 2015 - Metasecurity: Beyond Patching Vulnerabilities
GoSec 2015 - Protecting the web from within
Web attacks using obfuscated script

What's hot (6)

PPTX
April jakartajs meetup how to handle 300k user traffic @kumparan
PDF
Owasp Top 10 (M-10 : Lack of Binary Protection) | Null Meet
PDF
Password Management
PDF
Esoteric xss payloads
PPTX
Dzhengis 93098 ajax - security
PPTX
The Patsy Proxy
April jakartajs meetup how to handle 300k user traffic @kumparan
Owasp Top 10 (M-10 : Lack of Binary Protection) | Null Meet
Password Management
Esoteric xss payloads
Dzhengis 93098 ajax - security
The Patsy Proxy
Ad

Similar to Is your app secure (20)

DOC
PADMA_UI_HYDERABAD_3_YRS
PDF
React commonest security flaws and remedial measures!
PDF
Hiring Django Developers for Success.pdf
PPTX
Mr. Mohammed Aldoub - A case study of django web applications that are secur...
PPTX
Case Study of Django: Web Frameworks that are Secure by Default
PDF
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
PPT
Django (Web Applications that are Secure by Default)
PPTX
Best Web Development Frameworks.pptx
PDF
E2 Labs: ADVANCED PROGRAM ON: THE SECURITY OF A WEBSITE
PPTX
Blockchain-budget-app-development.pptx
PDF
Stapling and patching the web of now - ForwardJS3, San Francisco
PDF
Securing a Cloud Migration
PDF
Securing a Cloud Migration
PPTX
Demystifying the Mobile Container - PART I
PDF
DaZhangJM0203JM0203
PPTX
LATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptx
PPTX
Native - Hybrid - Web Mobile Architectures
PPTX
Big Improvement_ New AngularJS Tools Changing How We Develop.pptx
PPTX
Building SPAs with AngularJS
PPTX
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
PADMA_UI_HYDERABAD_3_YRS
React commonest security flaws and remedial measures!
Hiring Django Developers for Success.pdf
Mr. Mohammed Aldoub - A case study of django web applications that are secur...
Case Study of Django: Web Frameworks that are Secure by Default
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
Django (Web Applications that are Secure by Default)
Best Web Development Frameworks.pptx
E2 Labs: ADVANCED PROGRAM ON: THE SECURITY OF A WEBSITE
Blockchain-budget-app-development.pptx
Stapling and patching the web of now - ForwardJS3, San Francisco
Securing a Cloud Migration
Securing a Cloud Migration
Demystifying the Mobile Container - PART I
DaZhangJM0203JM0203
LATEST_TRENDS_IN_WEBSITE_DEVELOPMENT.pptx
Native - Hybrid - Web Mobile Architectures
Big Improvement_ New AngularJS Tools Changing How We Develop.pptx
Building SPAs with AngularJS
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
Ad

More from Chathuranga Bandara (9)

PDF
What is F# and why should we give a f#ck?
PDF
Agile negotiations
PDF
Python master class 3
PDF
Python master class 2
PDF
Python master class part 1
PDF
Introduction to Celery
PDF
Introduction to Cloud Computing (New)
PDF
Introduction to Cloud Computing
PPTX
Responsive Vs Dedicated: Insight into Mobile Web
What is F# and why should we give a f#ck?
Agile negotiations
Python master class 3
Python master class 2
Python master class part 1
Introduction to Celery
Introduction to Cloud Computing (New)
Introduction to Cloud Computing
Responsive Vs Dedicated: Insight into Mobile Web

Recently uploaded (20)

PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Introduction to Artificial Intelligence
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Transform Your Business with a Software ERP System
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
medical staffing services at VALiNTRY
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
L1 - Introduction to python Backend.pptx
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PPTX
assetexplorer- product-overview - presentation
PDF
System and Network Administration Chapter 2
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
history of c programming in notes for students .pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
wealthsignaloriginal-com-DS-text-... (1).pdf
Introduction to Artificial Intelligence
Wondershare Filmora 15 Crack With Activation Key [2025
Transform Your Business with a Software ERP System
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
medical staffing services at VALiNTRY
Design an Analysis of Algorithms I-SECS-1021-03
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Operating system designcfffgfgggggggvggggggggg
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
L1 - Introduction to python Backend.pptx
Designing Intelligence for the Shop Floor.pdf
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
assetexplorer- product-overview - presentation
System and Network Administration Chapter 2
Internet Downloader Manager (IDM) Crack 6.42 Build 41
history of c programming in notes for students .pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Navsoft: AI-Powered Business Solutions & Custom Software Development

Is your app secure

Editor's Notes

  • #2: Good evening everyone. In this session I’m going to talk about Angular-CLI. Which is the Command Line Interface for Angular 2 development
  • #18: Angular throwing this error because the <iframe src> attribute is a resource URL security context, because an untrusted source can, for example, smuggle in file downloads that unsuspecting users could execute.
  • #29: Faster rendering With AOT, the browser downloads a pre-compiled version of the application. The browser loads executable code so it can render the application immediately, without waiting to compile the app first. Fewer asynchronous requests The compiler inlines external HTML templates and CSS style sheets within the application JavaScript, eliminating separate ajax requests for those source files. Smaller Angular framework download size There's no need to download the Angular compiler if the app is already compiled. The compiler is roughly half of Angular itself, so omitting it dramatically reduces the application payload. Detect template errors earlier The AOT compiler detects and reports template binding errors during the build step before users can see them. Better security AOT compiles HTML templates and components into JavaScript files long before they are served to the client. With no templates to read and no risky client-side HTML or JavaScript evaluation, there are fewer opportunities for injection attacks.
  • #32: CSRF attacks specifically target state-changing requests, not theft of data, since the attacker has no way to see the response to the forged request