security: require explicit confirmation for all live Steam write tools (0.9.0) - #21
Merged
Merged
Conversation
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
…gelog Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Owner
Author
|
Follow-up on this branch:
Partner-admin refusals still return |
…tNewsForApp Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Five tools in the default
steam-mcpbin POSTed to the live Steam Partner Web API as soon as they were invoked. There was no dry-run default, no confirmation flag, and no code path that could refuse an unconfirmed call.The repo already gated Partner-admin image and trailer uploads behind
refuseIfUnconfirmedplus a separate process requiringSTEAM_PARTNER_ADMIN=1. The five default-bin write tools had neither layer.Two read tools returned Steam user-authored text into agent context without labeling it as untrusted.
Before / after
Before (0.8.0):
steam_uploadStoreImageandsteam_uploadTrailerrequireddry_run/confirmand were not in the default bin.steam_grantInventoryItem,steam_setAchievement,steam_clearAchievement,steam_uploadLeaderboardScore, andsteam_updateWorkshopItemsent immediately.After (0.9.0): those five tools use the shared gate in
src/utils/confirm.ts. Default isdry_run: true. A live call withoutconfirm: truereturns[CONFIRM_REQUIRED]and sends nothing. Dry-run runs beforerequireApiKey().Breaking change
Write tools no-op by default. Callers that invoked them with no flags previously sent a live POST. They now receive a dry-run plan.
Old call:
{ "appid": 480, "steamid": "76561197960435530", "achievement": "ACH_WIN_ONE_GAME" }New call (sends for real):
{ "appid": 480, "steamid": "76561197960435530", "achievement": "ACH_WIN_ONE_GAME", "dry_run": false, "confirm": true }Credit
Reported by Syed Anas Mohiuddin, Independent Researcher, Maintainer of mcp-safeguard (https://github.com/SyedAnas01/mcp-safeguard )
Test plan
npm run buildnpm test(93 passed)src/tools/pass throughrefuseIfUnconfirmedbeforesteamPartnerPost/ livefetchManual follow-up
.github/SECURITY_ADVISORY_DRAFT.md)Made with Cursor