Skip to content

node/cn: reject bid messages from non-CN peers - #1046

Open
hyunsooda wants to merge 1 commit into
kaiachain:devfrom
hyunsooda:fix/reject-bid-from-non-cn
Open

node/cn: reject bid messages from non-CN peers#1046
hyunsooda wants to merge 1 commit into
kaiachain:devfrom
hyunsooda:fix/reject-bid-from-non-cn

Conversation

@hyunsooda

@hyunsooda hyunsooda commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

Inbound BidMsg was dispatched on protocol version and message code alone, so any peer could reach a consensus node's bid path. BroadcastBid already targets CN peers only; require the same inbound. Resource bounds for the same path are in #1041.

Types of changes

  • 🐛 Bug fix
  • ✨ Non-hardfork changes (node upgrade not required)
  • 💥 Hardfork / consensus-breaking changes
  • 🧪 Test improvements
  • 🧰 CI / build tool
  • ♻️ Chore / Refactor / Non-functional changes

Checklist

  • 📖 I have read the CONTRIBUTING GUIDELINES doc
  • 📝 I have signed in the PR comment I have read the CLA Document and I hereby sign the CLA in first time contribute after having read CLA
  • 🟢 Lint and unit tests pass locally with my changes ($ make test)

Related issues

Further comments

@hyunsooda hyunsooda self-assigned this Aug 25, 2026
Inbound BidMsg was dispatched on protocol version and message code alone,
so any peer could make a consensus node decode a bid and walk the pool's
validation path. Outbound propagation already targets CN peers only; gate
the inbound side the same way, next to the existing consensus-message check.

Confidence: high
Scope-risk: narrow
Not-tested: sustained bid flooding from a malicious CN peer

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@hyunsooda
hyunsooda force-pushed the fix/reject-bid-from-non-cn branch from 053972a to ae5418f Compare August 25, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants