Title: Console: any local process can obtain the token, and /v1/sys/opt mutates the machine with no flag · Issue #6 · DevCop95/pullgoscript · GitHub
Open Graph Title: Console: any local process can obtain the token, and /v1/sys/opt mutates the machine with no flag · Issue #6 · DevCop95/pullgoscript
X Title: Console: any local process can obtain the token, and /v1/sys/opt mutates the machine with no flag · Issue #6 · DevCop95/pullgoscript
Description: Both found by deploying the console locally and driving the entire route table over raw sockets (29 routes, Host/Origin/token/flag combinations, WS handshake plus a live broadcast frame). Neither is remotely exploitable; both need local ...
Open Graph Description: Both found by deploying the console locally and driving the entire route table over raw sockets (29 routes, Host/Origin/token/flag combinations, WS handshake plus a live broadcast frame). Neither i...
X Description: Both found by deploying the console locally and driving the entire route table over raw sockets (29 routes, Host/Origin/token/flag combinations, WS handshake plus a live broadcast frame). Neither i...
Opengraph URL: https://github.com/DevCop95/pullgoscript/issues/6
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Console: any local process can obtain the token, and /v1/sys/opt mutates the machine with no flag","articleBody":"Both found by deploying the console locally and driving the entire route table\nover raw sockets (29 routes, `Host`/`Origin`/token/flag combinations, WS\nhandshake plus a live broadcast frame). Neither is remotely exploitable; both\nneed local access. Neither is fixed — they are design decisions rather than\nbugs, so they need your call before anyone writes code.\n\n## 1. Any local process can obtain the token (🟡 on shared hosts)\n\n`GET /` returns the dashboard with the per-run token baked into the HTML, and\nthat route is guarded only by the loopback `Host` check. There is no token\nrequirement to *fetch* the token.\n\nSo any process that can reach `127.0.0.1:8080` can read the token and then call\n`POST /v1/sys/cmd` to run commands as the user running the console. Loopback is\nmachine-scoped, not user-scoped, so this includes a process running as a\n*different local user* on a shared or RDP host. My test client did exactly this\nas its step 0, with no credentials, and then used the token for the other 34\nchecks.\n\n`SECURITY.md` puts \"the operator console once the token holder is trusted\" out\nof scope, which is coherent for the intended single-user workstation — but the\ntoken is handed to whoever asks, so \"the token holder\" is not a smaller set than\n\"anyone with local access\", and the docs do not say which deployment is\nsupported.\n\nOptions, cheapest first:\n\n- **(a) Document the boundary.** State plainly that any local process or user\n can obtain the token and that the console is single-user only. Honest, zero\n code, and probably sufficient for how the tool is actually used.\n- **(b) Stop embedding the token in the HTML.** Have the operator paste it once\n into a form, and set a same-origin cookie from that. The full token is already\n printed to the process's console at startup, and a console is\n session-scoped — another local user cannot read it. This makes the token mean\n something against a local attacker instead of only against a rebinding page.\n- **(c) Named pipe with a security descriptor** naming the invoking user's SID.\n The real fix if multi-user operation is ever a goal; loopback TCP cannot\n express per-user access on its own.\n\nRecommendation: (b), with (a) written into `SECURITY.md` either way.\n\n## 2. `POST /v1/sys/opt` changes the machine with no flag and no body (🟢)\n\n`handleTweaks` does not parse a request body at all — it calls\n`winutil.ApplyTelemetryTweaks()` and returns the results. That function writes\nto HKLM (`DataCollection\\AllowTelemetry=0`, `Windows Error Reporting\\Disabled=1`,\n`Explorer\\Advanced\\Start_TrackProgs=0`) and runs\n`sc stop DiagTrack` + `sc config DiagTrack start=disabled`.\n\nEvery other capability that changes the machine requires an explicit\n`--enable-*` at startup. This one needs only the token, and there is no way for\nthe operator to see what is about to be applied before it is applied. It is\ncovered by the opening sentence of `SECURITY.md` (\"…can execute commands,\nmodify registry policy…\") but not by the **Known intentional capabilities**\nlist, and the threat-model table implies module flags for state-changing\nendpoints.\n\nOptions:\n\n- Gate it behind a flag (`--enable-tweaks`) like persist/lateral/evasion, or\n- keep it always-on but add it to the documented capability list **and** split\n it into a dry-run (`GET`, returns what would change) plus an apply (`POST`).\n\nThe tweaks are idempotent, reversible and privacy-hardening, so documenting it\nmay well be enough — the problem is the mismatch between what the docs promise\nand what the code gates.\n\n## 3. A failed enumeration reads as \"no footholds\" (🟢)\n\nRelated, found in the same pass and worth recording while it is fresh:\n`listTasks` and `listWMI` discard every error and return `nil`, so\n`GET /v1/sys/persist` renders an empty table when the question could not be\nasked — indistinguishable from a genuinely clean host. That is a false negative\nin an audit tool, and the liveness bound added in #6 adds one more way to reach\nit (a 20s timeout collapses to the same empty list). Fix: carry the error out of\n`List()` and render \"could not enumerate\" rather than an empty foothold table.\n","author":{"url":"https://github.com/DevCop95","@type":"Person","name":"DevCop95"},"datePublished":"2026-10-17T17:21:26Z","url":"https://github.com/DevCop95/pullgoscript/issues/6"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:049076dc-b658-1dc0-a7c8-1dd3490c5745 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A96A:240CD1:1E00385:261E440:6B0162E0 |
| html-safe-nonce | f258ac13a72cb64d01510cb55587f4972198ebc93a919324ec43a72e698728d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTZBOjI0MENEMToxRTAwMzg1OjI2MUU0NDA6NkIwMTYyRTAiLCJ2aXNpdG9yX2lkIjoiNjUxNzA1NTA5ODk1NzQyMzMyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4de710bef4b1fa834de66835840fdd30975f48698bc848ac7f71bc0298fef351 |
| hovercard-subject-tag | issue:5901070708 |
| github-keyboard-shortcuts | repository,issues,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DevCop95/pullgoscript/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b73c438e7cb9ff7bf6f46277731183eea4b9b52737a2a7550272f3a33ae22bb/DevCop95/pullgoscript/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b73c438e7cb9ff7bf6f46277731183eea4b9b52737a2a7550272f3a33ae22bb/DevCop95/pullgoscript/issues/6 |
| og:image:alt | Both found by deploying the console locally and driving the entire route table over raw sockets (29 routes, Host/Origin/token/flag combinations, WS handshake plus a live broadcast frame). Neither i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DevCop95 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/DevCop95/pullgoscript git https://github.com/DevCop95/pullgoscript.git |
| octolytics-dimension-user_id | 264654485 |
| octolytics-dimension-user_login | DevCop95 |
| octolytics-dimension-repository_id | 1219633421 |
| octolytics-dimension-repository_nwo | DevCop95/pullgoscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1219633421 |
| octolytics-dimension-repository_network_root_nwo | DevCop95/pullgoscript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width