Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add input sanitization when runnning RunExecutable #5241

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

phgermanov
Copy link
Contributor

Description

Checklist

  • Tests
  • Documentation
  • Inner source library needs updating

}

// sanitizeParams removes any potentially dangerous characters from command parameters
func sanitizeParams(params []string) ([]string, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to write functions for all these cases? is there a Go module which can take care of this?

Copy link
Member

Choose a reason for hiding this comment

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

Also, are these checks sufficient?

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.

2 participants