René's URL Explorer Experiment


Title: aggregator(cost-explorer): a setup named '__proto__' is silently never saved — save/import assign into a plain object, so the name becomes the store's prototype instead of an entry · Issue #2851 · developing-today/code · GitHub

Open Graph Title: aggregator(cost-explorer): a setup named '__proto__' is silently never saved — save/import assign into a plain object, so the name becomes the store's prototype instead of an entry · Issue #2851 · developing-today/code

X Title: aggregator(cost-explorer): a setup named '__proto__' is silently never saved — save/import assign into a plain object, so the name becomes the store's prototype instead of an entry · Issue #2851 · developing-today/code

Description: aggregator(cost-explorer): a setup named __proto__ is silently never saved — the setups store assigns into a plain object, so the name becomes the store's prototype instead of an entry Evidence (main f318fd59) The cost explorer's saved-s...

Open Graph Description: aggregator(cost-explorer): a setup named __proto__ is silently never saved — the setups store assigns into a plain object, so the name becomes the store's prototype instead of an entry Evidence (ma...

X Description: aggregator(cost-explorer): a setup named __proto__ is silently never saved — the setups store assigns into a plain object, so the name becomes the store's prototype instead of an entry Evidence...

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

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":"aggregator(cost-explorer): a setup named '__proto__' is silently never saved — save/import assign into a plain object, so the name becomes the store's prototype instead of an entry","articleBody":"# aggregator(cost-explorer): a setup named `__proto__` is silently never saved — the setups store assigns into a plain object, so the name becomes the store's prototype instead of an entry\n\n## Evidence (main `f318fd59`)\n\nThe cost explorer's saved-setups store in `pm-stack/aggregator/src/render.ts` keeps setups in a plain object parsed from localStorage:\n\n- `loadSetups()` (:4321) returns `JSON.parse(localStorage.getItem(\"xpl-setups-v1\") || \"{}\")` — a plain object carrying `Object.prototype`.\n- Save handler (:4338): `all[name] = captureSetup();` then `storeSetups(all)` (:4324, `JSON.stringify`).\n- Import handler (:4359): `Object.keys(parsed).forEach(function (k) { all[k] = parsed[k]; });` then `storeSetups(all)`.\n\nAssignment `obj[\"__proto__\"] = value` does not create an own property — it sets the object's prototype. So a setup whose name is exactly `__proto__` never becomes an entry:\n\n### Verified (laptop probe, verbatim save/import logic; `render.ts` md5 `2f629fd585f6f281cb3be63ce55ce337` on sandbox main, assignment lines identical in the laptop clone)\n\nProbe: `~/git/fleet/probe-2026-10-30-laneB-xplproto/` (`probe.mjs`, `probe2.mjs`)\n\nSave path:\n- save `Normal` → stored keys `[\"Normal\"]`\n- save `constructor` → stored keys `[\"Normal\",\"constructor\"]` (control: assignment *does* shadow for other prototype spellings)\n- save `__proto__` → stored keys still `[\"Normal\",\"constructor\"]`; the stored JSON has no `__proto__` entry — **the setup is silently lost**, and the setup list (`refreshSetupList`, `Object.keys(loadSetups())`) never shows it.\n\nImport path (file text built as a raw string, the way FileReader delivers it):\n- `JSON.parse` itself preserves the entry: parsed own keys are `[\"__proto__\",\"Real\"]`.\n- After the import loop, `Object.keys(all)` is `[\"Real\"]` only; `all.tab === \"polluted-tab\"` and `Object.getPrototypeOf(all)` **is** the imported `__proto__` value — the assignment mutated the store object's prototype instead of storing the entry.\n- The persisted JSON after import is `{\"Real\":{...}}` — the `__proto__` setup is silently dropped on import too.\n\n## Why it matters\n\n- Silent data loss in both directions of the setups feature: a user who names a setup `__proto__` (or imports a setups file containing one) loses it with no error, and the UI gives no signal — the name just never appears in the list.\n- The import path additionally mutates the in-memory store's prototype for the rest of that handler's lifetime.\n- This is the *write-side* counterpart of the own-key lookup design #2792, which explicitly puts write-side `__proto__` handling out of its scope (\"write-side `__proto__` pollution is a different bug class\"); the one filed write-side instance is #2828 (`bin/record.mjs` loose parser). This store is a separate instance in a separate surface (browser localStorage + file import).\n\n## Acceptance criteria\n\n- [ ] Saving a setup named `__proto__` persists it: it appears in the setup list, survives reload (localStorage round-trip), and exports like any other setup — or the name is rejected with a visible signal; silent loss is the bug.\n- [ ] Importing a setups file with a `__proto__` entry stores it as an entry (or visibly skips it); the store object's prototype is never mutated by save or import.\n- [ ] Controls unchanged: `Normal`, `constructor`, `toString` setup names save/import/export exactly as before.\n- [ ] A regression check covers the probe matrix (`__proto__`, `constructor`, ordinary name) across save → store → reload → export and across import.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-30T22:35:03Z","url":"https://github.com/developing-today/code/issues/2851"}

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:44eb3da1-de33-b23c-4138-615efd42790b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC000:287980:39B8B2:4DF820:6B0763D9
html-safe-nonce41a92570f5d63891b5bb45a28f158cdaaa321cd4f185e37c942803b6ab3bd2c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDAwOjI4Nzk4MDozOUI4QjI6NERGODIwOjZCMDc2M0Q5IiwidmlzaXRvcl9pZCI6IjUzNDk3MDgwOTYyODM4MjkyMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf7a6ef6ade3d04f52e785c20d2ca8f4f450964a9d59cf17d9d94577a8f55cb5f
hovercard-subject-tagissue:6128005934
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/2851/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e40c985843f8ff7c6ad8db9b690fb03314ce8b67972a520d8588e46447ff6493/developing-today/code/issues/2851
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e40c985843f8ff7c6ad8db9b690fb03314ce8b67972a520d8588e46447ff6493/developing-today/code/issues/2851
og:image:altaggregator(cost-explorer): a setup named __proto__ is silently never saved — the setups store assigns into a plain object, so the name becomes the store's prototype instead of an entry Evidence (ma...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None7a557ecc960a3ae6e299fc66b0bc9132072f8860191648e6749fee5d3ff00d82
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
releasebd845eb7947c1ed8c850f7ab415a51339d162de3
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/2851#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F2851
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%2F2851
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/2851
Reloadhttps://github.com/developing-today/code/issues/2851
Reloadhttps://github.com/developing-today/code/issues/2851
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1k (1k)https://github.com/developing-today/code/issues
Pull requests205 (205)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/2851
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2851
#3491https://github.com/developing-today/code/pull/3491
aggregator(cost-explorer): a setup named '__proto__' is silently never saved — save/import assign into a plain object, so the name becomes the store's prototype instead of an entryhttps://github.com/developing-today/code/issues/2851#top
#3491https://github.com/developing-today/code/pull/3491
https://github.com/dezren39
app/aggregatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Faggregator%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
source/design-architecthttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdesign-architect%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2851#issue-6128005934
design(own-key lookups): a plain object is not a map for untrusted keys — one own-key rule for every dynamic lookup #2792https://github.com/developing-today/code/issues/2792
record(loose): a '__proto__' field in loose text is silently dropped — parseLoose assigns into a plain object, so the field never reaches the JSONL line (the JSON path preserves it) #2828https://github.com/developing-today/code/issues/2828
Nexthttps://github.com/developing-today/code/issues/2851?timeline_page=1
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
app/aggregatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Faggregator%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
on Oct 30, 2026https://github.com/developing-today/code/issues/2851#event-34738212010
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2851#issuecomment-6534941906
f318fd5https://github.com/developing-today/code/commit/f318fd59577539030e32fccbc632a5971df6b634
#2792https://github.com/developing-today/code/issues/2792
#2828https://github.com/developing-today/code/issues/2828
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2851#event-34741436345
dezren39https://github.com/dezren39
on Oct 31, 2026https://github.com/developing-today/code/issues/2851#event-34755827639
Design: define, don't assign — untrusted keys are stored with define semantics, never through the __proto__ setter #2953https://github.com/developing-today/code/issues/2953
dezren39https://github.com/dezren39
source/design-architecthttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdesign-architect%22
on Oct 31, 2026https://github.com/developing-today/code/issues/2851#event-34755832351
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 31, 2026https://github.com/developing-today/code/issues/2851#issuecomment-6539617648
#2953https://github.com/developing-today/code/issues/2953
#2953https://github.com/developing-today/code/issues/2953
#2941https://github.com/developing-today/code/issues/2941
dezren39https://github.com/dezren39
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2851#event-34825696030
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2851#event-34825759589
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2851#issuecomment-6556679242
aggregator(cost-explorer): a setup named '__proto__' is silently never saved — save/import assign into a plain object, so the name becomes the store's prototype instead of an entry #2851https://github.com/developing-today/code/issues/2851
aggregator(cost-explorer): a setup named '__proto__' is silently never saved — save/import assign into a plain object, so the name becomes the store's prototype instead of an entry #2851https://github.com/developing-today/code/issues/2851
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2851#event-34825997516
Merge pull request #3491 from developing-today/queue/5444-2851-proto-…https://github.com/developing-today/code/commit/cf3a083d44ecd79322a4f00efcd825dae75fda64
#3491https://github.com/developing-today/code/pull/3491
cf3a083https://github.com/developing-today/code/commit/cf3a083d44ecd79322a4f00efcd825dae75fda64
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3491https://github.com/developing-today/code/pull/3491
on Nov 1, 2026https://github.com/developing-today/code/issues/2851#event-34825998120
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2851#event-34826012264
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2851#issuecomment-6556736315
aggregator(cost-explorer): null-prototype setups store (#2851) #3491https://github.com/developing-today/code/pull/3491
cf3a083https://github.com/developing-today/code/commit/cf3a083d44ecd79322a4f00efcd825dae75fda64
aggregator(cost-explorer): null-prototype setups store (#2851) #3491https://github.com/developing-today/code/pull/3491
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/2851
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2851
dezren39https://github.com/dezren39
app/aggregatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Faggregator%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
source/design-architecthttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdesign-architect%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
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.