mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2058] [Issue]: remote bulk import scan is not protected by Admin Access #1007
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1007
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2058
Originally assigned to: @cha1latte on GitHub.
Summary
Remote Runtime exposes
import_st_bulk_scan, but the command is not included in the refactor Admin Access privileged-command sets. Legacy guarded both SillyTavern bulk scan and bulk run with privileged access.Expected behavior
Off-loopback or otherwise privileged Remote Runtime calls to
import_st_bulk_scanshould require the same Admin Access guard asimport_st_bulk_run.Actual behavior
Static parity tracing for Target 3 found
import_st_bulk_scanis remote-callable through the shared allowlist and Rust dispatcher, while onlyimport_st_bulk_runis listed in the client/server privileged remote command sets.Evidence:
src/shared/api/remote-runtime.tsallowlistsimport_st_bulk_scan.src-tauri/src/http_dispatch.rsdispatchesimport_st_bulk_scan.src/shared/api/remote-runtime.tsandsrc-tauri/src/http_server.rsincludeimport_st_bulk_runin privileged sets but omitimport_st_bulk_scan.packages/server/src/routes/import.routes.tsguarded both/st-bulk/scanand/st-bulk/runwith privileged access.Steps to reproduce
/api/invokewith commandimport_st_bulk_scanwithout an Admin Access secret.import_st_bulk_run, which is already treated as privileged.Impact area
Environment
refactor, Target 3 rescan on 2026-06-04Logs, screenshots, or video
No runtime screenshot attached. Static Target 3 parity evidence is recorded in #2050.
Regression notes
Legacy
mainprotected both bulk scan and run. This is a confirmed remote-runtime parity regression from the legacy server contract.Additional context
Suggested fix: add
import_st_bulk_scanto both privileged remote command sets and add an off-loopback denied scan test plus an allowed-with-secret scan test.Related tracker: #1904 target 3 and #2050.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: