Connect with us
X
Categories:

Technology

GitLab fixes RCE bug in GitHub import function

Published

on

GitLab fixes RCE bug in GitHub import function
Share this post:

A vulnerability in GitLab allowed attackers to stage various attacks against GitLab servers, including the cloud-hosted GitLab.com platform.

The bug, reported by security researcher ‘yvvdwf’, was caused by the way GitLab imports data from GitHub, which could be exploited to run commands on the host server.

Unsafe imports

GitLab uses Octokit, a library that provides an interface to import data from the GitHub API. To retrieve and present its results, Octokit uses the HTTP client library Sawyer.

However, GitLab directly used the Sawyer results returned by Octokit without sanitizing them, which provided opportunities to insert malicious commands.

Yvvdwf found that one of the parameters used in the import function was prone to command injections against GitLab’s Redis database.

RCE, information theft, and more

On standalone GitLab installations, an attacker could exploit the command injection bug to escalate from Redis to Bash and send commands to the operating system. Any potential attacker would have remote code execution (RCE) access to the host with the privileges of the host process.

While the RCE exploit did not work on GitLab.com, yvvdwf was able to use other Redis commands to replicate data from GitLab.com to a standalone server with a public IP. They were also able to poison GitLab projects through the same mechanism and make them inaccessible.

An attacker with a standalone GitLab installation and an API access token could use the exploit to steal information, inject malicious code, and perform other malicious actions against GitLab.com.

Protecting GitLab servers

The vulnerability was assigned CVE-2022-2884 with a critical base score of 9.9 in the Common Vulnerability Scoring System.

RECOMMENDED  Apache Commons Text RCE: Similar to Log4Shell, but with "far reduced" exposure risk

GitLab has already patched the issue in GitLab.com and published a critical security release for GitLab Community Edition and Enterprise Edition.

All users are advised to upgrade their GitLab installation. For organizations that can’t upgrade right away, GitLab advises them to secure their installation by disabling imports until they can patch their system.

While GitLab users will be safe by using the cloud or updated self-hosted version of the platform, other services that use Octakit to interact with GitHub should be wary and make sure that they perform the right checks around the data they pass on and receive through the library.


Get More Stories Like This On: Facebook: @AllNaijaEntertainment, Twitter: @AllNaijaEntertainment
Lotus Car UK
Automobile2 days ago

UK Brand Lotus Lowers Production Targets Due To Import Tariffs

Electric G-Wagon
Automobile2 days ago

Electric G-Wagon Launches In UK With A Price Tag Of Over £180,000

Olumide Akpata
News2 days ago

Edo guber: I answer to no godfather only Edo people – Olumide Akpata declares

Why Victor Osimhen of Napoli made fun of Verona supporters with a "funny" celebration
Sports2 days ago

Chelsea: Al Ahli agree €80m fee for Osimhen, player to sign £646,000-a-week deal

Simon Ekpa
News4 days ago

Simon Ekpa fire back at Nigeria govt over extradition him from Finland

Atiku Abubakar
Education4 days ago

Under 18s limit for university, WAEC, NECO policy – Atiku react

Education4 days ago

WAEC, NECO will no longer allow under 18 – Nigerian Govt

Godwin Obaseki
News4 days ago

Group tell Obaseki to beg Oba of Benin for forgiveness

Lagos Red Line Train
Automobile4 days ago

Lagos Red Line To Begin Free Operation on Wednesday

PDP logo
News5 days ago

LG Election: Benue PDP Release Guidelines

WHO World Health Organization
Health5 days ago

WHO Unveil Budget For Monkey Pox

GDP
Business5 days ago

Nigeria’s GDP grew by 3.19% in Q2 2024 amid hardship

NYSC Service Corp Members
Education5 days ago

NYSC launches redeployment option for married female corps members

Black Market
News5 days ago

Fuel Scarcity: FRSC sends warning motorists against travelling with petrol in jerrycans

News5 days ago

Imo APC ward chairman arrested for allegedly selling FG’s palliative

Farm land
News5 days ago

Farmers lament in Adamawa as thieves plunder farms, steal crops

Chinese EVs
Automobile5 days ago

Market: Chinese EVs Are Thriving In Latin American Countries

VW Golf R year 20 Edition
Automobile5 days ago

Huge Fine Plies European Car Manufacturers

Electric Vehicle Charging
Automobile7 days ago

South Korea Bans Fully Charged Electric Vehicles Entering Underground Garages

Non-Tesla vehicles with CCS compatible models include the BMW i3, Kia e-Niro, and Jaguar I-Pace
Automobile7 days ago

Tesla Recalls Over 9,000 Cars In The US To Avoid Parts Falling Off the Roof

Volkswagen
Automobile7 days ago

Volkswagen Lowers Battery Production Targets

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids
Automobile1 week ago

Market Study: Electric Cars Are Too Expensive

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids
Automobile1 week ago

