Summary
Yeti's audit timeline endpoint does not require authentication, allowing unauthenticated network users to query TimelineLog records. Depending on the records returned, this may expose analyst usernames, object identifiers, actions, and before-and-after data.
Affected context
The issue occurs in Yeti's API v2 audit timeline route, /api/v2/audit/timeline/{id}. The audit router is registered without an active-user dependency, and the route does not perform its own authentication check. In deployments where the endpoint is network-accessible, requests using empty, partial, or specific wildcard paths may return TimelineLog records.
Exploit preconditions
- Attack surface: Network-accessible Yeti API v2 audit timeline endpoint
- Required access: No authenticated account is required, according to the vulnerability description
- Trigger point: A request to
/api/v2/audit/timeline/{id}using an empty, partial, or specific wildcard path - Why exploitation is possible: The router and route lack an authentication check, allowing requests to retrieve audit records without verifying the caller's identity
Why this happens
The audit router is registered without an authentication dependency, and the timeline route does not enforce authentication independently. This is a missing-authentication flaw mapped to CWE-306: Missing Authentication for Critical Function: a sensitive operation can be reached without establishing the identity of the requester.
Potential impact
- Unauthorized users may view analyst usernames and operational activity
- Threat-intelligence object identifiers, values, and actions could be disclosed
- Before-and-after object data may reveal sensitive investigative context
- Exposed records could support follow-on targeting or reconnaissance
General mitigation guidance
Defensive patterns focus on requiring authentication and authorization for sensitive audit data.
Common approaches include:
- Apply a shared authentication dependency to the audit router or enforce authentication directly on every sensitive route
- Check authorization for the requested records and limit results to the caller's permitted scope
- Default-deny access to audit endpoints unless explicitly granted
- Minimize the sensitive data stored in or returned from audit records
- Restrict network access to the API as an additional layer, not as a substitute for authentication
How teams detect issues like this
High-level detection approaches include:
- Review route registration and endpoint definitions for missing authentication dependencies or route-level checks
- Use static analysis or code review rules to flag sensitive API routes that lack authentication and authorization
- Test API policies to confirm unauthenticated requests to audit endpoints are denied
- Monitor access logs for unauthenticated requests and unusual query patterns against audit routes
- Enforce API security policies that require authentication for audit and administrative data

