Credential Access
High
- Category
- Privilege Escalation
- Content
mysql: image: mysql:8.0 environment: # ⚠️ 生产环境:使用强密码,通过 .env 文件或 secrets 注入 MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-changeme} MYSQL_DATABASE: teamgram volumes:- Confidence
- 95% confidence
- Finding
- The deployment example permits a dangerous default credential via `MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-changeme}`, which can leave production systems running with a trivial root password if the environment variable is unset. In this context, the same guide also exposes multiple services and includes other weak defaults, making insecure copy-paste deployment more likely and increasing the chance of database compromise.
