//Azure DevOps - Security Testing Guide (Ado-STG)/Pipeline Injection

Testing for Dangerous Triggers


ID: AdoSTG-PI-07
If you need help assessing the security of your Azure DevOps or organization, we offer a wide range of security services. So, always feel free to reach out at: Sales@enterprisesoftproducts.com
NOTICE: The Azure DevOps - Security Testing Guide (Ado-STG) is currently in BETA; this means that there might be substantial changes and some parts may contain errors or not be fully implemented.

1 - Summary

This section describes how a tester can check if it's possible to abuse pipeline triggers to kick off pipeline workflows.

These issues are not directly abusable, but when combined with user-controlled inputs such as creating forks and then running these to gain access to potentially sensitive information or code execution on systems.

2 - Test Objectives

3 - How to Test

Wildcard triggers are triggers where any part after the '*' is matched. Thus, if a user controls any of this, it can be used for malicious actions.

0trigger: 
1 branches: 
2 include: 
3 - main 
4 - develop 
5 - release/* 
6 - feature/* 
7 exclude: 
8 - feature/experimental-* 
9 - feature/wip-* 

Especially dangerous since these are user-controlled:

0refs/heads/* 
1users/* 
2feature/* 

4 - Remediation

Avoid wildcard branch triggers. Use explicit branch lists or protected branch patterns. Apply branch policies to prevent unauthorized branch creation.

5 - References