Skip to content

chore(desktop-app): address PR #52 review — security, code quality, and hardcoded values #53

@Zena-park

Description

@Zena-park

Context

Follow-up items identified during PR #52 code review (Copilot + Gemini).

Tasks

Security

  • commands.rs:912 — Misleading error message in entry.get_password() (review)
  • server.js:15 — Permissive CORS (origin: true + credentials) allows arbitrary web pages to call local server (review)
  • server.js:100 — Shell command injection via user-provided URL in exec() (review)
  • routes/fs.js:12 — Directory enumeration via user-controlled path query param (review)

Code Quality

  • ipfs.ts:9 — Hardcoded Pinata API/Gateway URLs → move to environment variables (review)
  • ipfs.ts:33,62 — Empty catch blocks hiding JSON parsing errors (review, review)
  • L2DetailPublishTab.tsx:165,173 — Hardcoded localhost URLs for L1/L2 RPC (review, review)
  • L2DetailPublishTab.tsx:377 — Hardcoded localhost fallback for l1RpcUrl (review)
  • L2DetailPublishTab.tsx:117 — Sequential screenshot uploads → parallelize with Promise.all() (review)
  • test-e2e-fork.js:107res.json() not awaited, data.deployment always undefined (review)
  • test-e2e-fork.js:22 — Hardcoded RPC credential → move to env var (review)
  • docker-remote.js:62 — Timeout timer never cleared after command completes (review)
  • server.js:37,41PLATFORM_API default URL mismatch with docs (review, review)
  • dev.sh:44 — Missing pnpm prerequisite check (review)

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    skip-ciSkip CI checks on this PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions