René's URL Explorer Experiment


Title: lab-ops-hub: container validator returns C0 controls, space and DEL verbatim outside the host — fetcher raises InvalidURL on URLs both validators accept (PR #612 residual) · Issue #614 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: container validator returns C0 controls, space and DEL verbatim outside the host — fetcher raises InvalidURL on URLs both validators accept (PR #612 residual) · Issue #614 · developing-today/code

X Title: lab-ops-hub: container validator returns C0 controls, space and DEL verbatim outside the host — fetcher raises InvalidURL on URLs both validators accept (PR #612 residual) · Issue #614 · developing-today/code

Description: Problem PR #612 (fixing #611) made the container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) strip ASCII tab/LF/CR before judging, so the returned URL no longer carries those three controls. The rest of the C0 range...

Open Graph Description: Problem PR #612 (fixing #611) made the container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) strip ASCII tab/LF/CR before judging, so the returned URL no longer carries those ...

X Description: Problem PR #612 (fixing #611) made the container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) strip ASCII tab/LF/CR before judging, so the returned URL no longer carries those ...

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

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: container validator returns C0 controls, space and DEL verbatim outside the host — fetcher raises InvalidURL on URLs both validators accept (PR #612 residual)","articleBody":"## Problem\n\nPR #612 (fixing #611) made the container validator (`pkgs/lab-ops-hub/container/app.py`, `validate_crawl_url`) strip ASCII tab/LF/CR before judging, so the returned URL no longer carries those three controls. The rest of the C0 range (U+0000–U+0008, U+000B, U+000C, U+000E–U+001F), plus space and DEL, are still returned **verbatim** everywhere outside the host, and the container fetcher then chokes on them:\n\n- WHATWG URL parsing (the Worker's `validateCrawlUrl` in `src/lib.ts`, via `new URL`) **trims** leading/trailing C0-control-or-space from the input and **percent-encodes** C0 controls, space and DEL inside the path/query/fragment. It returns a clean serialized URL.\n- The container validator accepts the same spellings (its host checks never see path/query characters, and `urlparse` tolerates the leading forms for judging) but returns the raw string. `_fetch_crawl` hands it to urllib/`http.client`, which raises `InvalidURL` (\"URL can't contain control characters\") for controls/space/DEL in the request target, or `URLError` (\"unknown url type\") for a leading C0 the parser doesn't strip — so `do_POST` surfaces a 502 for a URL both validators accepted, instead of the crawl result the Worker path produces.\n\nThis is the same judge-vs-fetch family as #611/#577: the validator certifies one string and the fetcher is handed another, unusable one. It is acceptance-side only — no verdict divergence and no SSRF direction: blocked hosts wrapped in these controls are still refused by both validators (verified in the battery below).\n\n## Evidence (reproduced on current main d93f430b, merge of PR #612, 2026-10-22)\n\nDifferential battery through both real validators (container `validate_crawl_url` vs Worker `validateCrawlUrl` under Bun): every C0 control U+0000–U+0020 plus U+007F in 9 positions (path mid/end, query mid/end, fragment, leading, trailing, leading-on-private, host-end) = 306 cases, plus tab/CR/LF inserted at every position of 20 base URLs = 2,323 cases. **Verdicts agree on all 2,629 cases** (tab/CR/LF parity from #612 confirmed, including slash-run and split-private forms). The **returned URL** diverges in 216 of the 306 C0 cases, e.g.:\n\n```\n'http://example.com/pa\\x00th'   container returns 'http://example.com/pa\\x00th'   Worker returns 'http://example.com/pa%00th'\n'http://example.com/pa th'      container returns 'http://example.com/pa th'      Worker returns 'http://example.com/pa%20th'\n'http://example.com/?q=a\\x7fb'  container returns 'http://example.com/?q=a\\x7fb'  Worker returns 'http://example.com/?q=a%7Fb'\n'\\x00http://example.com/'       container returns '\\x00http://example.com/'       Worker returns 'http://example.com/'\n'http://example.com/\\x00'       container returns 'http://example.com/\\x00'       Worker returns 'http://example.com/'\n```\n\nFetcher consequence, verified with the container's own `_fetch_crawl` against a local HTTP server (host swapped to the test server, control positions preserved):\n\n```\n'http://\u003csrv>/pa\\x00th'   -> InvalidURL: URL can't contain control characters. '/pa\\x00th'\n'http://\u003csrv>/pa\\x01th'   -> InvalidURL (same)\n'http://\u003csrv>/pa th'      -> InvalidURL (same, found ' ')\n'http://\u003csrv>/pa\\x7fth'   -> InvalidURL (same)\n'http://\u003csrv>/?q=a\\x00b'  -> InvalidURL (same)\n'\\x00http://\u003csrv>/'       -> URLError: unknown url type\n'\\x01http://\u003csrv>/'       -> URLError: unknown url type\n'http://\u003csrv>/\\x00'       -> InvalidURL (same)\n```\n\n(In `do_POST` these exceptions land in the outer handler and become a 502, per #572's plumbing — a crawl failure, not a result.)\n\nPre-existing returned-URL differences that are **not** part of this finding (both fetch fine): the container returns the original IDN spelling (`http://münchen.de/` vs the Worker's punycode form) and keeps an explicit default port (`:80`), by design in the existing code comments.\n\n## Why it matters\n\n`validate_crawl_url`'s contract is judge-what-you-fetch, and #612 just extended that contract to the full URL string for tab/CR/LF. Any crawl target whose path or query carries a raw control, space or DEL — pasted URLs, redirect `Location`s built from user data (the redirect handler validates through the same function), generated links — is accepted by the container validator and then fails the fetch with a 502, while the Worker fallback fetches the WHATWG-normalized form successfully. The two crawlers disagree on the outcome for a class of otherwise-legitimate public URLs.\n\n## Acceptance criteria\n\n- [ ] For every input both validators accept, the URL `validate_crawl_url` returns contains no raw C0 control (U+0000–U+001F), space, or DEL outside the host — it is either normalized the way WHATWG serializes it (leading/trailing C0/space trimmed; path/query/fragment controls, space and DEL percent-encoded) or the spelling is refused up front with a clear error. Either resolution is acceptable; silently returning a fetcher-breaking string is not.\n- [ ] Verdict parity is preserved: spellings refused today (blocked hosts wrapped in these characters, controls inside the host) stay refused, and no currently-accepted public target changes verdict except as needed for the bullet above.\n- [ ] Python tests pin the headline cases (path-mid NUL/space/DEL, query-mid NUL, leading NUL, trailing NUL) against the chosen behavior, and the TS suite pins the Worker's returned form for the same inputs.\n- [ ] A differential run over the C0 battery (U+0000–U+0020 + U+007F × path/query/fragment/leading/trailing positions) shows verdict parity and no raw-control returned URLs from the container validator.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T22:05:23Z","url":"https://github.com/developing-today/code/issues/614"}

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:47bb71db-f086-5ef1-7745-7355069715d8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9402:2A9AB5:AAF177:DC8E2A:6B063657
html-safe-noncef8e99615f1008a128c38c6edcf0c36219bb08e8b120e6eb8af91030f32a88de4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDAyOjJBOUFCNTpBQUYxNzc6REM4RTJBOjZCMDYzNjU3IiwidmlzaXRvcl9pZCI6IjY0MTYxNjgyOTI4NTk2NTU3NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1777b4630a4b87d09d04cb600791248922db9620468b9d12a294a1d647f2b968
hovercard-subject-tagissue:5988190401
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/614/issue_layout
twitter:imagehttps://opengraph.githubassets.com/336ac25d04a7c5c5670176793e5fe267ec7513631c0b6e4dbd3d806bba3d94b0/developing-today/code/issues/614
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/336ac25d04a7c5c5670176793e5fe267ec7513631c0b6e4dbd3d806bba3d94b0/developing-today/code/issues/614
og:image:altProblem PR #612 (fixing #611) made the container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) strip ASCII tab/LF/CR before judging, so the returned URL no longer carries those ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
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
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/614#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F614
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%2F614
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/614
Reloadhttps://github.com/developing-today/code/issues/614
Reloadhttps://github.com/developing-today/code/issues/614
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 requests155 (155)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/614
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/614
#617https://github.com/developing-today/code/pull/617
lab-ops-hub: container validator returns C0 controls, space and DEL verbatim outside the host — fetcher raises InvalidURL on URLs both validators accept (PR #612 residual)https://github.com/developing-today/code/issues/614#top
#617https://github.com/developing-today/code/pull/617
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/614#issue-5988190401
#612https://github.com/developing-today/code/pull/612
#611https://github.com/developing-today/code/issues/611
#611https://github.com/developing-today/code/issues/611
#577https://github.com/developing-today/code/issues/577
d93f430https://github.com/developing-today/code/commit/d93f430bd8538105a05cd00f1c00b79847865ef7
#612https://github.com/developing-today/code/pull/612
#612https://github.com/developing-today/code/pull/612
#572https://github.com/developing-today/code/issues/572
#612https://github.com/developing-today/code/pull/612
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/614#event-33997997247
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/614#event-34005372081
Merge pull request #617 from developing-today/sweep/614-c0-space-del-…https://github.com/developing-today/code/commit/23eefe174780e5f85fffd9bdfc4042ca4d840445
#617https://github.com/developing-today/code/pull/617
23eefe1https://github.com/developing-today/code/commit/23eefe174780e5f85fffd9bdfc4042ca4d840445
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#617https://github.com/developing-today/code/pull/617
on Oct 23, 2026https://github.com/developing-today/code/issues/614#event-34005372130
https://github.com/apps/developing-today-fleet
developing-today-fleethttps://github.com/apps/developing-today-fleet
on Nov 24, 2026https://github.com/developing-today/code/issues/614#issuecomment-7124554067
developing.today fleethttps://kaneo.security.cab
PR #617 — lab-ops-hub: percent-encode C0 controls, space and DEL outside the host in the container validator (#614)https://github.com/developing-today/code/pull/617
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/614
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/614
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.