LAB 11 - DOM XSS in AngularJS expression with angle brackets and double quotes HTML-encoded¶
Initial instructions¶
This lab contains a DOM-based cross-site scripting vulnerability in a AngularJS expression within the search functionality.¶
AngularJS is a popular JavaScript library, which scans the contents of HTML nodes containing the ng-app attribute (also known as an AngularJS directive). When a directive is added to the HTML code, you can execute JavaScript expressions within double curly braces. This technique is useful when angle brackets are being encoded.¶
To solve this lab, perform a cross-site scripting attack that executes an AngularJS expression and calls the alert function.¶
To complete this lab I used the following XSS payload.
I get the XSS payload from the following website:
So I entered this payload into the search bar and clicked Search.

And then it triggered the XSS payload.
