Security News > 2021 > August > Potential RCE Flaw Patched in PyPI’s GitHub Repository

Potential RCE Flaw Patched in PyPI’s GitHub Repository
2021-08-02 16:53

A vulnerability in the GitHub Actions workflow for PyPI's source repository could be exploited to perform a malicious pull request and eventually execute arbitrary code on pypi.org, according to a warning from a Japanese security researcher.

The workflow did not verify the pull request author, anyone could create a pull request with a specific name and have the workflow to process it.

What the researcher discovered was that the code responsible for printing branch lists of pull requests contained a vulnerability that could be exploited to execute commands and "Leak GitHub Access Token with write permission against the pypa/warehouse repository."

As the PyPI security team points out, an attack would be difficult to identify, because the attacker can use a pull request that is not malicious.

Thus, even if a PyPI administrator inspects the attacker's pull request, they would approve it, as it would not attempt to exploit any vulnerability.

The PyPI security team patched the security hole last week, the same day that RyotaK reported it.


News URL

http://feedproxy.google.com/~r/securityweek/~3/edgkIROu4J0/potential-rce-flaw-patched-pypi%E2%80%99s-github-repository

Related vendor

VENDOR LAST 12M #/PRODUCTS LOW MEDIUM HIGH CRITICAL TOTAL VULNS
Github 10 2 30 29 14 75