Cross Layer Attacks and How to Use Them (for DNS Cache Poisoning, Device Tracking and More)
摘要
We analyze the prandom pseudo random number generator (PRNG) in use in the Linux kernel (which is the kernel of the Linux operating system, as well as of Android) and demonstrate that this PRNG is weak. The prandom PRNG is in use by many "consumers" in the Linux kernel. We focused on three consumers at the network level – the UDP source port generation algorithm, the IPv6 flow label generation algorithm and the IPv4 ID generation algorithm. The flawed prandom PRNG is shared by all these consumers, which enables us to mount "cross layer attacks" against the Linux kernel. In these attacks, we infer the internal state of the prandom PRNG from one OSI layer, and use it to either predict the values of the PRNG employed by the other OSI layer, or to correlate it to an internal state of the PRNG inferred from the other protocol.Using this approach we can mount a very efficient DNS cache poisoning attack against Linux. We collect TCP/IPv6 flow label values, or UDP source ports, or TCP/IPv4 IP ID values, reconstruct the internal PRNG state, then predict an outbound DNS query UDP source port, which speeds up the attack by a factor of x3000 to x6000. This attack works remotely, but can also be mounted locally, across Linux users and across containers, and (depending on the stub resolver) can poison the cache with an arbitrary DNS record. Additionally, we can identify and track Linux and Android devices – we collect TCP/IPv6 flow label values and/or UDP source port values and/or TCP/IPv4 ID fields, reconstruct the PRNG internal state and correlate this new state to previously extracted PRNG states to identify the same device.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 16 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Poison Over Troubled Forwarders: A Cache Poisoning Attack Targeting DNS Forwarding Devices 引用了 Domain Validation++ For MitM-Resilient PKI
- From IP to transport and beyond: cross-layer attacks against applications 引用了 Poison Over Troubled Forwarders: A Cache Poisoning Attack Targeting DNS Forwarding Devices
- From IP to transport and beyond: cross-layer attacks against applications 引用了 Domain Validation++ For MitM-Resilient PKI
- From IP to transport and beyond: cross-layer attacks against applications 引用了 The Hijackers Guide To The Galaxy: Off-Path Taking Over Internet Resources
- The Hijackers Guide To The Galaxy: Off-Path Taking Over Internet Resources 引用了 From IP to transport and beyond: cross-layer attacks against applications
- From IP to transport and beyond: cross-layer attacks against applications 引用了 Network Hygiene, Incentives, and Regulation: Deployment of Source Address Validation in the Internet
- ResolverFuzz: Automated Discovery of DNS Resolver Vulnerabilities with Query-Response Fuzzing 引用了 Poison Over Troubled Forwarders: A Cache Poisoning Attack Targeting DNS Forwarding Devices
- ResolverFuzz: Automated Discovery of DNS Resolver Vulnerabilities with Query-Response Fuzzing 引用了 Domain Validation++ For MitM-Resilient PKI
- ResolverFuzz: Automated Discovery of DNS Resolver Vulnerabilities with Query-Response Fuzzing 引用了 The Hijackers Guide To The Galaxy: Off-Path Taking Over Internet Resources
- ResolverFuzz: Automated Discovery of DNS Resolver Vulnerabilities with Query-Response Fuzzing 引用了 TuDoor Attack: Systematically Exploring and Exploiting Logic Vulnerabilities in DNS Response Pre-processing with Malformed Packets
- Flaw Label: Exploiting IPv6 Flow Label 引用了 DNS Cache-Based User Tracking
- The Hijackers Guide To The Galaxy: Off-Path Taking Over Internet Resources 引用了 Poison Over Troubled Forwarders: A Cache Poisoning Attack Targeting DNS Forwarding Devices
- The Hijackers Guide To The Galaxy: Off-Path Taking Over Internet Resources 引用了 Domain Validation++ For MitM-Resilient PKI
- TuDoor Attack: Systematically Exploring and Exploiting Logic Vulnerabilities in DNS Response Pre-processing with Malformed Packets 引用了 Poison Over Troubled Forwarders: A Cache Poisoning Attack Targeting DNS Forwarding Devices
- TuDoor Attack: Systematically Exploring and Exploiting Logic Vulnerabilities in DNS Response Pre-processing with Malformed Packets 引用了 From IP to transport and beyond: cross-layer attacks against applications
- Rethinking the Security Threats of Stale DNS Glue Records 引用了 TuDoor Attack: Systematically Exploring and Exploiting Logic Vulnerabilities in DNS Response Pre-processing with Malformed Packets
引用它的顶会 Paper16
- The Hijackers Guide To The Galaxy: Off-Path Taking Over Internet ResourcesTianxiang Dai, Philipp Jeitner, Haya Schulmann, Michael WaidnerUSENIX Security 2021 · 22 次引用
- TuDoor Attack: Systematically Exploring and Exploiting Logic Vulnerabilities in DNS Response Pre-processing with Malformed PacketsXiang Li, Wei Xu, Baojun Liu, Mingming Zhang 等S&P 2024 · 20 次引用
- From IP to transport and beyond: cross-layer attacks against applicationsTianxiang Dai, Philipp Jeitner, Haya Schulmann, Michael WaidnerSIGCOMM 2021 · 14 次引用
- ResolverFuzz: Automated Discovery of DNS Resolver Vulnerabilities with Query-Response FuzzingQifan Zhang, Xuesong Bai, Xiang Li, Haixin Duan 等USENIX Security 2024 · 13 次引用
- Rethinking the Security Threats of Stale DNS Glue RecordsYunyi Zhang, Baojun Liu, Haixin Duan, Min Zhang 等USENIX Security 2024 · 9 次引用
它引用的 Paper5
- Network Hygiene, Incentives, and Regulation: Deployment of Source Address Validation in the InternetMatthew J. Luckie, Robert Beverly, Ryan Koga, Ken Keys 等CCS 2019 · 89 次引用
- Domain Validation++ For MitM-Resilient PKIMarkus Brandt, Tianxiang Dai, Amit Klein, Haya Schulmann 等CCS 2018 · 71 次引用
- DNS Cache-Based User TrackingAmit Klein, Benny PinkasNDSS 2019 · 34 次引用
- Flaw Label: Exploiting IPv6 Flow LabelJonathan Berger, Amit Klein, Benny PinkasS&P 2020 · 11 次引用
- Poison Over Troubled Forwarders: A Cache Poisoning Attack Targeting DNS Forwarding DevicesXiaofeng Zheng, Chaoyi Lu, Jian Peng, Qiushi Yang 等USENIX Security 2020
相关 Paper
- DNS Cache Poisoning Attack: Resurrections with Side ChannelsKeyu Man, Xin'an Zhou, Zhiyun QianCCS 2021 · 33 次引用
- Device Tracking via Linux's New TCP Source Port Selection AlgorithmMoshe Kol, Amit Klein, Yossi GiladUSENIX Security 2023
- DNS Cache Poisoning Attack Reloaded: Revolutions with Side ChannelsKeyu Man, Zhiyun Qian, Zhongjie Wang, Xiaofeng Zheng 等CCS 2020 · 62 次引用
- DNS Cache Poisoning Like it’s 2006Omer Ben-Simhon, Amit KleinUSENIX Security 2026
- From IP ID to Device ID and KASLR BypassAmit Klein, Benny PinkasUSENIX Security 2019 · 25 次引用
