[medium] semgrep: Service 'mailserver' is running with a writable root filesystem. This may allow malicious applications to download and run additional payloads, or modify container files. If an application inside a container has to save something temp… #54
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
medium Finding
Scanner: semgrep
Severity: medium
Rule: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service
Description
Service 'mailserver' is running with a writable root filesystem. This may allow malicious applications to download and run additional payloads, or modify container files. If an application inside a container has to save something temporarily consider using a tmpfs. Add 'read_only: true' to this service to prevent this.
Location
File:
/tmp/compliance-scanner/repos/Compliance Scanner Agent/deploy/docker-compose.mailserver.yml(line 4)Code
Remediation
Add
read_only: trueto the mailserver service in docker-compose.yml.Fingerprint:
ee24671718f2efe314a2119938f522f93fb610473700cda0404df38b9c00ff87Generated by compliance-scanner
Labels: severity:medium, scanner:semgrep, compliance-scanner