Class RepositoryVariableSecurityValidatorImpl

java.lang.Object
com.atlassian.bamboo.security.validation.RepositoryVariableSecurityValidatorImpl
All Implemented Interfaces:
RepositoryVariableSecurityValidator

@Component public class RepositoryVariableSecurityValidatorImpl extends Object implements RepositoryVariableSecurityValidator
Validates repository-sourced variable values for shell injection risks.

The first character must be alphanumeric or underscore. Leading dashes are blocked to prevent CLI flag injection; leading dots are blocked to avoid hidden-file path confusion. Subsequent characters may also include dash, forward slash, and dot. All other characters (shell metacharacters, spaces, quotes, etc.) are rejected.