Web application security in Java

CELJvWeb
AI narration
Online VM
Java
Developer
e-Learning

Base training

labs

28 Labs

case_study

12 Case Studies

Monthly feed for a year

A combination of repeated and new skills & drills for continuous learning

labs

2-3 labs

case_study

Case study

Platform

Web

Audience

Java developers working on Web applications

Preparedness

General Java and Web development

Standards and references

OWASP, SEI CERT, CWE and Fortify Taxonomy

Outline

  • Cyber security basics
  • The OWASP Top Ten
  • A01 - Broken Access Control
  • A02 - Cryptographic Failures
  • A03 - Injection
  • A04 - Insecure Design
  • A05 - Security Misconfiguration
  • A06 - Vulnerable and Outdated Components
  • A07 - Identification and Authentication Failures
  • A08 - Software and Data Integrity Failures
  • A10 - Server-Side Request Forgery
  • Wrap up

What you will learn

  • Getting familiar with essential cyber security concepts
  • Identify Web application vulnerabilities and their consequences
  • Learn the security best practices in C#
  • Input validation approaches and principles
  • Understanding Web application security issues
  • Detailed analysis of the OWASP Top Ten elements
  • Putting Web application security in the context of Java
  • Going beyond the low hanging fruits

Description

Your Web application written in Java works as intended, so you are done, right? But did you consider feeding in incorrect values? 16Gbs of data? A null? An apostrophe? Negative numbers, or specifically -1 or -2^31? Because that’s what the bad guys will do – and the list is far from complete.

Handling security needs a healthy level of paranoia, and this is what this course provides: a strong emotional engagement by lots of hands-on labs and stories from real life, all to substantially improve code hygiene. Mistakes, consequences, and best practices are our blood, sweat and tears.

The curriculum goes through the common Web application security issues following the OWASP Top Ten but goes far beyond it both in coverage and the details.All this is put in the context of Java, and extended by core programming issues, discussing security pitfalls of the Java language and the runtime environment.

So that you are prepared for the forces of the dark side.

So that nothing unexpected happens.

Nothing.

They said about us

I didn't expect this coming

I have been coding for 15 years and never thought I would still come across such important security cornerstones.

Participant , December, 2019

Stockholm, Sweden

