CIO Influence
CIO Influence News IT and DevOps Security

Legit Security Discovers and Helps Remediate CI/CD Vulnerabilities in Google Open-Source Projects

Legit Security Discovers and Helps Remediate CI/CD Vulnerabilities in Google Open-Source Projects

Legit Security, a cyber security company with an Application Security Posture Management platform that helps organizations deliver fast and secure software releases, announced that it discovered Continuous Integration/Continuous Delivery (CI/CD) security vulnerabilities in open-source projects from Google. The Legit Security Research Team found a vulnerability leveraging “GitHub environment injection” that allows attackers to take control of a vulnerable project’s GitHub Actions CI/CD pipeline. In this case, any GitHub user could exploit the vulnerability found in the Google Orbit project to modify the project’s source code, steal secrets, move laterally inside an organization and ultimately initiate a SolarWinds-like software supply chain attack. Google acknowledged and fixed the vulnerabilities after disclosure by Legit Security. For an in-depth description of the vulnerability and information on how to protect your organization, please visit the technical disclosure blog.

GitHub Actions is part of the extremely popular GitHub source code management system at the heart of many organization’s software supply chains and used by software developers globally.The recently discovered vulnerability relates to GitHub’s special environment variables file called “GITHUB_ENV”, which is used to control the pipeline container’s environment variables. The vulnerable project had a GitHub Actions workflow that wrote untrusted user input into the GITHUB_ENV file.

CIO INFLUENCE: General Data Protection Regulation (GDPR) Anniversary

Legit Security’s Research Team discovered that a specially crafted payload written to this file could allow an attacker to execute code on the target pipeline and thereby modify the source code or compromise the repository itself. This attack can be initiated by any GitHub user and is very easy to implement just by creating a pull request. The simple act of submitting the request will trigger the vulnerable build action and carry out a successful compromise. The attacker does not need a code review approval from the maintainer since the vulnerable build action is running on the pull request before the code is merged.

The Legit team disclosed these issues via Google’s vulnerability disclosure program, along with remediation guidelines, and verified that these vulnerabilities weren’t exploited by a malicious actor. The Google project vulnerability was remediated quickly and is now safe.

CIO INFLUENCE: Nextira Selected by Ansys Technology Partner Program to Support Customers Implementing Ansys Gateway Powered by AWS

Unfortunately, there are many other projects using GitHub Actions that are susceptible to this same attack. Since using the GITHUB_ENV file is currently the widely accepted way to change environment variables in GitHub Actions, many repositories are using workflows that write untrusted data into this file, leaving them exposed these potential supply chain attacks.

This type of vulnerability joins a large number of other disclosed vulnerabilities and successful supply chain attacks targeting popular open-source libraries.The Legit Security Research Team has previously discovered a wide range of vulnerabilities in popular Source Code Management systems including GitHub, as well as other Software Development Lifecycle Management (SDLC) systems and infrastructure commonly found in an organization’s software supply chain.

CIO INFLUENCE: CIO Influence Interview with Pete Lilley, Vice President and GM at Instaclustr

[To share your insights with us, please write to sghosh@martechseries.com]

Related posts

LMS365 Partners With Envision IT to Deliver Training to the Extended Enterprise

CIO Influence News Desk

Digitools Consulting, LLC Announces Digitools Consulting, LLC on Salesforce AppExchange, the World’s Leading Enterprise Cloud Marketplace

PR Newswire

G12 Communications Brings PSTN Connectivity to Customers of Major CCaaS Providers