René's URL Explorer Experiment


Title: lab-ops-hub: PR #533 decode-and-judge bypass — percent-encoded fullwidth delimiters NFKC-map into host delimiters after the decode check, so the container fetches unjudged private hosts (localhost / 127.0.0.1 / 192.168.0.1) · Issue #567 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: PR #533 decode-and-judge bypass — percent-encoded fullwidth delimiters NFKC-map into host delimiters after the decode check, so the container fetches unjudged private hosts (localhost / 127.0.0.1 / 192.168.0.1) · Issue #567 · developing-today/code

X Title: lab-ops-hub: PR #533 decode-and-judge bypass — percent-encoded fullwidth delimiters NFKC-map into host delimiters after the decode check, so the container fetches unjudged private hosts (localhost / 127.0.0.1 / 192.168.0.1) · Issue #567 · developing-today/code

Description: Finding PR #533 (merge 06900e7c, commit 00de5b87) replaced the container crawl validator's blanket refusal of % hosts with decode-and-judge — but the delimiter check runs on the percent-decoded form before NFKC mapping, so a percent-enco...

Open Graph Description: Finding PR #533 (merge 06900e7c, commit 00de5b87) replaced the container crawl validator's blanket refusal of % hosts with decode-and-judge — but the delimiter check runs on the percent-decoded for...

