Skip to content

fix: sanitise pid parameter#31

Merged
billiegoose merged 1 commit intopkrumins:masterfrom
robcresswell:fix/command-injection
Dec 11, 2019
Merged

fix: sanitise pid parameter#31
billiegoose merged 1 commit intopkrumins:masterfrom
robcresswell:fix/command-injection

Conversation

@robcresswell
Copy link
Copy Markdown
Contributor

This patch adds a simple check to the process ID passed in, ensuring it is a number, and throwing an error otherwise. The aim is to fix the issue explained here:

Fixes: #30

This patch adds a simple check to the process ID passed in, ensuring it
is a number, and throwing an error otherwise. The aim is to fix the
issue explained here:

- https://hackerone.com/reports/701183
- https://snyk.io/vuln/SNYK-JS-TREEKILL-536781

Fixes: #30
Copy link
Copy Markdown
Collaborator

@billiegoose billiegoose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Command Injection Reported

2 participants