xielevi
2163a426c8
fix(url_safety): classify the IPv4-translated wrapper by its embedded IPv4
...
On the reporting macOS host with fake-IP TUN DNS, the resolver answers an IPv4
name with the plain address and its IPv4-translated form ::ffff:0:a.b.c.d
(RFC 2765). ipaddress reads it as unrelated IPv6 space (ipv4_mapped is None),
so a declared security.fake_ip_ranges block could not excuse it — every fetch
on such a host stayed blocked (pre-flight and connect-time) — and the
cloud-metadata floor missed its translated form, leaving it dialable when
allow_private_urls is on.
_embedded_ipv4() extracts the wrapped IPv4 for both wrapper forms; the three
classification sites classify by it.
Fixes #117100 .
2026-09-20 15:28:59 -07:00
..
2026-09-20 15:19:55 -07:00
2026-09-18 09:24:54 -07:00
2026-09-20 12:53:47 -07:00
2026-09-18 20:34:42 -07:00
2026-09-15 04:12:13 -07:00
2026-09-20 12:49:02 -07:00
2026-09-11 19:39:12 -07:00
2026-09-17 09:04:38 -07:00
2026-09-15 21:46:37 -07:00
2026-09-19 23:41:45 -07:00
2026-09-20 09:52:22 -07:00
2026-09-17 21:17:26 +05:30
2026-09-20 10:16:51 -07:00
2026-09-20 13:54:22 -07:00
2026-09-20 13:54:22 -07:00
2026-09-20 10:31:16 -07:00
2026-09-20 11:51:14 -07:00
2026-09-12 01:35:05 -07:00
2026-09-16 16:59:03 -07:00
2026-09-18 09:19:04 -07:00
2026-09-18 10:28:40 -07:00
2026-09-15 06:16:38 -07:00
2026-09-11 19:39:12 -07:00
2026-09-13 12:35:36 -07:00
2026-09-16 16:57:03 -07:00
2026-09-15 06:16:38 -07:00
2026-09-20 12:47:50 -07:00
2026-09-10 10:35:07 -07:00
2026-09-17 09:02:55 -07:00
2026-09-19 10:44:26 -07:00
2026-09-17 09:02:55 -07:00
2026-09-15 04:56:01 -07:00
2026-09-13 05:09:43 -07:00
2026-09-16 14:34:22 -07:00
2026-09-20 12:03:06 -07:00
2026-09-16 17:47:50 -07:00
2026-09-19 10:44:26 -07:00
2026-09-19 10:44:26 -07:00
2026-09-15 03:45:41 -07:00
2026-09-19 10:44:26 -07:00
2026-09-11 19:39:12 -07:00
2026-09-20 09:20:51 -07:00
2026-09-20 09:20:51 -07:00
2026-09-15 18:41:46 -07:00
2026-09-19 09:34:09 -07:00
2026-09-20 14:29:39 -07:00
2026-09-20 09:52:22 -07:00
2026-09-19 23:57:59 -07:00
2026-09-10 10:23:12 -07:00
2026-09-13 21:05:42 -07:00
2026-09-15 18:40:52 -07:00
2026-09-19 09:21:18 -07:00
2026-09-15 03:45:41 -07:00
2026-09-20 12:53:47 -07:00
2026-09-09 11:46:36 -07:00
2026-09-19 03:07:47 -07:00
2026-09-19 01:32:28 -07:00
2026-09-20 10:44:16 -07:00
2026-09-18 09:54:45 -07:00
2026-09-18 10:10:40 -07:00
2026-09-18 10:38:08 -07:00
2026-09-15 03:57:24 -07:00
2026-09-17 21:17:26 +05:30
2026-09-19 03:07:47 -07:00
2026-09-12 21:55:07 -07:00
2026-09-16 16:59:03 -07:00
2026-09-13 21:03:11 -07:00
2026-09-16 16:42:47 -07:00
2026-09-16 16:42:47 -07:00
2026-09-11 19:39:12 -07:00
2026-09-16 17:21:14 -07:00
2026-09-19 10:44:26 -07:00
2026-09-20 10:15:49 -07:00
2026-09-12 12:32:55 -07:00
2026-09-20 12:00:44 -07:00
2026-09-10 02:21:16 +05:30
2026-09-16 14:34:59 -07:00
2026-09-20 12:50:53 -07:00
2026-09-19 23:40:35 -07:00
2026-09-18 12:47:49 -07:00
2026-09-19 23:46:42 -07:00
2026-09-20 12:40:36 -07:00
2026-09-10 02:21:16 +05:30
2026-09-18 09:58:12 -07:00
2026-09-15 19:04:29 -07:00
2026-09-13 05:09:43 -07:00
2026-09-20 12:19:28 -07:00
2026-09-20 10:07:26 -07:00
2026-09-19 23:47:17 -07:00
2026-09-17 19:06:29 -04:00
2026-09-16 21:15:37 +05:30
2026-09-12 01:35:05 -07:00
2026-09-13 15:41:01 -07:00
2026-09-19 10:16:59 -07:00
2026-09-11 15:27:23 -07:00
2026-09-20 10:07:26 -07:00
2026-09-20 10:07:26 -07:00
2026-09-19 22:34:38 -07:00
2026-09-20 16:13:31 +05:30
2026-09-09 12:19:13 +05:30
2026-09-13 20:46:22 -07:00
2026-09-12 21:13:40 -07:00
2026-09-20 10:57:35 -07:00
2026-09-20 11:49:00 -07:00
2026-09-20 11:49:00 -07:00
2026-09-11 19:58:07 -07:00
2026-09-20 10:23:28 -07:00
2026-09-16 00:32:15 -07:00
2026-09-20 13:55:03 -07:00
2026-09-12 22:09:19 -07:00
2026-09-19 10:44:26 -07:00
2026-09-20 17:30:01 +05:30
2026-09-19 10:16:59 -07:00
2026-09-19 10:44:26 -07:00
2026-09-20 11:20:26 -07:00
2026-09-20 11:12:48 -07:00
2026-09-18 10:30:57 -07:00
2026-09-18 09:35:16 -07:00
2026-09-19 09:20:54 -07:00
2026-09-17 08:47:01 -07:00
2026-09-17 08:47:01 -07:00
2026-09-09 12:19:13 +05:30
2026-09-19 09:20:54 -07:00
2026-09-20 11:30:03 -07:00
2026-09-18 12:51:49 -07:00
2026-09-20 12:58:32 -07:00
2026-09-20 18:16:35 +05:30
2026-09-20 12:03:43 -07:00
2026-09-15 14:15:59 +05:30
2026-09-16 17:43:11 -07:00
2026-09-20 12:58:32 -07:00
2026-09-18 10:22:14 -07:00
2026-09-11 11:54:49 -07:00
2026-09-16 00:32:15 -07:00
2026-09-16 17:23:44 -07:00
2026-09-15 18:33:15 -07:00
2026-09-19 00:33:58 +05:30
2026-09-19 01:29:03 -07:00
2026-09-15 03:46:29 -07:00
2026-09-18 09:54:45 -07:00
2026-09-20 10:23:28 -07:00
2026-09-18 12:49:13 -07:00
2026-09-15 10:48:49 +05:30
2026-09-15 02:22:22 -05:00
2026-09-20 10:23:28 -07:00
2026-09-10 11:48:01 -07:00
2026-09-20 11:30:03 -07:00
2026-09-18 09:59:54 -07:00
2026-09-20 10:17:04 -07:00
2026-09-11 15:44:00 -07:00
2026-09-13 05:09:43 -07:00
2026-09-19 10:44:26 -07:00
2026-09-13 21:04:08 -07:00
2026-09-19 10:03:11 -07:00
2026-09-19 23:51:25 -07:00
2026-09-12 10:00:08 +05:30
2026-09-19 10:12:15 -07:00
2026-09-13 05:09:43 -07:00
2026-09-19 10:12:15 -07:00
2026-09-15 05:36:37 -07:00
2026-09-15 18:25:17 -07:00
2026-09-20 10:50:27 -07:00
2026-09-13 05:32:38 -07:00
2026-09-19 10:10:29 -07:00
2026-09-20 10:50:27 -07:00
2026-09-20 10:25:30 -07:00
2026-09-20 10:57:35 -07:00
2026-09-20 15:28:59 -07:00
2026-09-19 12:22:44 -07:00
2026-09-19 09:52:18 -07:00
2026-09-19 09:56:12 -07:00
2026-09-20 10:16:27 -07:00
2026-09-19 10:54:38 -07:00
2026-09-11 19:14:24 -07:00
2026-09-19 10:44:26 -07:00
2026-09-13 05:07:11 -07:00
2026-09-15 18:42:38 -07:00
2026-09-15 18:43:05 -07:00
2026-09-19 03:07:47 -07:00
2026-09-20 10:14:37 -07:00
2026-09-18 09:19:04 -07:00
2026-09-13 12:35:36 -07:00
2026-09-13 05:07:50 -07:00
2026-09-19 12:22:44 -07:00