Repository navigation
Todo
Labels
area:clidecdn binary: get, gateway, pool, publish, origin, setuparea:clientdecdn-client SDK: paid pull, lanes, buyer poolarea:contractsSolidity contracts and Foundryarea:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)area:sponsordSponsorship daemon, onramp and installers (crates/sponsord*)kind:securitySecurity impact; report a vulnerability to [email protected], not hereprio:lowWhen convenient
Description
Source: security review at b5e29ae (2026-11-05). Each claim below was re-read on disk by independent verifiers.
Each item was verified against the code at b5e29ae. None of them is covered by an existing issue that I could find. Split any item into its own issue when someone picks it up.
- Voucher rate tolerance.
crates/incentive/src/rate.rs:33:DEFAULT_TOLERANCE_BPS = 100is justified as rounding slack for the client, but the client prices withdiv_ceil(crates/client/src/ledger.rs:102-105), so an honest payer never needs it. A payer can underpay 1% of every span. A rollover can move about 2.58 MiB per 255-chunk chain into the watermark at no extra amount (scratch test). There is no config knob. Set it to 0, or add a config field defaulting to 0, and update ADR 003:817. -
config initfile mode.crates/cli/src/commands/config.rs:575:decdn config initwritesnode.tomlwithfs::write(0644) and creates the parent directory 0755. The file is the documented home of a providerrpc_url. Open it with mode 0600 and create the parent 0700. - Gateway known-signer budget.
crates/cli/src/commands/gateway.rs:997-1002,:1549: the known-signer lookup budget is per namespace. A former owner's key, still inhigh_water, can spend the 10/min budget and leave the current owner'sPUT /_pointeranswered 429 (scratch test). Key the budget per (namespace, signer). - Onramp overflow window.
crates/sponsord-onramp/src/net.rs:79,:88: pastMAX_TRACKEDdistinct clients, all further clients share one overflow window. Enough distinct sources make every untracked client get 429 on/v1/capabilityand/v1/fund. Hash untracked clients into a fixed array of overflow windows. - Onramp without
ConnectInfo.crates/sponsord-onramp/src/net.rs:124,docs/sponsord/integrator.md:99: rate limits and Turnstileremoteipare skipped when the peer address is unknown, and the integrator doc tells embedders to servehttp::router(state)withoutConnectInfo. Fix the doc to useinto_make_service_with_connect_info::<SocketAddr>(), and warn at startup when neitherConnectInfonorONRAMP_CLIENT_IP_HEADERis configured. - Attestation verifier ignores registration status.
crates/node/src/dht/attestation.rs:73:admitschecks only "seated and not deny-listed". OriginAssignment seats persist after an operator leaves until someone callspruneInactiveOrigin. Require the signer's NodeId to be in the node's current registered set. - Attestation persisted before the pull lands.
crates/node/src/node_origin/pull_leg.rs:1006,node_origin/mod.rs:2552,node_origin/timed_source.rs:86: an upstream-offered attestation is written under<data_dir>/attestationsat the handshake and reloaded on every boot, even if no byte ever verifies. Persist it on commit, or sweep attestations for hashes the cache does not hold. - Reserved pull-state paths are case-sensitive.
crates/client/src/bundle/engine.rs:461-481,:327,:407:.decdn-partial,.decdn-manifest.jsonand.decdn-bundlesare compared byte for byte. On APFS or NTFS, a manifest entry such as.DECDN-PARTIAL/<hex>lands in the staging directory or on the manifest cache (scratch test). Compare bypath_key. Related: client: duplicate or case-folded bundle manifest paths poison the skip set #2691, client: Win32 name aliasing (trailing dot/space,:, 8.3 names) can make two bundle entry paths one file #2746. - Node metrics server.
crates/node/src/metrics.rs:4316: the HTTP/1 builder sets no.timer(..), so hyper's header timeout is silently disabled. There is no keep-alive bound and no Host check, and 32 permits are held until peers close (scratch test). Set the timer and a header timeout, bound keep-alive, and apply the loopback Host check the admin listener got in node: admin JSON-RPC server has no Host/Origin filter (DNS rebinding reaches evict and drain) #2690. - NodeId re-seat after blacklist ejection.
contracts/src/CapacityBond.sol:1028: a blacklist-ejected operator canreclaimNodeIdfrom a fresh address (it holds the iroh key) and re-register the same NodeId. TheblacklistEjectedlatch covers only the Ethereum address, andejectNodedoes not force unbonding (ADR 011:224). Latch the NodeId too, and correct ADR 011 and the key-rotation appendix. Check against Reduce ContentBlacklist to regional tag lists; retire blacklist slashing and operator ejection #2916, which retires operator ejection.
Edited: the "Cumulative pausedTotal" item (SlashEscrowLib, SlashAppeal) was removed as moot, since slashing is retired (#2917, #2938). The attestation-verifier item now asks for registration status instead of stake, since the bond is being replaced.
Metadata
Metadata
Assignees
Labels
area:clidecdn binary: get, gateway, pool, publish, origin, setuparea:clientdecdn-client SDK: paid pull, lanes, buyer poolarea:contractsSolidity contracts and Foundryarea:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)area:sponsordSponsorship daemon, onramp and installers (crates/sponsord*)kind:securitySecurity impact; report a vulnerability to [email protected], not hereprio:lowWhen convenient
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsBacklog
Activity
fix: cap manifest fetches, clamp outboard reads, and small hardening (#…
yigitdot commentedon Nov 17, 2026
Status on
main(116f9e9): #2872 (fcbe2e0) fixes items 2 and 9 and most of item 10. Its commit message cites this issue for each:config initfile mode:decdn config initwritesnode.toml0600 and creates its directory 0700..decdn-partial,.decdn-manifest.jsonand.decdn-bundlescompare bypath_key.crates/node/src/metrics.rs.The other eight items still reproduce on
main.yigitdot commentedon Nov 26, 2026
Status on
main(e720fbb), since the 2026-11-17 status:crates/node/src/node_origin/attestation_refresh.rs). The handshake still writes the attestation before the pull lands, so the drop is lazy.admitschecks seat and deny-set only (crates/node/src/dht/attestation.rs).DEFAULT_TOLERANCE_BPS = 100), the per-namespace gateway known-signer budget, the shared onramp overflow window, theConnectInfodoc indocs/sponsord/integrator.md, the metrics-server loopback Host check, and NodeId re-seat after ejection (reclaimNodeIdhas no latch).alpergundogdu commentedon Nov 26, 2026
#3011 covers two items here: Onramp overflow window (untracked clients spread over 1,024 keyed-hash overflow windows) and Onramp without ConnectInfo (integrator guide serves with
into_make_service_with_connect_info; the library warns once at the first request with no peer address and no client-IP header, since it cannot see at startup how an embedder serves the router).fix(sponsord-onramp): spread untracked clients over overflow windows (#…
alpergundogdu commentedon Nov 27, 2026
Status of every item, on
main(3750aff) plus #3031:div_ceil, so honest vouchers pass, and a 1%-short voucher is refused (test). ADR 003 states the exact check.config initfile mode: fixed onmain(fix: cap manifest fetches, clamp outboard reads, and small hardening #2872).PUT /_pointeranswered (test).main(fix(sponsord-onramp): spread untracked clients over overflow windows #3011).ConnectInfo: fixed onmain(fix(sponsord-onramp): spread untracked clients over overflow windows #3011).admitsalso requires the signer to be bound to a NodeId that the registry snapshot marks active. ADR 022 § Origin Attestation gains the matching validity rule.main(fix: cap manifest fetches, clamp outboard reads, and small hardening #2872).main(fix: cap manifest fetches, clamp outboard reads, and small hardening #2872). fix: harden voucher rate, pointer budget, attestation and metrics checks #3031 adds the loopbackHostcheck on a loopback listener.