Cyber Risks · PortSwigger Research

Lab: DOM XSS in AngularJS expression with angle brackets and double quotes HTML-encoded

Summary: This PortSwigger lab contains a DOM-based cross-site scripting vulnerability in an AngularJS expression within the search functionality. AngularJS scans HTML nodes carrying the ng-app directive, and once a directive is present, JavaScript expressions inside double curly braces execute - a technique that works even when angle brackets are encoded.

Why it matters: Encoding angle brackets is a common defense against XSS, but AngularJS's ng-app directive turns double curly braces into an execution path that bypasses it - so any application still running AngularJS in its front end may carry this exposure in its search or input handling.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related