Commit a3d4dd5
committed
streamlocal: document security considerations for Simple callbacks
SimpleUnixLocalForwardingCallback and SimpleUnixReverseForwardingCallback
perform no validation on client-supplied socket paths. A malicious client
can request forwarding to arbitrary paths, which in the reverse case
causes directory creation (MkdirAll), file deletion (unlink), and socket
binding at the requested path.
Add prominent documentation warnings that these helpers are intended for
trusted environments and that production deployments should implement
custom callbacks with path validation and access control.
Updates gliderlabs#1961 parent a67d573 commit a3d4dd5
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
257 | 263 | | |
258 | 264 | | |
259 | 265 | | |
| |||
262 | 268 | | |
263 | 269 | | |
264 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
265 | 277 | | |
266 | 278 | | |
267 | 279 | | |
| |||
0 commit comments