Skip to content

Block '--' and legacy commands as Service Mode bypass vectors - #2350

Draft
amangalampalli-ks wants to merge 1 commit into
fix/service-mode-double-dash-bypassfrom
fix/service-mode-double-dash-bypass-int
Draft

Block '--' and legacy commands as Service Mode bypass vectors#2350
amangalampalli-ks wants to merge 1 commit into
fix/service-mode-double-dash-bypassfrom
fix/service-mode-double-dash-bypass-int

Conversation

@amangalampalli-ks

Copy link
Copy Markdown
Contributor

Summary

Fixed a way someone could bypass Service Mode's command restrictions to run commands they shouldn't be able to, including running arbitrary commands on the server. This matters because it closes a real security gap in a feature meant to lock down what restricted API keys can do.

Changes

  • Blocked a hidden trick (--) that let restricted commands slip past the security check and run anyway.
  • Fully blocked a set of old/legacy commands in Service Mode that were never safe to allow there.
  • Fixed a Windows-only bug that crashed file uploads when the file path contained certain characters.
  • Fixed a Windows-only bug where a valid file path was incorrectly rejected as unsafe.

@amangalampalli-ks amangalampalli-ks self-assigned this Sep 4, 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.

1 participant