Vulnerability in BaseAI project

Open
#162 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
cli, security

Research direction

Start at the Wrangler CLI path for wrangler pages deploy, focusing on handling of the --commit-hash parameter during deployment. Trace where that value reaches the shell command, then add validation or sanitization and regression coverage demonstrating that command injection is not possible.

Written by the indexing model from the issue text.

Description

Description

While working on BaseAI project, I identified a security vulnerability in the Wrangler CLI during the deployment process. The vulnerability exists in the wrangler pages deploy command and is related to improper handling of the --commit-hash parameter. This parameter is directly passed into a shell command without proper validation or sanitization, which leads to a command injection vulnerability (CWE-78).

CVE Report
CVE Link

Code example

No response

Additional context

No response

Dominant language
TypeScript
Stars
1.3k
Forks
112
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CommandCodeAI/BaseAI

All issues in CommandCodeAI/BaseAI

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.