[Low] Marketplace validator accepts resource requests with invalid lease dimensions that every provider drops
Report
Summary
The marketplace gossip validator accepts resource requests with invalid lease dimensions that every provider drops. The validator checks only the signature; the provider handler additionally validates dimensions — a stateless, cheap check that the validator skips, so invalid requests are gossiped network-wide and every provider pays parse + verify cost before dropping them.
Root Cause
- Validator side:
marketplaceValidator(net/gossip_validate.go:183, request case:198-203) calls onlyVerifyRequest(signature + non-empty consumer,net/marketplace_sign.go:118-124). No dimension check. - Consumer side: the provider handler (
node/node.go:1366-1369) additionally callscore.ValidateLeaseDimensionsand drops invalid requests (0/0/0/0, below-minimum duration, above-maximum dims). - The check is stateless and cheap, so the gap is a real inconsistency (contrast the vote-weight check, which legitimately needs ledger state).
Verification
Executed PoC (in-package net test):
zero-dim request: VerifyRequest err=<nil> validator=0 (Accept)
ValidateLeaseDimensions err=lease must request at least one resource (vcpus, memory, or disk)
valid request: VerifyRequest err=<nil> validator=0 (Accept) ValidateLeaseDimensions err=<nil>
Note on related reports
Same symptom class as #687 (validator Accepts, consumer drops), different mechanism. Searched "marketplace request dimensions ValidateLeaseDimensions", "marketplace validator dimensions", "resource request invalid dimensions gossip", plus a broad marketplace search (15 hits read): #270 (no dedup/rate-limit), #530/#18/#529 (no expiry), #184/#526 (offers), #592 (ad storage), #612 (block/statechain validators skip signature verification — its body explicitly notes marketplace DOES verify signatures) — none cover the dimension gap.
Suggested fix
Call ValidateLeaseDimensions in the marketplace validator's request case, matching the provider handler.
Thread
Thanks for the report. The marketplace request check you describe is being handled. The assessment and any award follow the fix.