Skip to content

Commit 3b4ccef

Browse files
author
James Brundage
committed
docs: SECURITY.md ( Fixes #12 )
1 parent ba666c9 commit 3b4ccef

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

SECURITY.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Security
2+
3+
We take security seriously. If you believe you have discovered a vulnerability, please [file an issue](https://github.com/PowerShellWeb/WebSocket/issues).
4+
5+
## Special Security Considerations
6+
7+
WebSockets are not inherantly dangerous, but what comes out of them might well be.
8+
9+
In order to avoid data poisoning attacks, please _never_ directly run any code from the internet that you do not trust.
10+
11+
Please also assume all WebSockets are untrustworthy.
12+
13+
There are a few easy ways to do this.
14+
15+
WebSocket responses should never:
16+
17+
1. Be piped into `Invoke-Expression`
18+
2. Be expanded with `.ExpandString`
19+
3. Be directly placed into a `SQL` query
20+

0 commit comments

Comments
 (0)