You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,19 @@ Untrusted Types is a Chrome extension that abuses [Trusted Types](https://w3c.gi
4
4

5
5
6
6
## Installation
7
-
1.`npm i`
8
-
2.`npm run build`
9
-
3. Go to `chrome://extensions`, enable Developer mode
10
-
4.`Load unpacked`, choose the `public` folder
7
+
### Using npm
8
+
1. Clone the repository
9
+
2. Install dependencies: `npm i`
10
+
3. Build the project: `npm run build`
11
+
4. Go to `chrome://extensions`, enable Developer mode
12
+
5.`Load unpacked`, choose the `public` folder
11
13
12
14
## Usage
13
15
Discover and test inputs passed into sinks that could lead to DOM XSS vulnerabilities.
14
16
15
17
A sink is a code pattern that could run arbitrary JavaScript code if the input is malicious, for example: `innerHTML`, `eval`, `document.write`.
16
18
17
-
Keywords (by default `d0mxss`) that are found to be passed in a sink will be highlighted in the extension and in the console.
19
+
Keywords (by default `d0mxss`) that are found to be passed in a sink will be highlighted in the extension and the console.
18
20
19
21
A simple tutorial: https://www.youtube.com/watch?v=CNNCCgDkt5k
20
22
@@ -38,6 +40,7 @@ You can edit settings directly in the extension:
38
40
2. It doesn't work in websites that are already using Trusted Types. This is not a problem for now because even Google themselves don't use it a lot
39
41
3. If console logs are not showing the stack trace, refresh the page.
40
42
4. It will fail on web pages with `<iframe src="javascript:...">` (but fine if dynamically inserted). Check [issue #1](https://github.com/filedescriptor/untrusted-types/issues/1)
43
+
5. It will fail in web workers using `importScripts()`. Check [issue #7](https://github.com/filedescriptor/untrusted-types/issues/7)
0 commit comments