------------
- manager: clear the cache via management HTTP API (#876,!1491)
- docs: documentation is now separated into user and developer parts (!1514)
+- daemon: ignore UDP requests from ports < 1024 (!1507)
Bugfixes
--------
}
}
+ // We're aware of no use cases for low source ports,
+ // and they might be useful for attacks with spoofed source IPs.
+ if (!s->outgoing && kr_inaddr_port(comm_addr) < 1024) {
+ kr_log_debug(IO, "<= ignoring UDP from suspicious port: '%s'\n",
+ kr_straddr(comm_addr));
+ return;
+ }
+
int ret = wire_buf_consume(&s->layers->wire_buf, nread);
if (ret) {
wire_buf_reset(&s->layers->wire_buf);