Horizon Alert
Summary of the vulnerability and why it matters
A path traversal vulnerability exists in a specific component of the Google ADK TypeScript library, affecting how files are handled. This could allow unauthorized access to read or write files outside of intended storage areas if a non-default configuration is in use. The primary concern is to confirm if this specific, non-default service is enabled within your environment.
- Allows unauthorized file access if a specific service is enabled.
- Confirms if a non-default file handling service is active.
- Understand exposure by confirming service configuration.
Attack Path
How an attacker could exploit the issue
An unauthenticated attacker could reach the vulnerable FileArtifactService if it's enabled instead of the default service, by sending specially crafted path traversal sequences in the userId or sessionId parameters to the ADK API server. This could allow them to read or write files outside the intended storage location.
- Remote, unauthenticated entry.
- Crafted path traversal in parameters.
- Unauthorized file access or modification.
Live Threat
Current exploitation, exposure, and threat context
When the non-default FileArtifactService is enabled in the Google ADK TypeScript API server, a remote, unauthenticated attacker could read files that match the artifact directory structure or write files outside the intended storage location. This is possible by sending crafted path traversal sequences in the userId or sessionId parameters. Applications using the default InMemoryArtifactService are not affected.
- Sensitive files on the server could be read.
- Attacker sends crafted path traversal sequences.
- Unauthorized file access and potential modification.
Operational Fix
Recommended remediation, mitigation, and detection steps
The technical leader or application owner responsible for services utilizing the Google ADK TypeScript library should take the lead in addressing this vulnerability. The immediate first step is to confirm if the `FileArtifactService` is enabled and exposed, then identify any affected instances, assess their reachability and criticality, and finally plan remediation based on these findings.
- Application owners should investigate usage.
- Verify `FileArtifactService` configuration status.
- Plan remediation based on exposure and risk.