{"id":"XE-16984","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"695","source_url":"https://github.com/xeprotocol/xe/issues/695","reporter_id":2920,"title":"[Low] Marketplace validator accepts resource requests with invalid lease dimensions that every provider drops","area":"p2p-sync","claimed_tier":null,"assessed_tier":null,"verdict":null,"duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":null,"status":"triaging","closed_reason":null,"github_state":"open","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-17T08:13:52.054592+00:00","updated_at":"2026-11-22T23:26:19.090630+00:00","source_created_at":"2026-11-17T08:12:07+00:00","told_at":"2026-11-22T23:26:19.096387+00:00","status_changed_at":"2026-11-22T23:26:05.147712+00:00","url":"https://bounty.xe.network/XE-16984","body":"## Summary\n\nThe 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.\n\n## Root Cause\n\n- **Validator side:** `marketplaceValidator` (`net/gossip_validate.go:183`, request case `:198-203`) calls only `VerifyRequest` (signature + non-empty consumer, `net/marketplace_sign.go:118-124`). No dimension check.\n- **Consumer side:** the provider handler (`node/node.go:1366-1369`) additionally calls `core.ValidateLeaseDimensions` and drops invalid requests (0/0/0/0, below-minimum duration, above-maximum dims).\n- The check is stateless and cheap, so the gap is a real inconsistency (contrast the vote-weight check, which legitimately needs ledger state).\n\n## Verification\n\nExecuted PoC (in-package `net` test):\n\n```\nzero-dim request: VerifyRequest err=<nil> validator=0 (Accept)\n                  ValidateLeaseDimensions err=lease must request at least one resource (vcpus, memory, or disk)\nvalid request:    VerifyRequest err=<nil> validator=0 (Accept)  ValidateLeaseDimensions err=<nil>\n```\n\n## Note on related reports\n\nSame 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.\n\n## Suggested fix\n\nCall `ValidateLeaseDimensions` in the marketplace validator's request case, matching the provider handler.\n","patch_refs":[],"thread":[{"id":18918,"source":"desk","source_ref":"reply:16595","author":"Joseph Denne","team":true,"body":"Thanks for the report. The marketplace request check you describe is being handled. The assessment and any award follow the fix.","created_at":"2026-11-22T23:26:19.090630+00:00"}]}