Description
The product assigns the address 0.0.0.0 for a database server, a cloud service/instance, or any computing resource that communicates remotely.
When a server binds to the address 0.0.0.0, it allows connections from every IP address on the local machine, effectively exposing the server to every possible network. This might be much broader access than intended by the developer or administrator, who might only be expecting the server to be reachable from a single interface/network.
Potential Impact
Availability
DoS: Amplification
Demonstrative Examples
signingserver::instance {
"nightly-key-signing-server":
listenaddr => "0.0.0.0",
port => "9100",
code_tag => "SIGNING_SERVER",
}signingserver::instance {
"nightly-key-signing-server":
listenaddr => "127.0.0.1",
port => "9100",
code_tag => "SIGNING_SERVER",
}Mitigations & Prevention
Assign IP addresses that are not 0.0.0.0.
Unwanted connections to the configured server may be denied through a firewall or other packet filtering measures.
Real-World CVE Examples
| CVE ID | Description |
|---|---|
| CVE-2023-41742 | cybersecurity product binds to an unrestricted IP address |
| CVE-2022-21947 | Desktop manager for Kubernetes and container management binds a service to 0.0.0.0, allowing users on the network to make requests to a dashboard API. |
Related Weaknesses
Frequently Asked Questions
What is CWE-1327?
CWE-1327 (Binding to an Unrestricted IP Address) is a software weakness identified by MITRE's Common Weakness Enumeration. It is classified as a Base-level weakness. The product assigns the address 0.0.0.0 for a database server, a cloud service/instance, or any computing resource that communicates remotely.
How can CWE-1327 be exploited?
Attackers can exploit CWE-1327 (Binding to an Unrestricted IP Address) to dos: amplification. This weakness is typically introduced during the System Configuration phase of software development.
How do I prevent CWE-1327?
Key mitigations include: Assign IP addresses that are not 0.0.0.0.
What is the severity of CWE-1327?
CWE-1327 is classified as a Base-level weakness (Medium abstraction). It has been observed in 2 real-world CVEs.