X Description: Finding PR #533 (merge 06900e7c, commit 00de5b87) replaced the container crawl validator's blanket refusal of % hosts with decode-and-judge — but the delimiter check runs on the percent-decoded...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: PR #533 decode-and-judge bypass — percent-encoded fullwidth delimiters NFKC-map into host delimiters after the decode check, so the container fetches unjudged private hosts (localhost / 127.0.0.1 / 192.168.0.1)","articleBody":"## Finding\n\nPR #533 (merge `06900e7c`, commit `00de5b87`) replaced the container crawl validator's blanket refusal of `%` hosts with decode-and-judge — but the delimiter check runs on the percent-decoded form **before** NFKC mapping, so a percent-encoded character whose NFKC mapping *is* a host delimiter escapes the check, is spliced into the returned URL, and makes the fetcher connect to a host that was never judged — including `localhost`, `127.0.0.1` and `192.168.0.1`.\n\n## Evidence\n\nIn `pkgs/lab-ops-hub/container/app.py` on current main (`87624089`):\n\n- `_percent_decode_host` (line ~271) refuses a decoded `%` and any decoded character in `#/:?@[\\]`.\n- `validate_crawl_url` then NFKC-normalizes the decoded host (`unicodedata.normalize(\"NFKC\", host).lower()`, line ~118) and runs the remaining checks on the mapped form — but no check after mapping refuses `/ \\ : ? @ # [ ]` or a mapped `%`. The forbidden-character check only covers controls/space, `0x7F–0xA0`, `\u003c>^|` and `_IDNA_DISALLOWED`.\n- Raw fullwidth spellings cannot reach this state: `urlparse` raises `ValueError` (\"netloc … contains invalid characters under NFKC normalization\") — verified this review: raw `http://127.0.0.1/example.com/` is BLOCKED. The percent-encoded spelling (`%ef%bc%8f` = UTF-8 for U+FF0F FULLWIDTH SOLIDUS) is pure ASCII in the raw netloc, so that guard never fires.\n\nVerified by driving both real validators from a `git archive` snapshot of current main:\n\n| URL | Container (Python) | Worker (TS / WHATWG) |\n| --- | --- | --- |\n| `http://localhost%ef%bc%8fexample.com/` | **ALLOW → returns `http://localhost/example.com/` (fetcher host: `localhost`)** | BLOCK \"url is not a valid URL\" |\n| `http://127.0.0.1%ef%bc%8fexample.com/` | **ALLOW → returns `http://127.0.0.1/example.com/`** | BLOCK |\n| `http://192.168.0.1%ef%bc%8fadmin/` | **ALLOW → returns `http://192.168.0.1/admin/`** | BLOCK |\n| `http://exam%ef%bc%8fple.com/` (U+FF0F→`/`) | ALLOW → `http://exam/ple.com/` | BLOCK |\n| `http://exam%ef%bc%9aple.com/` (U+FF1A→`:`) | ALLOW → `http://exam:ple.com/` | BLOCK |\n| `http://exam%ef%bc%a0ple.com/` (U+FF20→`@`) | ALLOW → `http://exam@ple.com/` | BLOCK |\n| `http://exam%ef%bc%83ple.com/` (U+FF03→`#`), `%ef%bc%9f` (`?`), `%ef%bc%bc` (`\\`), `%ef%bc%bb/%bd` (`[`,`]`) | ALLOW, delimiter spliced into returned URL | BLOCK |\n| `http://example%ef%bc%85com/` (U+FF05→`%`) | ALLOW → `http://example%com/` (a `%` the decode step guarantees cannot survive) | BLOCK |\n| `http://%e2%84%80.com/` (U+2100 ℀, NFKC expands to `a/c`) | ALLOW → `http://a/c.com/` | BLOCK |\n\nControls behave as PR #533 intended: `%65xample.com` and `8%2e8%2e8%2e8` ALLOW in both, `%6cocalhost` BLOCK in both, ASCII delimiters (`%2f`, `%5c`, `%3a`) BLOCK in Python at the decode step.\n\nThe exposed path is redirects: `_ValidatingRedirectHandler` validates the raw `Location` with no Worker normalisation in between (PR #533's own framing), and `_url_with_host` returns the mapped host spliced into the URL — so a public page can 302 the container to `http://192.168.0.1%ef%bc%8fadmin/` and the container fetches the private host. This also breaks PR #533's own guarantee that the crawler fetches \"the decoded host that was judged\".\n\nCurrent-main suites pass (TS 25/25, Python 22/22, re-run this review) — the battery pins ASCII decoded delimiters only; no percent-encoded compatibility/fullwidth delimiter case exists in either suite.\n\n## Why it matters\n\nThis is an SSRF-policy bypass in the component that actually fetches, introduced by the merged PR that set out to fix validator parity (#529): the Worker refuses these spellings outright while the container now accepts and fetches an unjudged, possibly private, target — the same failure shape as #468 and the #505 blanket refusal this PR superseded.\n\n## Acceptance criteria\n\n- The container refuses every percent-encoded spelling whose decoded **and NFKC-mapped** form contains a host delimiter (`% # / : ? @ [ \\ ]` and the rest of the WHATWG forbidden-host set) — e.g. by re-checking structural characters on the fully mapped form, or refusing decoded codepoints whose NFKC mapping introduces one.\n- Verdict parity with the Worker on a shared battery including at least: U+FF0F, U+FF1A, U+FF20, U+FF03, U+FF1F, U+FF3C, U+FF05 and U+2100 cases, plus `localhost` / `127.0.0.1` / `192.168.0.1` + `%ef%bc%8f` spellings.\n- For every accepted percent-encoded URL, re-parsing the returned URL yields exactly the host that was judged (asserted in tests).\n- Regression tests in `test_container_validate.py` (including a redirect-handler refusal for a percent-encoded fullwidth-delimiter target) and, where the vector format allows, `lib.test.ts`.\n- Existing suites still pass (TS 25/25, Python 22/22 plus the new tests).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T06:48:50Z","url":"https://github.com/developing-today/code/issues/567"}

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:f4b5c104-588c-4fd4-1e9b-75c516f67e24
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC250:C5B62:AD40DB:E8CB10:6B064239
html-safe-nonce98b68d69bc1c8dea64f5bfee7a60df7a6b21623cf6182c937d1e27afb1f115a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjUwOkM1QjYyOkFENDBEQjpFOENCMTA6NkIwNjQyMzkiLCJ2aXNpdG9yX2lkIjoiNzE5MzM3NjIzMTY3MDMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacec203fda0364a49f0b8b760c83b040cf2c296c1d72ee9da02267c1686738f5f5
hovercard-subject-tagissue:5974513064
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/567/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e82e1fbbc388139be5be80192e77e2aeea5cb10c2a6de881fee03569d7ef245f/developing-today/code/issues/567
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e82e1fbbc388139be5be80192e77e2aeea5cb10c2a6de881fee03569d7ef245f/developing-today/code/issues/567
og:image:altFinding PR #533 (merge 06900e7c, commit 00de5b87) replaced the container crawl validator's blanket refusal of % hosts with decode-and-judge — but the delimiter check runs on the percent-decoded for...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
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
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/567#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F567
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%2F567
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/567
Reloadhttps://github.com/developing-today/code/issues/567
Reloadhttps://github.com/developing-today/code/issues/567
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 requests171 (171)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/567
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/567
#570https://github.com/developing-today/code/pull/570
lab-ops-hub: PR #533 decode-and-judge bypass — percent-encoded fullwidth delimiters NFKC-map into host delimiters after the decode check, so the container fetches unjudged private hosts (localhost / 127.0.0.1 / 192.168.0.1)https://github.com/developing-today/code/issues/567#top
#570https://github.com/developing-today/code/pull/570
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/567#issue-5974513064
#533https://github.com/developing-today/code/pull/533
#533https://github.com/developing-today/code/pull/533
#533https://github.com/developing-today/code/pull/533
#533https://github.com/developing-today/code/pull/533
#529https://github.com/developing-today/code/issues/529
#468https://github.com/developing-today/code/issues/468
#505https://github.com/developing-today/code/issues/505
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/567#event-33922116321
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#570https://github.com/developing-today/code/pull/570
on Oct 22, 2026https://github.com/developing-today/code/issues/567#event-33927779276
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/567#event-33927779656
Merge pull request #570 from developing-today/sweep/567-nfkc-mapped-d…https://github.com/developing-today/code/commit/7a9ac873843504b75a1922e0c1550501a86f3e70
#570https://github.com/developing-today/code/pull/570
7a9ac87https://github.com/developing-today/code/commit/7a9ac873843504b75a1922e0c1550501a86f3e70
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/567
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/567
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.