Skip to content

Command injection in Thor::Actions#get #514

@ecneladis

Description

@ecneladis

Open-uri's open used in Thor::Actions#get allows executing system commands [1].

Documentation does not warn that source parameter is vulnerable to malicious input.

Example:

get "|uname -a > cmd_exec_test;\nhttps://gist.github.com", "/tmp/test_123"

[1] http://sakurity.com/blog/2015/02/28/openuri.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions