Home web3.0 GitHub Actions Security Vulnerability Compromises Notable Open-Source Projects

GitHub Actions Security Vulnerability Compromises Notable Open-Source Projects

Aug 16, 2024 am 12:27 AM
github Risks Token Leak Security Flaw Open-Source Projects

A security vulnerability in GitHub Actions has compromised several notable open-source projects maintained by companies like Google, Microsoft, AWS, and Red Hat.

GitHub Actions Security Vulnerability Compromises Notable Open-Source Projects

A critical security vulnerability in GitHub Actions has led to the exposure of authentication tokens for several high-profile open-source projects maintained by companies like Google, Microsoft, AWS, and Red Hat. This flaw has enabled unauthorized access to private repositories and the insertion of malicious code.

GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that is deeply integrated with GitHub. It was launched in 2018 and allows users to automate their build, test, and deployment pipelines directly within their GitHub repositories.

This vulnerability was identified by Palo Alto Networks' Unit 42, which discovered that these tokens were unintentionally becoming public. Surprisingly, despite the gravity of the situation, GitHub has decided not to rectify the underlying problem. Instead, they have recommended that users take steps to secure their workflow artifacts. This decision has left many users vulnerable and frustrated.

Unit 42's investigation highlighted several issues that can contribute to this vulnerability, including insecure default configurations and user errors. One primary issue involves the ‘actions/checkout' feature, which defaults to storing the GitHub token in the local .git directory. If this directory is included in artifact uploads, the token becomes exposed.

This vulnerability also affects other sensitive information, such as API keys and cloud access tokens, which might be leaked through these artifacts. Build outputs and test results are stored for up to 90 days and can be accessed by anyone who has read permissions to the repository.

Another vulnerability is encountered when CI/CD pipelines store GitHub tokens in environment variables. If any actions or scripts within the workflow log these environment variables, they can be unintentionally exposed. For example, enabling the ‘CREATE_LOG_FILE' property in the ‘super-linter' action can log these variables.

The exploitation of this vulnerability can vary depending on the type of token that is exposed. For instance, if a GitHub token is leaked, it can be used to extract credentials from log files and use them before they expire. GitHub tokens are typically valid for the duration of their workflow jobs, while the ‘Actions_Runtime_Token,' which is used for caching and artifact management, remains valid for six hours. This provides a limited window of opportunity for attackers.

However, the research conducted by Unit 42 also showed that these tokens include access to third-party cloud infrastructures, not just GitHub. This raises further security concerns, as artifactual data, containing these tokens, were found to be publicly accessible for up to three months. Malicious actors could automate the retrieval of artifacts, extract tokens, and use them to push malicious code to repositories.

To demonstrate this vulnerability, the researchers created a branch in an open-source project, showing the potential for remote code execution (RCE) on the runner handling the malicious artifact. They also developed a proof of concept (PoC) action to audit the source directory for secrets, blocking artifact uploads if any secret exposure risk was detected.

The findings of this research were submitted to GitHub's bug bounty program, but the issue was classified as informational, suggesting that users bear the responsibility to secure uploaded artifacts. Despite the limited response from GitHub, the insights were shared with Cyber Threat Alliance (CTA) to allow members to deploy protective measures and thwart potential cyber threats.

The above is the detailed content of GitHub Actions Security Vulnerability Compromises Notable Open-Source Projects. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1242
24
Let's talk about how to delete a folder in the GitHub repository Let's talk about how to delete a folder in the GitHub repository Mar 27, 2023 am 11:33 AM

GitHub is a very popular version control system that allows users to store and share their code bases on the Internet. It is one of the must-have tools for programmers. However, sometimes we may need to delete a folder in the GitHub repository. This article will introduce how to delete a folder in the GitHub repository.

Dogecoin's Metaverse Leap: Unveiling Untapped Potentials and Hidden Challenges Dogecoin's Metaverse Leap: Unveiling Untapped Potentials and Hidden Challenges Nov 10, 2024 pm 12:40 PM

As Dogecoin makes its ambitious entry into the Metaverse, it raises several thought-provoking questions and uncovers new dimensions of what this move could mean

How to install GitHub Copilot on Windows 11/10 How to install GitHub Copilot on Windows 11/10 Oct 21, 2023 pm 11:13 PM

GitHubCopilot is the next level for coders, with an AI-based model that successfully predicts and autocompletes your code. However, you might be wondering how to get this AI genius on your device so that your coding becomes even easier! However, using GitHub isn't exactly easy, and the initial setup process is a tricky one. Therefore, we created this step-by-step tutorial on how to install and implement GitHub Copilot in VSCode on Windows 11, 10. How to install GitHubCopilot on Windows There are several steps to this process. So, follow the steps below now. Step 1 – You must have the latest version of Visual Studio installed on your computer

Let's talk about how to set up a protected branch and submit a PR in Gitlab Let's talk about how to set up a protected branch and submit a PR in Gitlab Mar 30, 2023 pm 09:01 PM

This article is about learning Gitlab, talking about how to set up a protected branch and submit a PR to your leader. I hope it will be helpful to everyone!

Let's talk about how to convert your GitHub projects into QR codes Let's talk about how to convert your GitHub projects into QR codes Mar 27, 2023 am 11:33 AM

In modern software development, GitHub is one of the most popular project hosting platforms. It provides developers with a convenient platform for storing and managing their open source projects. An interesting feature of GitHub is converting project links into QR codes. This article will introduce you how to convert your GitHub project into a QR code.

Git installation process on Ubuntu Git installation process on Ubuntu Mar 20, 2024 pm 04:51 PM

Git is a fast, reliable, and adaptable distributed version control system. It is designed to support distributed, non-linear workflows, making it ideal for software development teams of all sizes. Each Git working directory is an independent repository with a complete history of all changes and the ability to track versions even without network access or a central server. GitHub is a Git repository hosted on the cloud that provides all the features of distributed revision control. GitHub is a Git repository hosted on the cloud. Unlike Git which is a CLI tool, GitHub has a web-based graphical user interface. It is used for version control, which involves collaborating with other developers and tracking changes to scripts and

GitHub's latest AI tool helps users automatically fix bugs and vulnerabilities in their code GitHub's latest AI tool helps users automatically fix bugs and vulnerabilities in their code Mar 21, 2024 pm 04:01 PM

Today, GitHub launched a new "Code Scan" feature (preview) for all AdvancedSecurity (GHAS) licensed users, designed to help users find potential security vulnerabilities and coding errors in GitHub code. This new feature leverages Copilot and CodeQL to detect potential vulnerabilities or errors in your code, classify them and prioritize fixes. It's important to note that "code scanning" will consume GitHubActions minutes. According to the introduction, "code scanning" can not only prevent developers from introducing new problems, but can also trigger scans based on specific dates and times, or when specific events (such as pushes) occur in the repository. If AI finds you

Let's talk about how to find folders on GitHub Let's talk about how to find folders on GitHub Mar 27, 2023 am 11:33 AM

GitHub is an extremely popular open source code repository used by many programmers to manage their own code bases and to browse other developers' code bases. Projects on GitHub usually include one or more folders, but when many folders exist, sometimes you may need to find a specific folder. This article will show you how to find folders on GitHub to help you browse and manage projects easily.