Table of contents

  • Security basics
    • What is security?
    • Threat and risk
  • Cyber security threats
  • Insecure software
    • Consequences of insecure software
    • Constraints and the market
    • The dark side
  • Authorization
    • Access control basics
    • Failure to restrict URL access
    • Confused deputy
  • Insecure Direct Object Reference
    • Insecure direct object reference (IDOR)
    • Path traversal
    • Lab – Insecure Direct Object Reference
    • Path traversal best practices
  • Horizontal authorization
    • Authorization bypass through user-controlled keys
    • Case study – Authorization bypass on Facebook
    • Lab – Horizontal authorization
  • File upload
    • Unrestricted file upload
    • Good practices
    • Lab – Unrestricted file upload
  • Cross-site Request Forgery (CSRF)
    • Lab – Cross-site Request Forgery
  • Cross-site Request Forgery (CSRF) best practices
    • CSRF best practices
    • CSRF defense in depth
    • Lab – CSRF protection with tokens
  • Information exposure
    • Exposure through extracted data and aggregation
    • Case study – Strava data exposure
    • Leaking system information
  • Cryptography for developers
    • Cryptography basics
    • Java Cryptographic Architecture (JCA) in brief
  • PRNG
    • Random number generation
    • Pseudo random number generators (PRNGs)
    • Cryptographically strong PRNGs
    • Using virtual random streams
    • Case study – Equifax credit account freeze
    • Weak and strong PRNGs in Java
    • Using random numbers in Java
    • Lab – Using random numbers in Java
  • Hashing
    • Hashing basics
    • Common hashing mistakes
    • Hashing in Java
    • Lab – Hashing in JCA
  • Encryption
    • Confidentiality protection
    • Symmetric encryption
    • Block ciphers
    • Modes of operation
    • Modes of operation and IV – best practices
    • Symmetric encryption in Java
    • Symmetric encryption in Java with streams
    • Lab – Symmetric encryption in JCA
    • Asymmetric encryption
    • The RSA algorithm
    • Using RSA – best practices
    • RSA in Java
    • Combining symmetric and asymmetric algorithms
  • Injection problems
    • Injection principles
    • Injection attacks
  • SQL injection
    • SQL injection basics
    • Lab – SQL injection
  • SQL injection attack techniques
    • Attack techniques
    • Content-based blind SQL injection
    • Time-based blind SQL injection
  • SQL injection best practices
    • Input validation
    • Parameterized queries
    • Lab – Using prepared statements
  • SQL injection additional considerations
    • Additional considerations
    • Case study – Hacking Fortnite accounts
  • Code injection – OS command injection
    • Code injection
    • OS command injection
  • OS command injection best practices
    • Using Runtime.exec()
    • Using ProcessBuilder
    • Case study – Shellshock
    • Lab – Shellshock
  • HTML injection – Cross-site scripting (XSS)
    • Cross-site scripting basics
    • Persistent cross-site scripting
    • Reflected cross-site scripting
    • Client-side (DOM-based) cross-site scripting
  • XSS attacks
    • Lab – Stored XSS
    • Lab – Reflected XSS
    • Case study – XSS in Fortnite accounts
  • XSS best practices 1
    • Protection principles – escaping
    • XSS protection APIs in Java
    • Lab – XSS fix / stored
  • XSS best practices 2
    • XSS protection in JSP
    • Lab – XSS fix / reflected
    • Additional protection layers – defense in depth
  • Insecure design
    • The STRIDE model of threats
    • Secure design principles of Saltzer and Schroeder
  • Insecure design – Saltzer and Schroeder 1
    • Economy of mechanism
    • Fail-safe defaults
    • Complete mediation
    • Open design
  • Insecure design – Saltzer and Schroeder 2
    • Separation of privilege
    • Least privilege
    • Least common mechanism
    • Psychological acceptability
  • Client-side security
    • Same Origin Policy
    • Simple request
    • Preflight request
    • Cross-Origin Resource Sharing (CORS)
  • Tabnabbing and frame sandboxing
    • Tabnabbing
    • Frame sandboxing
  • Clickjacking
    • Cross-Frame Scripting (XFS) attacks
    • Lab – Clickjacking
    • Clickjacking beyond hijacking a click
  • Anti-clickjacking best practices
    • Clickjacking protection best practices
    • Lab – Using CSP to prevent clickjacking
  • Misconfiguration and XML parsing
    • Configuration principles
    • XML Entities
    • DTD and the entities
    • Entity expansion
  • XML External Entity (XXE)
    • File inclusion with external entities
    • Server-Side Request Forgery with external entities
    • Lab – External entity attack
    • Case study – XXE vulnerability in SAP Store
  • XXE best practices
    • Preventing XXE
    • Lab – Prohibiting DTD
  • Vulnerable components and dependencies
    • Using vulnerable components
    • Assessing the environment
    • Hardening
    • Untrusted functionality import
  • Vulnerability management
    • Patch management
    • Vulnerability databases
    • Lab – Finding vulnerabilities in third-party components
  • Authentication
    • Authentication basics
    • Multi-factor authentication
    • Authentication weaknesses
    • Case study – PayPal 2FA bypass
  • Session security
    • Session management essentials
    • Why do we protect session IDs – Session hijacking
    • Session fixation
    • Session ID best practices
  • Password management
  • Password storage
    • Salting
    • Adaptive hash functions for password storage
    • Lab – Using adaptive hash functions in JCA
  • Password policy
  • Password management challenges
    • Password database migration
    • (Mis)handling null passwords
  • Integrity protection and MAC
    • Integrity protection
    • Message Authentication Code (MAC)
    • Calculating MAC in Java
    • Lab – Calculating MAC in JCA
  • Digital signatures
    • Digital signature
    • Digital signature with RSA
    • ECC basics
    • Digital signature with ECC
    • Lab – Digital signature with ECDSA in JCA
  • Subresource integrity
    • Importing JavaScript
    • Lab – Importing JavaScript
    • Case study – The British Airways data breach
  • Insecure deserialization
    • Serialization and deserialization challenges
    • Integrity – deserializing untrusted streams
    • Using readObject
    • Integrity – deserialization best practices
    • Look ahead deserialization
  • Property Oriented Programming
    • Property Oriented Programming (POP)
    • Lab – Creating a POP payload
  • POP exploitation and best practices
    • Lab – Using the POP payload
    • Summary – POP best practices
    • DoS with deserialization
    • Lab – Billion laughs with deserialization
  • SSRF
    • Server-side Request Forgery (SSRF)
    • Case study – SSRF and the Capital One breach
  • Sources and further readings
    • Software security sources and further reading
    • Java resources

Pricing

1 year subscription license

599 EUR / person

  • E-learning subscription for sustained readiness
  • Discussion and insight into the hacker’s mindset
  • Hands-on practice, lab exercises using live drills
  • Case studies based on high-profile hacks
Customized course

Tailor a course to your preferences

  • Send us a brief description of your business’s training needs
  • Include your contact information
  • One of our colleagues will be in touch to schedule a free consultation about training requirements

Inquiry

Interested in the trainings but still have some questions? Curious about how you can customize a training for your team? Send us a message and a team member will be in touch within 24 hours.

This field is required

This field is required

Send us your phone number if you prefer to discuss further on a call

This field is required

This field is required

This field is required

This field is required