{"id":4447,"date":"2024-07-12T15:24:14","date_gmt":"2024-07-12T20:24:14","guid":{"rendered":"https:\/\/www.darkreading.com\/application-security\/-gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln"},"modified":"2024-07-12T15:24:14","modified_gmt":"2024-07-12T20:24:14","slug":"gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln","status":"publish","type":"post","link":"https:\/\/ddi.mohflo.net\/index.php\/2024\/07\/12\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln\/","title":{"rendered":"GitLab Sends Users Scrambling Again With New CI\/CD Pipeline Takeover Vuln"},"content":{"rendered":"<div class=\"media_block\"><a href=\"https:\/\/i0.wp.com\/eu-images.contentstack.com\/v3\/assets\/blt6d90778a997de1cd\/blte62d207760d3d06c\/66917e25006f0903c69d24bc\/gitlab_Lori_Butcher_shutterstock.jpg?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?w=640&#038;ssl=1\" class=\"media_thumbnail\"><\/a><\/div>\n<div><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?w=640&#038;ssl=1\" class=\"ff-og-image-inserted\"><\/div>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">For the second time in less than a month GitLab has users scrambling to address a critical vulnerability in the community and enterprise editions of its DevOps platform that could impact continuous integration\/continuous development (CI\/CD) pipelines.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">A <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/about.gitlab.com\/blog\/2019\/07\/12\/guide-to-ci-cd-pipelines\/\" rel=\"noopener\">GitLab CI\/CD pipeline<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"> basically automates build, test and deployment steps in a software development lifecycle. As GitLab describes it: &#8220;At its most basic level, a pipeline gets code from point A to point B. The quicker and more efficient the pipeline is, the better it will accomplish this task.&#8221; Developers can trigger the automated workflow via code commits, merge requests or scheduled jobs.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The vulnerability, identified as <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/about.gitlab.com\/releases\/2024\/07\/10\/patch-release-gitlab-17-1-2-released\/#an-attacker-can-run-pipeline-jobs-as-an-arbitrary-user\" rel=\"noopener\">CVE-2024-6385,<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"> gives attackers a way to run a pipeline in the context of any user within the GitLab system.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">&#8220;This means that an attacker can potentially hijack the identity of any user, gaining unauthorized access to their projects, data, and code repositories,&#8221; says Howard Goodman, senior technical director at Skybox Security. &#8220;This can lead to a variety of malicious activities, such as injecting malicious code, accessing sensitive information, or disrupting the normal operations of development pipelines.&#8221;<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The bug has a severity rating of 9.6 out of a maximum possible 10 on the CVSS scale, and affects GitLab CE\/EE versions 15.8 prior to 16.11.6, 17.0 prior to 17.0.4, and 17.1 prior to 17.1.2.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">GitLab urged users not to procrastinate on deploying its fix for the flaw. &#8220;This is a critical-severity issue,&#8221; the company noted in its <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/about.gitlab.com\/releases\/2024\/07\/10\/patch-release-gitlab-17-1-2-released\/#an-attacker-can-run-pipeline-jobs-as-an-arbitrary-user\" rel=\"noopener\">advisory<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">, &#8220;strongly&#8221; urging users to upgrade to the latest version as soon as possible.<\/span><\/p>\n<h2 class=\"ContentText ContentText_variant_h2 ContentText_align_left\" data-testid=\"content-text\" id=\"Similar But Not Identical GitLab Bugs\">Similar But Not Identical GitLab Bugs<\/h2>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The news comes after GitLab <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/www.darkreading.com\/application-security\/critical-gitlab-bug-threatens-software-development-pipelines\" rel=\"noopener\">disclosed CVE-2024-5655 on June 26<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">, which carries the same CVSS score of 9.8 and also gives attackers to run pipelines as arbitrary users. However, Goodman says that there are subtle differences between the two flaws.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">&#8220;CVE-2024-5655 was more focused on the exploitation through specific API calls, whereas CVE-2024-6385 involves a broader range of potential attack vectors within the GitLab CI\/CD pipeline process,&#8221; he explains. &#8220;The latter may present a wider attack surface, and potentially have more severe impact due to the range of actions an attacker can perform as any user.&#8221;<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">David Lindner, CISO at&nbsp;Contrast Security, says the new vulnerability suggests that GitLab either didn&#8217;t completely fix CVE-2024-5655 the first time around, or it discovered another path for exploiting the same kind of vulnerability. Both of these situations are pretty common in software he says, pointing to the<\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/www.darkreading.com\/cyberattacks-data-breaches\/log4j-vulnerabilities-are-here-to-stay-are-you-prepared-\" rel=\"noopener\"> Log4J vulnerability <\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">and the multiple related issues that researchers were able to dig up following its initial disclosure.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">An attacker would require a valid user account within a specific GitLab environment in order to exploit the newly discovered flaws, Lindner says. &#8220;That means a prerequisite would be having an active account in that specific&nbsp;GitLab instance, which does decrease the likelihood of successful exploit,&#8221; he notes. &#8220;This would mean insider threat would be more likely. But if any of those accounts were or are compromised, an external attacker could take advantage of that.&#8221;<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">For its part, GitLab has assessed the vulnerability as something that involves little complexity for an unprivileged attacker to exploit. &nbsp;<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">&#8220;If the attacker has detailed knowledge of the GitLab environment and the vulnerability, exploiting it could be straightforward,&#8221; Goodman says. However, the complexity of the environment itself and required knowledge may serve as a barrier to less skilled attackers, he notes. &#8220;In addition, GitLab&#8217;s security measures and monitoring can detect and mitigate such attempts if they are properly configured and actively maintained.&#8221;<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">For organizations using GitLab, this week&#8217;s vulnerability marks the third severe bug in the DevOps platform that they had to contend with in just the last two-and-a-half months. In May, the company <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/www.darkreading.com\/application-security\/critical-gitlab-bug-exploit-account-takeover-cisa\" rel=\"noopener\">disclosed a maximum severity, improper access control bug<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"> that offered attackers a way to completely take over accounts. CISA added the bug to its Known Exploited Vulnerabilities catalog following extensive exploit activity in the days following the bug&#8217;s disclosure.<\/span><\/p>\n<p><a href=\"https:\/\/www.darkreading.com\/application-security\/-gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the second time in less than a month GitLab<\/p>\n","protected":false},"author":12,"featured_media":4448,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[809],"class_list":["post-4447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-dark-reading"],"featured_image_urls":{"full":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?fit=1920%2C1080&ssl=1",1920,1080,false],"thumbnail":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?resize=150%2C150&ssl=1",150,150,true],"medium":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?fit=300%2C169&ssl=1",300,169,true],"medium_large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?fit=640%2C360&ssl=1",640,360,true],"large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?fit=640%2C360&ssl=1",640,360,true],"1536x1536":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?fit=1536%2C864&ssl=1",1536,864,true],"2048x2048":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?fit=1920%2C1080&ssl=1",1920,1080,true],"chromenews-featured":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?fit=1024%2C576&ssl=1",1024,576,true],"chromenews-large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?resize=825%2C575&ssl=1",825,575,true],"chromenews-medium":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?resize=590%2C410&ssl=1",590,410,true]},"author_info":{"display_name":"Dark Reading","author_link":"https:\/\/ddi.mohflo.net\/index.php\/author\/darkreading\/"},"category_info":"<a href=\"https:\/\/ddi.mohflo.net\/index.php\/category\/uncategorized\/\" rel=\"category tag\">Uncategorized<\/a>","tag_info":"Uncategorized","comment_count":"0","jetpack_featured_media_url":"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/07\/gitlab-sends-users-scrambling-again-with-new-ci-cd-pipeline-takeover-vuln.jpg?fit=1920%2C1080&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts\/4447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/comments?post=4447"}],"version-history":[{"count":0,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts\/4447\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/media\/4448"}],"wp:attachment":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/media?parent=4447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/categories?post=4447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/tags?post=4447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}