René's URL Explorer Experiment


Title: lab-ops-hub: both crawl validators accept double-trailing-dot and empty-label hosts (localhost.., example..com) — the #466 one-dot strip is defeated by a second dot · Issue #511 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: both crawl validators accept double-trailing-dot and empty-label hosts (localhost.., example..com) — the #466 one-dot strip is defeated by a second dot · Issue #511 · developing-today/code

X Title: lab-ops-hub: both crawl validators accept double-trailing-dot and empty-label hosts (localhost.., example..com) — the #466 one-dot strip is defeated by a second dot · Issue #511 · developing-today/code

Description: Summary Both lab-ops-hub crawl validators strip exactly one trailing dot before the blocked-host checks (#466), so a second trailing dot — or any empty label — defeats those checks, and the malformed name falls through and is certified a...

Open Graph Description: Summary Both lab-ops-hub crawl validators strip exactly one trailing dot before the blocked-host checks (#466), so a second trailing dot — or any empty label — defeats those checks, and the malform...

X Description: Summary Both lab-ops-hub crawl validators strip exactly one trailing dot before the blocked-host checks (#466), so a second trailing dot — or any empty label — defeats those checks, and the malform...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: both crawl validators accept double-trailing-dot and empty-label hosts (localhost.., example..com) — the #466 one-dot strip is defeated by a second dot","articleBody":"## Summary\n\nBoth lab-ops-hub crawl validators strip exactly **one** trailing dot before the blocked-host checks (#466), so a second trailing dot — or any empty label — defeats those checks, and the malformed name falls through and is certified as \"a public DNS name\" by both sides:\n\n| Host form | TS Worker `validateCrawlUrl` | Python container `validate_crawl_url` |\n| --- | --- | --- |\n| `http://localhost../` | **ALLOW** | **ALLOW** |\n| `http://127.0.0.1../` | **ALLOW** | **ALLOW** |\n| `http://foo.localhost../` | **ALLOW** | **ALLOW** |\n| `http://example..com/` (empty interior label) | **ALLOW** | **ALLOW** |\n| `http://.example.com/` (empty first label) | **ALLOW** | **ALLOW** |\n\nControls, identical on both sides (must not change): `http://localhost./` BLOCK, `http://foo.localhost./` BLOCK, `http://example.com./` ALLOW, ordinary public names ALLOW.\n\n## Evidence\n\n- Verified on main `42bc02d9` by driving both real validators over the same battery (TS via bun importing `pkgs/lab-ops-hub/src/lib.ts`, Python by importing `pkgs/lab-ops-hub/container/app.py`): every form in the table above is ALLOW on both sides.\n- TS: `pkgs/lab-ops-hub/src/lib.ts` — `const host = rawHost.endsWith(\".\") ? rawHost.slice(0, -1) : rawHost;` strips one dot; `\"localhost..\"` becomes `\"localhost.\"`, which is neither `localhost` nor ends with a blocked suffix, and `\"127.0.0.1.\"` is not recognised as an IPv4 literal, so both pass. WHATWG keeps the hostname verbatim: `new URL(\"http://localhost../\").hostname === \"localhost..\"`.\n- Python: `pkgs/lab-ops-hub/container/app.py` `validate_crawl_url` — `if host.endswith(\".\"): host = host[:-1]` is the same one-dot strip; the stripped `\"localhost.\"` / `\"127.0.0.1.\"` then misses the localhost check, `ipaddress` rejects the dotted string, `_inet_aton_ipv4` returns None, the final label (`\"\"` after the second dot / `\"1.\"` forms) is not numeric, and the function returns the URL as \"a public DNS name\".\n- An empty label (`..` anywhere, or a leading `.`) is not a valid DNS name at all: glibc's resolver rejects these spellings outright (`getaddrinfo(\"localhost..\")` → \"label empty or too long\", verified locally for `localhost..`, `127.0.0.1..`, `example.com..`). Resolver leniency for trailing dots varies by platform (the container fetcher, the Worker's fetch resolver, and user-agent resolvers do not all share glibc's behaviour), so the guard's verdict should not depend on it.\n\n## Why it matters\n\nThe validators are the SSRF guard for the crawler (#441), and their stated rule is that only well-formed public targets pass. #466 closed the single-trailing-dot evasion (`localhost.` is `localhost`), but the same evasion with a second dot re-opens the spelling class the fix was meant to close, and the empty-label forms show the underlying gap: neither validator ever checks that the host is a structurally valid DNS name before certifying it as a public one. Where a resolver is lenient about trailing dots, `localhost..` / `foo.localhost..` reach the local target the guard exists to refuse; where it is strict, the crawl dies in the resolver with a low-level error instead of a clear guard verdict — the same \"verdict meaningless\" failure #507/#510 record for other host forms.\n\nCross-repo note: this validator pair lives only in developing-today/code (`validateCrawlUrl`/`validate_crawl_url` have no twin in the opencode, openchamber or dezren39/nix clones), so this is a single-repo issue. Distinct from open #510, which covers forbidden *characters* (DEL/C1/NBSP/`\u003c>^|`) in the container validator only; this issue is about label *structure* and affects both validators identically.\n\n## Acceptance criteria\n\n- Both validators refuse a host with an empty label — a second trailing dot (`localhost..`, `127.0.0.1..`, `foo.localhost..`, `example.com..`), an interior empty label (`example..com`), or a leading dot (`.example.com`) — up front with a clear validator error.\n- Controls unchanged: `localhost.` / `foo.localhost.` still BLOCK, `example.com.` (single root dot on a public name) and ordinary public names / valid IP literals still ALLOW on both sides.\n- Regression tests in both suites (`pkgs/lab-ops-hub/test/` TS tests and `test_container_validate.py`) cover each refused class, and fail with only the validator change reverted (ablation).\n- The Python and TS validators agree on the full battery above.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T22:43:48Z","url":"https://github.com/developing-today/code/issues/511"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:19352edc-edcb-fc25-cc54-d503960ce451
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC676:20AEB3:6E8D5D:942945:6B062DC4
html-safe-nonce83e324c4f3c86e4cc30e8690f247f35a3048b2253201e35a35c32683f0d3f698
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjc2OjIwQUVCMzo2RThENUQ6OTQyOTQ1OjZCMDYyREM0IiwidmlzaXRvcl9pZCI6IjQ0MDcxNzUyMTQxNTE2MjI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac82a7612cb4653d0187b4acbd7ebd28bd1b09ffb00ff1e2453f3f43826ea7c0b6
hovercard-subject-tagissue:5969723816
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/511/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d48f67160694cf6d49343e4c071151e6b48c45ce6ca140f9e859321d0f419d09/developing-today/code/issues/511
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d48f67160694cf6d49343e4c071151e6b48c45ce6ca140f9e859321d0f419d09/developing-today/code/issues/511
og:image:altSummary Both lab-ops-hub crawl validators strip exactly one trailing dot before the blocked-host checks (#466), so a second trailing dot — or any empty label — defeats those checks, and the malform...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3
turbo-cache-controlno-preview
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
release494ea0bb1e0feef734a83e2628697647755e8864
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/511#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F511
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%2F511
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/511
Reloadhttps://github.com/developing-today/code/issues/511
Reloadhttps://github.com/developing-today/code/issues/511
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests152 (152)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/511
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/511
#512https://github.com/developing-today/code/pull/512
lab-ops-hub: both crawl validators accept double-trailing-dot and empty-label hosts (localhost.., example..com) — the #466 one-dot strip is defeated by a second dothttps://github.com/developing-today/code/issues/511#top
#512https://github.com/developing-today/code/pull/512
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/511#issue-5969723816
#466https://github.com/developing-today/code/issues/466
#441https://github.com/developing-today/code/issues/441
#466https://github.com/developing-today/code/issues/466
#507https://github.com/developing-today/code/issues/507
#510https://github.com/developing-today/code/issues/510
#510https://github.com/developing-today/code/issues/510
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/511#event-33895798626
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/511#event-33896096851
Merge pull request #512 from developing-today/creator/511-empty-label…https://github.com/developing-today/code/commit/025794c8c350132a9a2603d1fe8945c95816938a
#512https://github.com/developing-today/code/pull/512
025794chttps://github.com/developing-today/code/commit/025794c8c350132a9a2603d1fe8945c95816938a
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#512https://github.com/developing-today/code/pull/512
on Oct 21, 2026https://github.com/developing-today/code/issues/511#event-33896096870
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/511
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/511
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.