//Azure DevOps - Security Testing Guide (Ado-STG)/Pipeline Injection
| ID: | AdoSTG-PI-07 |
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.
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/*
Avoid wildcard branch triggers. Use explicit branch lists or protected branch patterns. Apply branch policies to prevent unauthorized branch creation.