Skip to content

Docker container runs as default root user #35

@driesejr

Description

@driesejr

Find more live information in Aikido here: https://app.aikido.dev/queue?sidebarIssue=16692888&groupId=39961&sidebarIssueTask=1526647&sidebarTab=tasks

Scope

This task includes issues in the following code repository:

TLDR

By default, containers are run with root privileges and also run as the root user inside the container. Running the app as root gives a hacker who was able to hack the application instant root access to the Docker host, which could help them to escalate a hack.

How to fix

Add 'USER username' to the end of your file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions