File: xss.html

package info (click to toggle)
libjs-angular-gettext 2.3.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 292 kB
  • sloc: javascript: 1,596; python: 87; makefile: 17
file content (22 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html ng-app="myApp">
    <head>
        <title>XSS test</title>
    </head>
    <body>
        <h1>XSS test</h1>
        <p>expression: {{ value }}</p>
        <p translate>translate directive: {{ value }}</p>

        <script src="/bower_components/jquery/dist/jquery.js"></script>
        <script src="/bower_components/angular/angular.js"></script>
        <script src="/dist/angular-gettext.js"></script>
        <script>
            angular.module("myApp", ["gettext"]);

            angular.module("myApp").run(function ($rootScope) {
                $rootScope.value = "<script>document.write('fa' + 'il');</sc" + "ript>";
            });
        </script>
    </body>
</html>