Worker container escape lead to arbitrary file reading in host machine [again]
Program: Semmle
Bug Type: path traversal
Bounty: 2000
Date: 2019-09-18
path-traversal
privilege-escalation
Summary
The researcher discovered that when both lgtm.yml and .lgtm.yml exist in a project, LGTM processes only lgtm.yml but keeps .lgtm.yml in the build directory. By creating a symlink named .lgtm.yml pointing to a host machine file, an attacker can cause LGTM to expose arbitrary host files after a successful build (e.g., /etc/passwd). This enables sensitive information disclosure from the underlying host.