@weibaohui/dsh-git-server avatar

@weibaohui/dsh-git-server

PluginDeveloperNetworkGitHub integrationCode review
Verification
L4 · Install tested
Failed
Risk
Critical
Health
Active
Trust
Silver

Install verification: sandbox install ok, web smoke failed (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →

What it doesAI

Self-hosted Git server plugin for dsh: HTTP clone/push, repos, issues, PR review, wiki, releases, tags, milestones and webhooks in a native UI.

  • Full self-hosted Git service: HTTP clone/push, repos, issues, PRs, wiki, releases, tags, milestones, webhooks
  • Native dsh UI page with file tree, syntax highlighting, commit history, zh/en and light/dark themes
  • Collaboration loop: notification center, cross-repo my issues/PRs, PR review, auto-close on push
developerAIgithubAIcode-reviewAI

Capability tags are AI-inferred or rule-extracted from the README (see badge) — vocabulary-limited, not install-verified. AI = inferred; README = literal keyword from the readme.

Installation

dsh plugin --profile web add @weibaohui/dsh-git-server
verified 0.2.4

Install method: npm · sandbox install ok, web smoke failed (L5)

Verification & Compatibility

Grouped by plugin version: each card lists the dsh versions actually tested against that artifact version and their install verdicts (L5 wins). Untested combinations are omitted — absence means untested, never assumed compatible. L1–L3 are a plugin-level static archive (independent of the dsh version — the same verdict on every dsh row): they sit in each row's level grid next to L4/L5, marked "static", while their evidence is stored once per plugin inside that row's "checks & evidence" instead of being duplicated per version.

External credentials (plugin-level): none detected

Declared DSH compatibilityfrom package.json · peerDependencies
author declared no dsh version requirement

○ The author declares no dsh version requirement — install is not blocked by version.

Install compatibility matrix (rows = plugin versions〔latest 5〕, columns = dsh versions〔latest 5〕)
At-a-glance → evidence in the cards below
plugin \ dshdsh 0.2.1-rc.2
current
dsh 0.2.1-alpha.2
0.2.4✗✗
v0.2.4··
Install compatibility (by plugin version, dsh versions within)
Legend:✓ L5 runtime verified○ ecosystem plugin◼ ecosystem app✗ failed
0.2.4npm2 failed2026-10-20

@weibaohui/dsh-git-server

✗dsh 0.2.1-rc.2current2026-10-20L5 · failed
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-rc.2
  • • Plugin artifact: npm · @weibaohui/dsh-git-server@0.2.4
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Failed
Sandbox install failed
L5 · failed

ID: dsh-git-server@0.2.4@dsh0.2.1-rc.2 · profile: l4-sandbox

Issued: 2026-10-20 · expires: 2026-10-27

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec @weibaohui/dsh-git-server · channel npm package · outcome ran · exit 0
check took: 4.6s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec @weibaohui/dsh-git-server · channel npm package · outcome ran · exit 0
check took: 4.6s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec @weibaohui/dsh-git-server · channel npm package · outcome ran · exit 0
check took: 4.6s
Resolved version recorded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec @weibaohui/dsh-git-server · channel npm package · outcome ran · exit 0
check took: 4.6s
L5 · Run tested✕ Failed
Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec @weibaohui/dsh-git-server · install mode reused L4 scratch
check took: 0ms
Web boot ready✕ Failed
plugin tree failed to load
HTTP endpoint served✕ Failed

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

✗dsh 0.2.1-alpha.22026-10-15L5 · failed
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.2
  • • Plugin artifact: npm · @weibaohui/dsh-git-server@0.2.4
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Failed
Sandbox install failed
L5 · failed

ID: dsh-git-server@0.2.4@dsh0.2.1-alpha.2 · profile: l3-fullscan

Issued: 2026-10-15 · expires: 2026-10-22

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @weibaohui/dsh-git-server · channel npm package · outcome ran · exit 0
check took: 11.6s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @weibaohui/dsh-git-server · channel npm package · outcome ran · exit 0
check took: 11.6s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @weibaohui/dsh-git-server · channel npm package · outcome ran · exit 0
check took: 11.6s
Resolved version recorded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @weibaohui/dsh-git-server · channel npm package · outcome ran · exit 0
check took: 11.6s
L5 · Run tested✕ Failed
Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec @weibaohui/dsh-git-server · install mode reused L4 scratch
check took: 0ms
Web boot ready✕ Failed
boot failed
HTTP endpoint served✕ Failed

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

v0.2.4github2026-10-14

https://github.com/weibaohui/dsh-git-server

No runtime install test for this version (static scan only) — compatibility unknown, never assumed.

Author badges

Embed the official badges in your README to showcase security & install-test status:

dsh.so risk
`[![dsh.so risk](https://www.dsh.so/badge/dsh-git-server.svg)](https://www.dsh.so/artifact/dsh-git-server/)`

Security Report

Two automated layers, neither a manual review: a static scan (per-plugin rule checks) and a model-driven dynamic security audit that covers only the subset static-flagged at warn or above and never executes plugin code.

dsh-git-serverAutomated review · daily

Static low, dynamic high — stricter wins → overall high.

static low→dynamic high→overall high
0 critical·0 high
highoverall · high
1static scan · vet primaryvet AST static analysis (npm artifact or git source)
plugin versionv0.2.4dsh manifest
scanned version0.2.4npm2026-10-21
current version0.2.4same version
vet verdictclean · npm

Vet is an AST static scan (npm artifact or git source).

show static findings (11)
  • criticalshellExec · shellsrc/runner.js:215

    .execSync(`ps ax -o pid=,command= | grep -F '${marker}' | grep -v grep || true`, { shell: '/bin/bash' })

  • warningnetIp · networksrc/index.js:182

    const res = await fetch(`http://127.0.0.1:${cfg.port}/api/v1${path}`, {

  • warningnetIp · networksrc/index.js:204

    const res = await fetch(`http://127.0.0.1:${cfg.port}/api/v1/users/root/tokens`, {

  • warningnetIp · networksrc/index.js:218

    const res = await fetch(`http://127.0.0.1:${cfg.port}/api/v1${path}`, {

  • warningfsWrite · filessrc/index.js:133

    fs.writeFileSync(passwordFile(), pw + '\n', { mode: 0o600 })

  • warningfsWrite · filessrc/index.js:236

    fs.writeFileSync(impersonateFile(), v + '\n', { mode: 0o600 })

  • warningchildProcess · code-execsrc/runner.js:184

    const child = spawn(npm, ['install', '--omit=dev', '--no-audit', '--no-fund'], {

  • warningchildProcess · code-execsrc/runner.js:291

    const child = spawn(process.execPath, spawnArgs, { cwd: SERVER_DIR, env, stdio: ['ignore', 'pipe', 'pipe'] })

  • warningfsWrite · filessrc/runner.js:116

    fs.writeFileSync(secretFile, secret + '\n', { mode: 0o600 })

  • warningfsWrite · filessrc/runner.js:156

    fs.writeFileSync(file, ini, { mode: 0o600 })

  • warningfsWrite · filessrc/runner.js:247

    fs.writeFileSync(file, tag + '\n', { mode: 0o600 })

2model reads redacted source context · never executes plugin code
highest gradehigh
merged intooverall high
audited at2026-10-17
findings0 critical·1 high1 medium / 2 low hidden
show 4 audit findings
  • highGET /dsh-git-server/api/status returns the Gogs root password in plaintext before the dsh-session checksrc/index.js:306

    The status payload embeds the plaintext root password of the embedded git server (also the UM-mapped administrator), and that branch is taken before the plugin's own session check, so any caller that only passes the host Host/Origin fence (ctx.connection.requestRejection, a CSRF/DNS-rebinding guard, not a user authentication step) receives the credential. With it an attacker who can reach the host web port or the 0.0.0.0:3400 git server gets full administrative control of every repository (root login / admin token minting).

  • mediumAny dsh session (no admin check) can overwrite adminPassword/impersonateSecret via PUT /settingssrc/index.js:663

    The PUT branch is gated only by 'actor' (any resolvable dsh/UM session, not an administrator). A non-admin session can therefore reset the git server's root password (locking out the operator, or taking over the repository server) and rotate the impersonation secret used by dsh-host.js to mint sessions, and the new password is persisted to <dataDir>/custom/admin-password.txt.

  • lowShell pipeline built by string interpolation in killOrphanChildrensrc/runner.js:211

    Command execution through /bin/bash with an interpolated single-quoted path. The interpolated value derives from __dirname (package install path), not from request/config data, so it is not attacker-controlled in a normal install; it only becomes injectable if the plugin is installed under a path containing a single quote. Triggered automatically on reconcile/start.

  • lowRunner auto-runs npm install from a computed parent directory with lifecycle scripts enabledsrc/runner.js:180

    On startup, if vendored deps are missing, the plugin silently hits the npm registry and runs install scripts (comment states npm install scripts are intentionally allowed for better-sqlite3). The cwd resolves to the plugin's grandparent (typically the profile's node_modules scope, not the plugin package), so the install is not scoped to the plugin and can modify/refresh packages outside it, widening the supply-chain/execution surface without operator action.

GET /status returns the plaintext Gogs admin password before any dsh-session check and PUT /settings lets any dsh session rotate it; shell/npm helpers add lower risk.

Rule: the dynamic audit can only raise risk, never lower it (raise-only, never an exemption); a wrong raise is withdrawn by human review and the tier falls back to the static verdict. Overall verdict = the stricter of the two layers.

Disclaimer: the static scan and the dynamic security audit are both automated analysis, not a security guarantee. Always review what you install.

Activity

Last commit 2026-10-09 · activity: Active

• Repo created: 2026-09-10

• Stars: ★ 1 · Forks: 0

• Health: Active — committed within last 30 days

Source

GitHub: github.com/weibaohui/dsh-git-server

Was this page helpful?