Liran Tal
Friend or Foe? TypeScript Security Fallacies
#1about 2 minutes
The common misconception of TypeScript as a security tool
Developers often mistakenly believe TypeScript's type safety provides runtime security, but it is a development-time tool that doesn't prevent real-world attacks.
#2about 3 minutes
How HTTP parameter pollution creates ambiguity
Attackers can exploit how backends handle duplicate or malformed query parameters to cause unexpected behavior and bypass security checks.
#3about 5 minutes
Bypassing TypeScript types and interfaces with type juggling
Simple type definitions like `any`, explicit string casting, and even interfaces can be bypassed by sending array-like parameters, leading to vulnerabilities like cross-site scripting (XSS).
#4about 3 minutes
Why TypeScript is a dev-time tool, not a runtime guardrail
TypeScript checks are stripped out at compile time and have no effect on the running application, necessitating runtime validation techniques like type narrowing.
#5about 7 minutes
Exploiting prototype pollution to bypass Zod schema validation
Even with a schema validation library like Zod, attackers can use specially crafted payloads with `__proto__` to pollute the global Object prototype and gain unauthorized privileges.
#6about 2 minutes
Using mass assignment to bypass Zod's default behavior
By default, Zod allows extra, undefined properties in an object, which can lead to mass assignment vulnerabilities when the object is passed to an ORM.
#7about 2 minutes
Real-world examples of parameter pollution vulnerabilities
Popular libraries like object-path and the EJS templating engine have been vulnerable to parameter pollution, demonstrating how these attacks affect real applications.
#8about 2 minutes
Why TypeScript is like code coverage, not a security guarantee
Relying solely on TypeScript for security is like trusting 100% code coverage for bug-free code; it's a helpful tool but not a substitute for dedicated security practices.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
21:01 MIN
Applying typed security to OWASP vulnerabilities
Typed Security: Preventing Vulnerabilities By Design
38:46 MIN
Evaluating the strengths and limitations of TypeScript
Don't compromise on speedy delivery nor type-safety by choosing TypeScript
24:43 MIN
The future of XSS prevention with Trusted Types
A Primer in Single Page Application Security (Angular, React, Vue.js)
22:24 MIN
Why TypeScript is essential for building large applications
Building a large, complex product from the ground up with typescript & Atomic Design:lessons learned
27:19 MIN
Key takeaways on IDE and developer tool security
You click, you lose: a practical look at VSCode's security
41:25 MIN
Q&A on type systems and legacy code
Typed Security: Preventing Vulnerabilities By Design
30:50 MIN
How to convince your team to adopt TypeScript
4 Steps from JavaScript to TypeScript
04:14 MIN
Evaluating the pros and cons of TypeScript adoption
4 Steps from JavaScript to TypeScript
Featured Partners
Related Videos
Lies we Tell Ourselves As Developers
Stefan Baumgartner
Typed Security: Preventing Vulnerabilities By Design
Michael Koppmann
Don't compromise on speedy delivery nor type-safety by choosing TypeScript
Jens Claes
End-to-End TypeScript: Completing the Modern Development Stack
Marco Podien
Security in modern Web Applications - OWASP to the rescue!
Jakub Andrzejewski
Securing Frontend Applications with Trusted Types
Philippe De Ryck
101 Typical Security Pitfalls
Alexander Pirker
Cross Site Scripting is yesterday's news, isn't it?
Martina Kraus
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.
![Senior Software Engineer [TypeScript] (Prisma Postgres)](https://wearedevelopers.imgix.net/company/283ba9dbbab3649de02b9b49e6284fd9/cover/oKWz2s90Z218LE8pFthP.png?w=400&ar=3.55&fit=crop&crop=entropy&auto=compress,format)
Senior Software Engineer [TypeScript] (Prisma Postgres)
Prisma
Remote
Senior
Node.js
TypeScript
PostgreSQL


Full-Stack Software Developer TypeScript - Aerospace & Defence
Bertrandt AG
Hamburg, Germany
React
DevOps
Node.js
Angular
TypeScript
+2

Typescript Full Stack Engineer
Full Stack Typescript Engineer83zero Limited
Glasgow, United Kingdom
£45-55K
GIT
Java
REST
Azure
+16

Application Security Engineer
Palantirians
Charing Cross, United Kingdom
Remote
Go
Java
Python
JavaScript
+1

TypeScript AWS Developer
TechShack
Charing Cross, United Kingdom
£156-182K
Senior
Terraform
TypeScript
Microservices
Amazon Web Services (AWS)


TypeScript Engineer (OOP/React/Three.js)
Materialise
Barcelona, Spain
Intermediate
Java
React
Three.js
TypeScript
Unit Testing
+1

Test Automation Engineer Playright / TypeScript
Sanderson Recruitment Plc
Charing Cross, United Kingdom
Remote
£50-55K
Cypress
Selenium
JavaScript
+1