René's URL Explorer Experiment


Title: lab-ops-hub crawl validators disagree on IPv4 ranges — Python allows multicast, TS over-blocks public /24 neighbours as /16s · Issue #476 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub crawl validators disagree on IPv4 ranges — Python allows multicast, TS over-blocks public /24 neighbours as /16s · Issue #476 · developing-today/code

X Title: lab-ops-hub crawl validators disagree on IPv4 ranges — Python allows multicast, TS over-blocks public /24 neighbours as /16s · Issue #476 · developing-today/code

Description: Contribute to developing-today/code development by creating an account on GitHub.

Open Graph Description: Contribute to developing-today/code development by creating an account on GitHub.

X Description: Contribute to developing-today/code development by creating an account on GitHub.

Opengraph URL: https://github.com/developing-today/code

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub crawl validators disagree on IPv4 ranges — Python allows multicast, TS over-blocks public /24 neighbours as /16s","articleBody":"## Problem\n\nThe two lab-ops-hub crawl validators claim the same policy (`pkgs/lab-ops-hub/src/lib.ts`: \"The Python container crawler applies the same policy independently\"; `pkgs/lab-ops-hub/container/app.py`: \"Only public http(s) targets\"), but they disagree on IPv4 literals. Verified this run on main `668dd32f` by calling both validators on the same 2,542 candidate URLs (special-range + boundary samples): **169 divergent verdicts, all `TS blocks / Python allows`**.\n\n### 1. Python container validator ALLOWS IPv4 multicast — TS blocks it\n\nPython's plain-IPv4 path is just `elif not ip.is_global: raise`, and `ipaddress` reports `is_global == True` for multicast (verified: `224.0.0.1` → `is_global True, is_multicast True`):\n\n| URL | Python (`container/app.py` `validate_crawl_url`) | TS (`src/lib.ts` `validateCrawlUrl`) |\n|---|---|---|\n| `http://224.0.0.1/` … `http://239.255.0.1/` (224.0.0.0/4) | ALLOW | BLOCK (`a >= 224` in `ipv4IsGlobal`) |\n\nThe container is the component that actually fetches. The same flaw reaches the embedded-IPv4 path: `_embedded_ipv4` verdicts are judged with `embedded.is_global`, so e.g. an IPv4-mapped/NAT64 literal embedding a multicast address is also allowed. This is the IPv4 analogue of #474 (which fixed the IPv6 case by requiring global unicast 2000::/3 on the Python side — no equivalent guard exists for IPv4).\n\n### 2. TS Worker validator over-blocks four public ranges as /16s instead of /24s\n\n`ipv4IsGlobal` in `src/lib.ts:26-41` keys the narrow special ranges on the **second** octet (`b`), so a /24 whose distinguishing octet is the third is widened to a /16 — contradicting its own comments:\n\n| Code | Comment says | Actually blocks | Public addresses wrongly refused (Python: ALLOW) |\n|---|---|---|---|\n| `a===192 && b===0` | 192.0.0.0/24 + TEST-NET-1 192.0.2.0/24 | 192.0.0.0/16 | `192.0.1.1`; also the global 192.0.0.9/192.0.0.10 exceptions inside the /24 |\n| `a===192 && b===88` | 6to4 relay anycast (192.88.99.0/24) | 192.88.0.0/16 | `192.88.0.1`, `192.88.1.1` |\n| `a===198 && b===51` | TEST-NET-2 (198.51.100.0/24) | 198.51.0.0/16 | `198.51.0.1`, `198.51.1.1` |\n| `a===203 && b===0` | TEST-NET-3 (203.0.113.0/24) | 203.0.0.0/16 | `203.0.0.1`, `203.0.1.1` |\n\nNote the reverse gap inside the 6to4 row: Python **allows** `192.88.99.1` (`is_global True`), so the deprecated relay-anycast /24 the TS comment intends to refuse is only refused on the Worker path.\n\nBecause TS `ipv4IsGlobal` is reused for embedded IPv4 (IPv4-mapped, NAT64, 6to4 in `ipv6IsGlobal`), the over-blocks propagate to those IPv6 spellings too.\n\n## Why it matters\n\nThe validators are defence-in-depth for one SSRF policy (#441, #460–#474). The fetching component accepting the whole multicast range defeats the policy; the Worker refusing ordinary public addresses in four /16s is a correctness bug that also makes the two implementations impossible to keep in sync with shared test vectors.\n\n## Acceptance criteria\n\n- Both validators refuse the multicast range, e.g. `224.0.0.1`, `230.1.2.3`, `239.255.255.255`, including embedded spellings judged by a multicast IPv4 (e.g. `[::ffff:224.0.0.1]`).\n- Both validators refuse the narrow non-global /24s: `192.0.0.1` (except the global `192.0.0.9`/`192.0.0.10`, which both accept), `192.0.2.1`, `192.88.99.1`, `198.51.100.1`, `203.0.113.1`.\n- Both validators accept the public neighbours the TS side currently over-blocks: `192.0.1.1`, `192.88.0.1`, `198.51.0.1`, `203.0.0.1`, plus ordinary public targets (`8.8.8.8`).\n- The same test vectors appear in both suites (`test/lib.test.ts` and `test/test_container_validate.py`) with identical verdicts, in the style of the #472/#474 shared-vectors tests.\n- Suggested fix: in Python, do not trust `is_global` alone for IPv4 — also refuse `is_multicast` and `192.88.99.0/24` (plain and embedded paths). In TS, add the third octet `c` to `ipv4IsGlobal` and narrow the four checks above to their commented /24s (with the 192.0.0.9/.10 exceptions).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T12:13:02Z","url":"https://github.com/developing-today/code/issues/476"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:489f1967-9de2-da46-a77b-1e8060512a63
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE55A:5CA6C:A6EC30:DFE339:6B0641B0
html-safe-noncef3ab97d238d3d125bb8ad9573b3700287524f2f3975f96bc50c88750f9ddc372
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTVBOjVDQTZDOkE2RUMzMDpERkUzMzk6NkIwNjQxQjAiLCJ2aXNpdG9yX2lkIjoiODIyNDgyODc2MDIwMTc5Mzc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccc6c60fd8b8865eaf9bf4cf0f0c31ecaa856f9ab2b693caacbf11ace3dc07860
hovercard-subject-tagrepository:627308783
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/developing-today/code/issues/476
twitter:imagehttps://opengraph.githubassets.com/c1a2d415bd2c796fea2e23b2fed64a1efc7802730482e5b3777242c3e81bd5e2/developing-today/code
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c1a2d415bd2c796fea2e23b2fed64a1efc7802730482e5b3777242c3e81bd5e2/developing-today/code
og:image:altContribute to developing-today/code development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
turbo-cache-controlno-cache
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/476#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F476
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F476
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/476
Reloadhttps://github.com/developing-today/code/issues/476
Reloadhttps://github.com/developing-today/code/issues/476
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/476
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/476
#477https://github.com/developing-today/code/pull/477
lab-ops-hub crawl validators disagree on IPv4 ranges — Python allows multicast, TS over-blocks public /24 neighbours as /16shttps://github.com/developing-today/code/issues/476#top
#477https://github.com/developing-today/code/pull/477
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/476#issue-5960245018
#474https://github.com/developing-today/code/issues/474
#441https://github.com/developing-today/code/issues/441
#460https://github.com/developing-today/code/issues/460
#474https://github.com/developing-today/code/issues/474
lab-ops-hub crawl validators don't judge NAT64/6to4 literals by their embedded IPv4 — Python allows embedded loopback/metadata, TS and Python disagree #472https://github.com/developing-today/code/issues/472
lab-ops-hub crawl validators disagree on special IPv6 ranges — Python allows multicast/reserved, TS allows 2001::/23 specials #474https://github.com/developing-today/code/issues/474
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/476#event-33843238742
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/476#event-33844076136
Merge pull request #477 from developing-today/creator/476-ipv4-rangeshttps://github.com/developing-today/code/commit/9218147e8c373722acd75c56d69b5f2340e7cafd
#477https://github.com/developing-today/code/pull/477
9218147https://github.com/developing-today/code/commit/9218147e8c373722acd75c56d69b5f2340e7cafd
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#477https://github.com/developing-today/code/pull/477
on Oct 21, 2026https://github.com/developing-today/code/issues/476#event-33844076521
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/476
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/476
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.