File: xss-nojquery.html

package info (click to toggle)
libjs-angular-gettext 2.3.8-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 292 kB
  • sloc: javascript: 1,596; python: 87; makefile: 17
file content (21 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!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/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>