IP-in-IP protocol routes arbitrary traffic by default - CVE-2020-10136
Many internet-connected devices accept and forward IP-in-IP encapsulated packets by default without explicit configuration. An attacker could abuse this to route traffic through the device, potentially causing reflective DDoS, information leaks, or bypassing network access controls.
b0d64187f5efdafc3907928 Follow
Originally disclosed on HackerOne
- Triaged in 17 hours
- Fixed in 13 months
- Paid in 13 months
- Disclosed after 14 months
Many machines (150K-180K) on the internet accept and route IP over IP by default.
IP-in-IP encapsulation is a tunneling protocol specified in RFC 2003 that allows for IP packets to be encapsulated inside another IP packets. This is very similar to IPSEC VPNs in tunnel mode, except in the case of IP-in-IP, the traffic is unencrypted. As specified, the protocol unwraps the inner IP packet and forwards this packet through IP routing tables, potentially providing unexpected access to network paths available to the vulnerable device. An IP-in-IP device is considered to be vulnerable if it accepts IP-in-IP packets from any source to any destination without explicit configuration between the specified source and destination IP addresses. This unexpected Data Processing Error (CWE-19) by a vulnerable device can be abused to perform reflective DDoS and in certain scenarios used to bypass network access control lists. Because the forwarded network packet may not be inspected or verified by vulnerable devices, there are possibly other unexpected behaviors that can be abused by an attacker on the target device or the target device's network environment.
See full details here ("Description" copied here): https://kb.cert.org/vuls/id/636397
Impact
An unauthenticated attacker can route network traffic through a vulnerable device, which may lead to reflective DDoS, information leak and bypass of network access controls.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the device enables IP-in-IP decapsulation and forwarding by default without restricting which source and destination addresses are allowed.
Impact
An unauthenticated attacker could route traffic through a vulnerable device, potentially leading to reflective DDoS, information leak, and bypass of network access controls.
What the attacker needed
Device accepts IP-in-IP from any source; no explicit configuration required
The fix
Restrict IP-in-IP acceptance to explicitly configured source and destination addresses, or disable it.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
IP-in-IP is a way of wrapping one network packet inside another so it can be tunnelled across the internet. Some devices unwrap these packets and forward the inner packet automatically, even when they were never set up to do so. This means an attacker can use such a device as a relay to send traffic to places they might not normally reach, or to amplify a denial-of-service attack.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.