A Leaked GitLab Issue Email Address Lets Anyone Push Code and Run CI Jobs as You
A leaked GitLab issue email address lets anyone push code and run CI jobs as you.
Overview
GitLab provides users with a private email address that acts as a credential for filing issues in a project. The tokenA short-lived digital pass that a server gives a logged-in user or app embedded in this address does not expire and is shared across all projects the user can access. Aikido Security discovered that anyone who obtains this address can send emails that GitLab processes as if they came from the account owner. By changing the address suffix and attaching a code patchA software update released by a developer to fix a bug or close a security flaw, an attacker can commit code to any branch the user has permission to push to. This action can also trigger CI/CDThe automated pipeline that tests, builds, and deploys software whenever developers push new code jobs that run with the user's permissionsThe specific rights granted to an account or app to read, write, or run files and services. A leaked address for a MaintainerThe developer or small team responsible for reviewing changes and publishing releases for an open-source project role can access protected branches and CI/CD secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys, while one for a Guest account is nearly useless.
Terms in this story
- token
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- patch
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
- CI/CD
- The automated pipeline that tests, builds, and deploys software whenever developers push new code. Attackers love to compromise a company's CI/CD pipeline because that build server holds cloud keys and can inject malicious code directly into official software releases. Security+ objective 4.7 lists the term
- permissions
- The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
- Maintainer
- The developer or small team responsible for reviewing changes and publishing releases for an open-source project. Supply chain attackers often target a volunteer maintainer with phishing emails or offers to help, hoping to gain publishing rights over a popular code library.
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- allowlist
- An explicit list of approved programs, IP addresses, or email senders that a system permits. A strict server allowlist lets only approved administrative tools run, so even if an attacker uploads a new malware binary the operating system refuses to launch it. Security+ objective 2.5 lists the term
- IP address
- The numerical network label assigned to a device so internet traffic knows where to reach it. Every server and router on the internet has an IP address, and defenders inspect connection logs for unfamiliar IP addresses when tracing where an attack came from.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The Hacker News website. Cite the article, not this page.
Read the full article on The Hacker News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
...private email address GitLab gives you for filing issues by email is a... Found by reading the article; these words are close to its own - Who is affected: "Anyone who gets it can email a patch that GitLab commits in your name..."
Copied word for word from the article - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......for filing issues by email is a credential. Anyone who gets it can email..." Found in the opening sentences - Security+ 4.7 Explain the importance of automation and orchestration related to secure operations.
"......push to, including main, and can start CI/CD jobs that run as you." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Skill in recognizing technical information that may be used for leads to enable remote operations (data includes users, passwords, email addresses, IP ranges of the target, frequency in DNI behavior, mail servers, domain servers, SMTP header information).
"Email Address Lets Anyone Push Code and Run CI Jobs as You..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of threats to OPSEC when installing, using, modifying, and uninstalling tools.
"...token applies to every project the account can open..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- GitLab issue email's only security is obscurity
- GitLab Email Token Lets Attackers Push Code to Main and Execute CI/CD Jobs
- GitLab Email Addresses Can Be Weaponized for Supply Chain Attacks
- GitLab Email Feature Vulnerability Lets Attackers Push Code Into Private Repositories
- Send GitLab an email, push to main