Description
CoreShop is a Pimcore enhanced eCommerce solution. In versions 5.0.1 through 5.1.0-beta.1,, the GitHub Actions workflow (`.github/workflows/static.yml`) uses the `pull_request_target` trigger but dangerously checks out the unverified code from the pull request head (`ref: ${{ github.event.pull_request.head.ref }}`). Subsequently, it executes a script (`bin/console`) from this untrusted checkout. This allows any external attacker to achieve Remote Code Execution (RCE) on the GitHub Actions runner simply by submitting a malicious Pull Request. Also known as a "Pwn Request" vulnerability. As of time of publication, `pull_request_target` is still in the file.
Problem types
CWE-94: Improper Control of Generation of Code ('Code Injection')
Product status
References
github.com/...reShop/security/advisories/GHSA-q58j-g3f4-h26h
github.com/...reShop/security/advisories/GHSA-q58j-g3f4-h26h
github.com/...ommit/cc1e3f547228ec5ebfc1dc0472f9a3cc5f4137a4
github.com/...blob/5.1.0-beta.1/.github/workflows/static.yml