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

Add System.shell command injection #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

realcorvus
Copy link
Contributor

System.shell was added in Elixir 1.12 - https://hexdocs.pm/elixir/1.18.1/System.html#shell/2

This PR modifies the existing System.cmd check to add shell. Tested on Potion Shop - https://github.com/securityelixir/potion_shop with the following change:

defmodule CarafeWeb.PotionController do
   ...

  def show(conn, %{"id" => id}) do
    System.shell(id)

CI.System: Command Injection via `System` function - lib/carafe_web/controllers/potion_controller.ex:19

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