China Considers Import Tariffs On Foreign Vehicles

Everything To Know About Nigeria New Presidential Jet, Previous Users, Age & Cost
Automobile1 week ago

Everything To Know About Nigeria’s New Presidential Jet, Previous Users, Age & Cost

BMW Becomes Europe Most Popular EV Brand Overtakes Tesla
Automobile1 week ago

BMW Becomes Europe’s Most Popular EV Brand Overtakes Tesla

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids
Automobile1 week ago

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids

Benefits of Partnering with a Managed Security Service Provider
Technology3 months ago

Benefits of Partnering with a Managed Security Service Provider

Diya Cant Have Enough
Music4 months ago

[Music] Diya – “Can’t Have Enough” Feat G-Wills

Email Newsletter Marketing Online Website
Technology4 months ago

The Vital Role of Email Fraud Detection Software

Roisea: Most Advanced Crypto Trading Platform for Bitcoin
Business5 months ago

The Role of Regulation in Crypto Investment: Navigating Legal Frameworks

Volatility in Commodities and How to Deal with It
Business5 months ago

Volatility in Commodities and How to Deal with It

Expanding Living Space
Lifestyle7 months ago

Expanding Living Space: Prefabricated Workshop Building Kits for Extra Rooms

BeBe Winans
Lyrics7 months ago

BeBe Winans – It All Comes Down to Love [Lyrics]

BeBe Winans
Music7 months ago

[Music] BeBe Winans – It All Comes Down to Love

The Countdown Begins to the Tournament That Has It All
ANE Football Analytical8 months ago

AFCON 2023: A Sporting Spectacle Set to Captivate the World

Litecoin: What Makes It The Crypto Winner?
Technology9 months ago

Runny Inflation Can Drive Cryptocurrency Adoption

Black and White French Bulldog puppies Frenchie Joy
Lifestyle9 months ago

Black and White French Bulldog puppies Frenchie Joy

3 Serious Reasons to Keep Your Teenager Away From Social Media
Lifestyle9 months ago

3 Serious Reasons to Keep Your Teenager Away From Social Media

Boxing vs MMA What Makes Them So Different
Sports10 months ago

Boxing vs MMA: What Makes Them So Different

Roisea: Most Advanced Crypto Trading Platform for Bitcoin
Technology10 months ago

NFTs and Intellectual Property Rights: Shaping Creative Ownership

VW Golf R year 20 Edition
Automobile5 days ago

Huge Fine Plies European Car Manufacturers

Chinese EVs
Automobile5 days ago

Market: Chinese EVs Are Thriving In Latin American Countries

Farm land
News5 days ago

Farmers lament in Adamawa as thieves plunder farms, steal crops

Non-Tesla vehicles with CCS compatible models include the BMW i3, Kia e-Niro, and Jaguar I-Pace
Automobile7 days ago

Tesla Recalls Over 9,000 Cars In The US To Avoid Parts Falling Off the Roof

Electric Vehicle Charging
Automobile7 days ago

South Korea Bans Fully Charged Electric Vehicles Entering Underground Garages

Black Market
News5 days ago

Fuel Scarcity: FRSC sends warning motorists against travelling with petrol in jerrycans

NYSC Service Corp Members
Education5 days ago

NYSC launches redeployment option for married female corps members

Volkswagen
Automobile7 days ago

Volkswagen Lowers Battery Production Targets

News5 days ago

Imo APC ward chairman arrested for allegedly selling FG’s palliative

GDP
Business5 days ago

Nigeria’s GDP grew by 3.19% in Q2 2024 amid hardship

WHO World Health Organization
Health5 days ago

WHO Unveil Budget For Monkey Pox

PDP logo
News5 days ago

LG Election: Benue PDP Release Guidelines

Lagos Red Line Train
Automobile4 days ago

Lagos Red Line To Begin Free Operation on Wednesday

Education4 days ago

WAEC, NECO will no longer allow under 18 – Nigerian Govt

Why Victor Osimhen of Napoli made fun of Verona supporters with a "funny" celebration
Sports2 days ago

Chelsea: Al Ahli agree €80m fee for Osimhen, player to sign £646,000-a-week deal

Atiku Abubakar
Education4 days ago

Under 18s limit for university, WAEC, NECO policy – Atiku react

Olumide Akpata
News2 days ago

Edo guber: I answer to no godfather only Edo people – Olumide Akpata declares

Electric G-Wagon
Automobile2 days ago

Electric G-Wagon Launches In UK With A Price Tag Of Over £180,000

Godwin Obaseki
News4 days ago

Group tell Obaseki to beg Oba of Benin for forgiveness

Simon Ekpa
News4 days ago

Simon Ekpa fire back at Nigeria govt over extradition him from Finland

Lotus Car UK
Automobile2 days ago

UK Brand Lotus Lowers Production Targets Due To Import Tariffs

ANE Billboard Hots