Skip to content

Audit fixes: serve crash, Google login CSRF, sysinfo injection, Windows update, engine path - #16

Merged
Darknode-Official merged 4 commits into
mainfrom
fix/audit-20261102
Nov 3, 2026
Merged

Darknode-Official merged 4 commits into
mainfrom
fix/audit-20261102

Conversation

@Darknode-Official

Copy link
Copy Markdown
Owner

Audit fixes: serve crash, Google login CSRF, sysinfo injection, Windows update, engine path

  • darknode serve: an unreadable file or folder threw EACCES with no
    handler and killed the server. Now answers 403 and keeps serving.
  • darknode login google: the loopback listener took any ?code=, so any
    local process or page could sign the user in as another account. Adds
    state + PKCE (S256) and serves the error page as text/plain.
  • sysinfo tool: df ran through a shell with the cwd in double quotes, so
    $(...) or backticks in a folder name executed. Uses execFileSync.
  • update on Windows: spawn cannot run npm.cmd without a shell, so the
    npm check/install always failed. Uses npm.cmd with shell on win32.
  • engine sync: "/js/../../x" escaped the engines cache dir. Rejected.

…ws update, engine path

- darknode serve: an unreadable file or folder threw EACCES with no
  handler and killed the server. Now answers 403 and keeps serving.
- darknode login google: the loopback listener took any ?code=, so any
  local process or page could sign the user in as another account. Adds
  state + PKCE (S256) and serves the error page as text/plain.
- sysinfo tool: df ran through a shell with the cwd in double quotes, so
  $(...) or backticks in a folder name executed. Uses execFileSync.
- update on Windows: spawn cannot run npm.cmd without a shell, so the
  npm check/install always failed. Uses npm.cmd with shell on win32.
- engine sync: "/js/../../x" escaped the engines cache dir. Rejected.
@Darknode-Official
Darknode-Official merged commit cac1bd4 into main Nov 3, 2026
6 checks passed
@Darknode-Official
Darknode-Official deleted the fix/audit-20261102 branch November 3, 2026 01:24
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