dotnet / dotnet/dotnet-docker

Ubuntu Resolute base image contains world-writable /var/lib/pebble/default directory

Open
#7,054 6 comments 0 reactions 0 assignees View on GitHub
area-external
Dominant language
Dockerfile
Stars
4.9k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
26

Description

The `ubuntu.azurecr.io:resolute` base image ships with `/var/lib/pebble/default` as a world-writable directory without the sticky bit set. This causes the `VerifyInsecureFiles` test to fail for all .NET 11.

`docker run --rm -u root --entrypoint /bin/sh ubuntu.azurecr.io/ubuntu:resolute -c "find / -xdev -type d \( -perm -0002 -a ! -perm -1000 \)"`

Output:
```
/var/lib/pebble/default
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.