Skip to content

Commit 3bb2e78

Browse files
author
Thomas Orlita
authored
Improve Installation, Limitation
1 parent b4cb090 commit 3bb2e78

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ Untrusted Types is a Chrome extension that abuses [Trusted Types](https://w3c.gi
44
![Untrusted Types for DevTools](docs/ui.png)
55

66
## 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
1113

1214
## Usage
1315
Discover and test inputs passed into sinks that could lead to DOM XSS vulnerabilities.
1416

1517
A sink is a code pattern that could run arbitrary JavaScript code if the input is malicious, for example: `innerHTML`, `eval`, `document.write`.
1618

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.
1820

1921
A simple tutorial: https://www.youtube.com/watch?v=CNNCCgDkt5k
2022

@@ -38,6 +40,7 @@ You can edit settings directly in the extension:
3840
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
3941
3. If console logs are not showing the stack trace, refresh the page.
4042
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)
4144

4245
## Based on
4346
- [untrusted-types](https://github.com/filedescriptor/untrusted-types/tree/old)

0 commit comments

Comments
 (0)