diff --git a/advisories/RUSTSEC-2023-0041.html b/advisories/RUSTSEC-2023-0041.html new file mode 100644 index 000000000..64a3b817c --- /dev/null +++ b/advisories/RUSTSEC-2023-0041.html @@ -0,0 +1,183 @@ + + + + + + + +RUSTSEC-2023-0041: trust-dns-server: Remote Attackers can cause Denial-of-Service (packet loops) with crafted DNS packets › RustSec Advisory Database + + + + + + + + + +
+
+

+ + + +
+ +
+ +
+
+ + + History ⋅ + Edit + + + +
+

+ + RUSTSEC-2023-0041 + +

+

Remote Attackers can cause Denial-of-Service (packet loops) with crafted DNS packets

+
+
+ + + +
+
Reported
+
+ +
+ +
Issued
+
+ + +
+ +
Package
+
+ + + trust-dns-server + (crates.io) + + +
+ +
Type
+
+ + Vulnerability + +
+ + +
Categories
+
+ +
+ + + +
Keywords
+
+ + #packet-loop + +
+ + + + + +
Details
+
+ + https://github.com/bluejekyll/trust-dns/pull/1952 + +
+ + + + + + + +
Patched
+
+ +
    + +
  • ^0.22.1
  • + +
  • >=0.23.0-alpha.3
  • + +
+ +
+ + + + + +
+ + + + +

Description

+

trust-dns and trust-dns-server are vulnerable to remotely triggered denial-of-service attacks, consuming both network and CPU resources. +DNS messages with the QR=1 bit set are responded to with a FormErr response. +This allows creating a traffic loop, in which these FormErr responses are sent nonstop between vulnerable servers.

+

There are two scenarios how this can be exploited: 1) Create a loop between two instances of trust-dns, consuming network resources, or 2) consuming the CPU of a single instance.

+

With two instances A and B an attacker sends a DNS query with a spoofed source IP address to A. +A replies with a FormErr to B. +Now both servers with ping-pong the message back and forth until by chance the packet is dropped in the network. +Multiple spoofed packets can be sent by the attacker, increasing resource consumption.

+

A single server can get locked up replying to itself. +Same setup as above, but now A sends the reply to itself. +The packet is sent out as fast as the CPU and network stack manage. +This locks up a CPU core. +Multiple packets from the attacker consume multiple CPU cores.

+ +
+
diff --git a/advisories/index.html b/advisories/index.html index 8d268de71..682e77af3 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -64,6 +64,25 @@