Summary
Yeti derives export filenames from user-controlled task names without adequately confining them to the intended storage directory. A low-privileged authenticated user may exploit this behavior with the default local storage backend to read service-account-accessible files or write export output to other writable paths.
Yeti derives export filenames from user-controlled task names without adequately confining them to the intended storage directory. A low-privileged authenticated user may exploit this behavior with the default local storage backend to read service-account-accessible files or write export output to other writable paths.
Affected context
The issue affects Yeti deployments using the local file storage backend where export filenames are derived from user-controlled task names without sufficient sanitization or path confinement. Export creation and content retrieval are relevant operations; the impact depends on the filesystem permissions of the Yeti service account.
The issue affects Yeti deployments using the local file storage backend where export filenames are derived from user-controlled task names without sufficient sanitization or path confinement. Export creation and content retrieval are relevant operations; the impact depends on the filesystem permissions of the Yeti service account.
Exploit preconditions
- Attack surface: Yeti's task export API and local file storage backend
- Required access: A low-privileged authenticated account that can create export tasks
- Trigger point: Export task creation and subsequent handling or retrieval of export content
- Why exploitation is possible: User-controlled task names influence filesystem paths without reliable traversal protection or confinement to the intended storage location
- Attack surface: Yeti's task export API and local file storage backend
- Required access: A low-privileged authenticated account that can create export tasks
- Trigger point: Export task creation and subsequent handling or retrieval of export content
- Why exploitation is possible: User-controlled task names influence filesystem paths without reliable traversal protection or confinement to the intended storage location
Why this happens
The application uses a user-controlled task name to derive an export filename and passes it to local storage without sufficiently validating the resulting path. If traversal components are accepted and the resolved path is not confined to an approved directory, filesystem operations can escape the intended storage area. This is a path traversal weakness classified as CWE-22: Improper Limitation of a Pathname to a Restricted Directory.
The application uses a user-controlled task name to derive an export filename and passes it to local storage without sufficiently validating the resulting path. If traversal components are accepted and the resolved path is not confined to an approved directory, filesystem operations can escape the intended storage area. This is a path traversal weakness classified as CWE-22: Improper Limitation of a Pathname to a Restricted Directory.
Potential impact
- An attacker may read files that are accessible to the Yeti service account.
- An attacker could write export output to other paths writable by that account.
- Sensitive data may be exposed or files in writable locations may be altered.
- The severity of resulting system impact depends on the service account's filesystem permissions; universal code execution is not established.
- An attacker may read files that are accessible to the Yeti service account.
- An attacker could write export output to other paths writable by that account.
- Sensitive data may be exposed or files in writable locations may be altered.
- The severity of resulting system impact depends on the service account's filesystem permissions; universal code execution is not established.
General mitigation guidance
Defensive patterns focus on treating task names as untrusted data and ensuring storage operations remain within an explicitly approved directory.
- Generate storage filenames independently of user-provided names, or map user-facing names to safe identifiers.
- Normalize and resolve paths, then enforce confinement to the intended storage root before file operations.
- Use storage APIs that prevent directory escape and reject invalid path components.
- Run the service with least-privilege filesystem permissions and limit writable locations.
- Prefer storage configurations that restrict exports to a dedicated directory with narrowly scoped access.
Defensive patterns focus on treating task names as untrusted data and ensuring storage operations remain within an explicitly approved directory.
- Generate storage filenames independently of user-provided names, or map user-facing names to safe identifiers.
- Normalize and resolve paths, then enforce confinement to the intended storage root before file operations.
- Use storage APIs that prevent directory escape and reject invalid path components.
- Run the service with least-privilege filesystem permissions and limit writable locations.
- Prefer storage configurations that restrict exports to a dedicated directory with narrowly scoped access.
How teams detect issues like this
- Use static analysis to identify user-controlled values flowing into filesystem paths and file operations.
- Review export code for path normalization, canonical-path checks, and enforcement of storage-root confinement.
- Check that API inputs cannot determine filesystem locations and that storage policies restrict reads and writes to approved directories.
- Monitor for export operations involving unexpected paths and review service-account filesystem permissions.
- Use static analysis to identify user-controlled values flowing into filesystem paths and file operations.
- Review export code for path normalization, canonical-path checks, and enforcement of storage-root confinement.
- Check that API inputs cannot determine filesystem locations and that storage policies restrict reads and writes to approved directories.
- Monitor for export operations involving unexpected paths and review service-account filesystem permissions.

