Skip to main content

Leaked GitLab Email Tokens Can Reach Code, Secrets and CI/CD Pipelines

Security researchers have uncovered a GitLab behavior that could let attackers use a leaked project email address to push code, trigger CI/CD jobs and reach other repositories accessible to the address owner.

Aikido Security researcher Joe Leon detailed the attack path this week in a blog post after reporting it to GitLab earlier this year. The issue involves GitLab’s incoming email token, a credential embedded in private email addresses that GitLab provides for creating issues and merge requests by email.

“The token inside this email address is essentially a fine-grained personal access token with significant access to your GitLab projects,” the report said.

GitLab’s documentation says the token never expires and warns that anyone who obtains it can create issues and merge requests as the user. GitLab also allows users to attach .patch files when creating merge requests by email. GitLab applies the patches to the named source branch or creates the branch if it does not already exist.

Aikido found that the same incoming email token appeared in addresses generated for different projects belonging to one user. The researchers said an attacker who obtained one of those addresses could change its suffix from -issue to -merge-request, attach a patch and submit code using the victim’s existing GitLab permissions.

The same mechanism can also turn a leaked email token into a path for CI/CD execution. Aikido demonstrated adding a job to .gitlab-ci.yml via an emailed patch, causing GitLab to run a pipeline as the victim. Aikido also showed how to use the same access to exfiltrate private source code, read CI/CD variables and secrets, and use a job’s CI_JOB_TOKEN to access additional GitLab resources permitted to that job token.

The attack is constrained by the victim’s existing GitLab permissions and by the attacker’s knowledge of the target project. The incoming email token does not elevate privileges. Aikido said an address tied to a Guest account would have little value for these attack paths, while one tied to a Maintainer could potentially expose protected branches and CI/CD variables, depending on the project’s configuration. Reaching another project also requires its project path and ID. GitLab exposes both for public projects, but going after a private project would require the attacker to obtain identifying information about it through another leak.

Aikido reported the behavior through HackerOne in May and said the report was initially closed as intended behavior. Aikido said it filed a confidential GitLab issue in June, after which GitLab updated its interface and documentation. A GitLab merge request opened July 28 said previous descriptions of the token were inconsistent and updated them to more accurately explain its capabilities and emphasize that the token should remain private.

So far, GitLab has responded by making the token’s capabilities and risks clearer but has not disabled the underlying email functionality. Users who believe one of these addresses has been exposed can reset the token from GitLab’s personal access token settings, which invalidates addresses containing the previous token. For organizations that rely on email-created issues or merge requests, the disclosure is a reminder that exposing those addresses can allow actions under the account owner’s existing GitLab privileges.



from DevOps.com https://ift.tt/2KQfNZy

Comments

Popular posts from this blog

One Year Later: How U.S. Winemakers Averted Disaster

One Year Later: How U.S. Winemakers Averted Disaster By Eric Asimov from NYT Food https://ift.tt/32fgBqf Wines, Shutdowns (Institutional), Layoffs and Job Reductions, Quarantine (Life and Culture)

The Agent Failure Your Approval Gate Can’t Catch

An agent that does the wrong thing leaves evidence — a bad diff, a malformed record, a customer complaint. An agent that does nothing and reports success leaves a green checkmark, and green is the one signal your incident process is built to trust. Worry more about the second failure, because everything a DevOps team owns for catching failure — exit codes, run status, alert rules, the dashboard itself — is instrumentation built for software that fails loudly. None of it fires when the failure is an absence. Andrew Filev made the strongest version of the reliability argument in these pages in July ( https://devops.com/reliability-comes-from-the-system-not-the-agent/ ): reliability is a property of the system, not the agent. “Reliability has rarely come from any single component in isolation,” he wrote. “It comes from how systems handle failure.” Aviation does not assume perfect pilots and hospitals do not assume perfect surgeons; both wrap imperfect actors in app...

Future Proofing the Foundation for AI-Ready Security Operations

Last December, the International Telecommunication Union (ITU), the United Nations’ (UN) body for information and communication technologies, supported  Open Cybersecurity Schema Framework (OCSF)  for ratification as an international standard by June 2026. Standardization is now a global necessity as governments worldwide integrate ITU standards into their national cybersecurity policies. First, What is OCSF? The OCSF provides a standardized approach to streamline security operations, improve threat detection, and accelerate incident response. This unlocks the full potential of security data. A standardized schema for security events normalizes data from various sources, which creates a unified foundation for advanced analytics and AI-powered tools. This standardization is crucial for unleashing the full potential of generative AI in cybersecurity, allowing organizations to better identify patterns and correlations across disparate data sources. Data Standardiza...