Skip to content
Write-up Intermediate

Azure Devops Zero-Click CI/CD Vulnerability

A vulnerability in Azure Pipelines allowed an attacker to fork a public GitHub repository and open a pull request that triggered a pipeline with access to secrets, without any action from the maintainer. The attacker could then use those secrets to move laterally and initiate supply chain attacks.

Nadav Noy Follow

Published on legitsecurity.com

The Legit Security research team has found and reported a zero-click attack that allowed attackers to submit malicious code and access secrets. The vulnerability does not require any action from the project maintainer, making it a zero-click supply chain vulnerability.

Nadav Noy, on legitsecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could access secrets and internal information, perform actions with elevated permissions, move laterally in the organization, and initiate supply chain attacks.

What the attacker needed

Public GitHub repository; Azure Pipelines runs on pull requests; Default fork configuration; Project uses pipeline triggers

The fix

The vulnerability was fixed by Microsoft on October 10, 2023, so that builds triggered by a forked PR build act as if they are forked and obey the same restrictions.

How it was found

  1. Fork the public GitHub repository.
  2. Open a pull request with malicious code that uses a pipeline resource trigger.
  3. The pipeline runs with access to secrets, allowing the attacker to exfiltrate them.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When you fork a repository, you make a copy of someone else's project. Normally, if you open a pull request from your fork, the automated build (pipeline) runs without access to secret keys. But here, a bug made the pipeline think the build was internal, so it gave the attacker secret keys. This let the attacker steal those keys and potentially break into other systems.

More by Nadav Noy

View all

1 more disclosed report, best first.

More from Microsoft (Azure DevOps Pipelines)

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.