Skip to content

Escaping of Environment Variables makes comprehensive escaping harder #27

Description

@uchi-mata

Hi,

the escaping of passed environment variables applies additional escaping to " and `:
https://github.com/adamwiggins/rush/blob/master/lib/rush/box.rb#L85

E.g. if you escape ` and $ already in advance, an additional escaping will be applied to `, resulting in \\`, which does not escape ` but \. This can result in unintentionally executed commands surrounded by ` which were already escaped and thus assumed to be safe.

The repository seems large inactive, I still wanted to leave this issue in case it is helpful for someone.

Thanks,
Matthias

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions