Skip to content

fix(security): protect OUI denylist admin endpoints#122

Merged
Scottcjn merged 1 commit intoScottcjn:mainfrom
David-code-tang:codex/api-auth-rate-limit-audit-57
Feb 12, 2026
Merged

fix(security): protect OUI denylist admin endpoints#122
Scottcjn merged 1 commit intoScottcjn:mainfrom
David-code-tang:codex/api-auth-rate-limit-audit-57

Conversation

@David-code-tang
Copy link
Contributor

Security hardening discovered during red-team bounty #57.

Issue

/admin/oui_deny/list, /admin/oui_deny/add, /admin/oui_deny/remove were reachable without admin authentication, allowing unauthenticated modification of the OUI denylist.

Fix

Require admin auth (X-API-Key matching RC_ADMIN_KEY) for all OUI denylist endpoints.

Validation

Manual reproduction against live node prior to patch:

  • Unauthenticated POST /admin/oui_deny/add succeeded
  • Unauthenticated POST /admin/oui_deny/remove succeeded

After patch, these should return 403 when not authenticated.

Related bounty: Scottcjn/rustchain-bounties#57

@David-code-tang
Copy link
Contributor Author

Added minimal auth guard for /admin/oui_deny/* endpoints. Prior to patch, unauthenticated POST /admin/oui_deny/add and /admin/oui_deny/remove succeeded on live node; after patch these should return 403 unless X-API-Key matches RC_ADMIN_KEY.

@Scottcjn Scottcjn merged commit 5275673 into Scottcjn:main Feb 12, 2026
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