Pentesting Modern Web Apps: A Primer
summary
Covers concrete tests and exploits for modern SPAs: shows an Angular/Vue/React client-side template injection that escalates to full XSS via the Function constructor exploit (toString/constructor/fromCharCode and a shorter +![]+[] string trick), warns that Angular <1.6 sandboxes are bypassable, and demonstrates discovery of hidden admin flows in bundled Webpack files. Walks through REST auth bypasses by PUT/PATCH to /users/current, use of Swagger/OpenAPI and Postman for mapping, and reflected Access-Control-Allow-Origin CORS misconfigurations that leak credentials.
AI-written summary · about
chapters (25)
- 0:00Introduction
- 0:35Motivation
- 2:05Data Binding
- 2:57XSS Protection
- 3:23Disable XSS
- 3:43Clientside template injection
- 5:01Angularjs
- 6:13PHP echo
- 7:09View
- 7:20Quotes
- 8:45Disclaimer
- 9:20JavaScript
- 10:34XSS
- 10:55Object to String
- 11:56Architecture
- 13:16Enumeration
- 14:41API Documentation
- 16:20Logic Authorization Testing
- 17:09Clientside Business Logic
- 19:05RealWorld Examples
- 21:43Postman
- 22:49Cores
- 25:35CrossOrigin Resource Sharing
- 26:54Rest Frameworks
- 27:53Extreme
