René's URL Explorer Experiment


Title: lab-ops-hub: fetchFollowingValidatedRedirects fetches its start URL unvalidated — the SSRF guard is not safe by construction (PR #461) · Issue #464 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: fetchFollowingValidatedRedirects fetches its start URL unvalidated — the SSRF guard is not safe by construction (PR #461) · Issue #464 · developing-today/code

X Title: lab-ops-hub: fetchFollowingValidatedRedirects fetches its start URL unvalidated — the SSRF guard is not safe by construction (PR #461) · Issue #464 · developing-today/code

Description: Problem PR #461's new fetchFollowingValidatedRedirects (the Worker-fallback crawler's SSRF guard, fixing #460) validates every redirect target with validateCrawlUrl — but fetches its startUrl argument without validating it at all. The fe...

Open Graph Description: Problem PR #461's new fetchFollowingValidatedRedirects (the Worker-fallback crawler's SSRF guard, fixing #460) validates every redirect target with validateCrawlUrl — but fetches its startUrl argum...

X Description: Problem PR #461's new fetchFollowingValidatedRedirects (the Worker-fallback crawler's SSRF guard, fixing #460) validates every redirect target with validateCrawlUrl — but fetches its startU...

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

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: fetchFollowingValidatedRedirects fetches its start URL unvalidated — the SSRF guard is not safe by construction (PR #461)","articleBody":"## Problem\n\nPR #461's new `fetchFollowingValidatedRedirects` (the Worker-fallback crawler's SSRF guard, fixing #460) validates every *redirect* target with `validateCrawlUrl` — but fetches its `startUrl` argument without validating it at all. The fetching component itself therefore does not enforce the #441 policy; it relies entirely on its one current caller pre-validating.\n\n## Evidence (verified on current main `468b9155`, 2026-10-21)\n\n- `pkgs/lab-ops-hub/src/lib.ts` — `fetchFollowingValidatedRedirects(startUrl, fetchFn, maxRedirects = 5)`: the loop's first action is `const res = await fetchFn(current)` with `current = startUrl` unchecked; `validateCrawlUrl` is only called on `Location`-derived URLs.\n- Empirically reproduced this run against the merged `src/lib.ts` (plain Node, injected stub fetcher): `fetchFollowingValidatedRedirects(\"http://127.0.0.1/secret\", stub)` fetched `http://127.0.0.1/secret` and returned its 200 response — no refusal. Redirect targets in the same probe (integer/hex IPv4 forms, IPv4-mapped IPv6, NAT64-embedded 169.254.169.254, userinfo tricks) were all correctly refused, so the gap is specifically hop 0.\n- The only production caller is safe today by accident of wiring, not by the helper's contract: `src/index.ts` `/api/crawl` handler validates and rewrites `b.url = target.url` before `crawlFallback(b.url)`. Any future caller — or a refactor that drops the rewrite — silently re-opens the #460/#441 SSRF on the first hop.\n- This contradicts the repo's own stated design for the sibling crawler: `pkgs/lab-ops-hub/container/app.py` validates in the fetching component itself (\"this service re-validates independently (defence in depth — it is the component that actually fetches)\"). The Worker fallback is the component that actually fetches on its path, yet validates only hops 1..n.\n\n## Why it matters\n\n#460 existed precisely because one fetch path in this package silently skipped the validation every other path applied. A security helper whose name and doc comment promise validated fetching (\"Redirect-following fetch with per-hop validation\") but which leaves hop 0 to caller discipline recreates that failure mode one refactor away. Making the helper safe by construction costs one `validateCrawlUrl` call at entry and breaks no current caller (the handler's URL is already validated/normalised; the PR's tests all start from public URLs).\n\n## Acceptance criteria\n\n- [ ] `fetchFollowingValidatedRedirects` validates `startUrl` with `validateCrawlUrl` before the first fetch and throws a clear error (fetching nothing) for a non-public / non-http(s) start URL; the first fetch uses the validated/normalised URL.\n- [ ] Regression test: a start URL of `http://127.0.0.1/…` (and/or `http://169.254.169.254/…`) is refused with the fetcher never invoked; existing public-start redirect tests still pass.\n- [ ] `npm test` and `tsc --noEmit` pass for `pkgs/lab-ops-hub`.\n\nSingle-repo: lab-ops-hub exists only in developing-today/code (as established in #460). Deduped: no open or closed issue names `fetchFollowingValidatedRedirects`, the start-URL gap, or `crawlFallback` validation (issue searches empty, 2026-10-21).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T07:22:45Z","url":"https://github.com/developing-today/code/issues/464"}

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:045b6f04-51dd-29fe-91e2-8dfd7d568400
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9DE6:CCFBF:72F2A1:95B95E:6B0628BB
html-safe-noncec9196eac2d380c142eb35ff6edece81d3418ae86b2da094d1543f3f686825819
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REU2OkNDRkJGOjcyRjJBMTo5NUI5NUU6NkIwNjI4QkIiLCJ2aXNpdG9yX2lkIjoiNTE0OTY5NTc1OTk4MTM1NzI0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac467eb0c5e0d9f0e295aa558a820b76cb193964812b95224988c6f79a41a1e09e
hovercard-subject-tagissue:5956193061
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/464/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5b99a3cccd02aee7eee7386a3192871c6c118555fb7ff43faacf2b6775a48bcb/developing-today/code/issues/464
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5b99a3cccd02aee7eee7386a3192871c6c118555fb7ff43faacf2b6775a48bcb/developing-today/code/issues/464
og:image:altProblem PR #461's new fetchFollowingValidatedRedirects (the Worker-fallback crawler's SSRF guard, fixing #460) validates every redirect target with validateCrawlUrl — but fetches its startUrl argum...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce
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
release32e57d5cc2ce6ce92ec6dceb65858344750c27c2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/464#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F464
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%2F464
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/464
Reloadhttps://github.com/developing-today/code/issues/464
Reloadhttps://github.com/developing-today/code/issues/464
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 requests148 (148)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/464
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/464
#465https://github.com/developing-today/code/pull/465
lab-ops-hub: fetchFollowingValidatedRedirects fetches its start URL unvalidated — the SSRF guard is not safe by construction (PR #461)https://github.com/developing-today/code/issues/464#top
#465https://github.com/developing-today/code/pull/465
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/464#issue-5956193061
#461https://github.com/developing-today/code/pull/461
#460https://github.com/developing-today/code/issues/460
#441https://github.com/developing-today/code/issues/441
lab-ops-hub: Worker-fallback crawler follows redirects to non-public targets (no redirect validation, unlike the container) #460https://github.com/developing-today/code/issues/460
lab-ops-hub: public Worker has no auth on mutating, upload, AI and crawl endpoints (PR #436) #441https://github.com/developing-today/code/issues/441
#460https://github.com/developing-today/code/issues/460
#460https://github.com/developing-today/code/issues/460
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/464#event-33820904480
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/464#event-33823775349
Merge pull request #465 from developing-today/sweep/464-validate-star…https://github.com/developing-today/code/commit/36ca7ef5226a18f441cb5f24e5a88a1cb56dec2d
#465https://github.com/developing-today/code/pull/465
36ca7efhttps://github.com/developing-today/code/commit/36ca7ef5226a18f441cb5f24e5a88a1cb56dec2d
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#465https://github.com/developing-today/code/pull/465
on Oct 21, 2026https://github.com/developing-today/code/issues/464#event-33823775363
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/464
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/464
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.