Skip to content

Validate package name in Search - #637

Open
sfc-gh-ikryvanos wants to merge 1 commit into
mainfrom
ikryvanos/packages-search-name-validation
Open

Validate package name in Search#637
sfc-gh-ikryvanos wants to merge 1 commit into
mainfrom
ikryvanos/packages-search-name-validation

Conversation

@sfc-gh-ikryvanos

Copy link
Copy Markdown
Collaborator

Search only checked that the package name was non-empty, unlike Install, Remove and Update which call validateField. That let values such as "--config=/path" reach repoquery as a flag (argument injection). Apply the existing validateField to req.Name in Search.

Search only checked that the package name was non-empty, unlike Install,
Remove and Update which call validateField. That let values such as
"--config=/path" reach repoquery as a flag (argument injection). Apply the
existing validateField to req.Name in Search.

Co-authored-by: Cursor <cursoragent@cursor.com>
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