Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Security: add server-side permission checks to NPC packet handlers#40

Open
MRkto wants to merge 1 commit intomchorse:masterfrom
MRkto:master
Open

Security: add server-side permission checks to NPC packet handlers#40
MRkto wants to merge 1 commit intomchorse:masterfrom
MRkto:master

Conversation

@MRkto
Copy link
Copy Markdown

@MRkto MRkto commented Sep 13, 2025

Summary

Added server-side permission checks across NPC packet handlers to prevent unauthorized manipulation. Previously, NpcState could allow arbitrary code execution on the server if an NPC was present

Changes

Added Op/Creative check to ServerHandlerNpcState, ServerHandlerNpcList, and ServerHandlerNpcTool
Added isRiding check to ServerHandlerNpcJump

Security impact

Severity: High for the ServerHandlerNpcState (prevents potential script injection)
Other fixes: lowered-risk integrity/permission issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant