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

Improve Security #61

Open
GhostofGoes opened this issue May 29, 2020 · 0 comments
Open

Improve Security #61

GhostofGoes opened this issue May 29, 2020 · 0 comments
Labels
enhancement General improvements or adding support for new OS platforms good first issue help wanted security General security issues/weaknesses. Please do NOT report vulnerabilities via Issues!

Comments

@GhostofGoes
Copy link
Owner

GhostofGoes commented May 29, 2020

Need to spend some quality time evaluating the security boundaries of the package and looking for issues. Anything found should either be a) fixed or b) risk accepted and clearly documented for end users.

SECURITY CONCERNS:

  • Cache file is untrusted (refactor-specific)
  • Results from command invocations are untrusted
  • Double-check validation of results before returning
  • Validate arguments to get_mac_address() to avoid command injection
    • Data types
    • IPv4/IPv6 addresses
    • Interface names
  • Path traversal ( Path traversal mitigation #51 )
  • Better document security concerns/boundaries
    • Ability to make network requests in (document instances)
    • Commands that are executed
    • File reads
  • Environment being passed to subprocesses + env variables used (for instance, we're invoking subprocess to a potentially untrusted executable with our parent environment, which could include secret tokens like API keys or credentials)
  • Modifying PATH with /sbin and /usr/sbin

Contributors: please feel free to help out with any of these! Open a PR and mention this issue in the description of the PR. It can be as simple as documentation of the risk or raising user awareness.

The majority of developers using this package are not security experts, and many likely have little or no training or experience with security issues. Therefore any documentation shouldn't assume knowledge and should take the opportunity to educate (when feasible).

@GhostofGoes GhostofGoes changed the title Security Analysis Improve Security May 29, 2020
@GhostofGoes GhostofGoes added security General security issues/weaknesses. Please do NOT report vulnerabilities via Issues! enhancement General improvements or adding support for new OS platforms labels Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement General improvements or adding support for new OS platforms good first issue help wanted security General security issues/weaknesses. Please do NOT report vulnerabilities via Issues!
Projects
None yet
Development

No branches or pull requests

1 participant