Repository navigation
Commit 69a54c6
Fix web server binding vulnerability and tests
Changed the `tiny_http::Server` to bind to `127.0.0.1` instead of
`0.0.0.0` in `stdlib/src/web.rs`. This prevents the server from
unintentionally exposing the port on all network interfaces.
Also updated the `TcpListener` in `stdlib/tests/stdlib_tests.rs`
to bind to `127.0.0.1` so that the port conflict test continues
to pass.
Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>1 parent bd0468b commit 69a54c6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
0 commit comments