Skip to content

H3-2026-1093

Dify Unauthenticated Amazon Bedrock Retrieval Endpoint Access Vulnerability

Category SECURITY_CONTROLS
Base Score 8.6

Description

Dify mounts its console retrieval test endpoint, /console/api/test/retrieval, in production without the setup, login, account initialization, or tenant and role checks applied to other console routes. Remote attackers can invoke this endpoint directly and supply an arbitrary Amazon Bedrock knowledge base identifier, causing the API service to query that knowledge base using its own globally configured AWS credentials. No session, API key, or tenant association is required, because the route skips every authorization decorator the rest of the console API relies on. The missing checks affect any Dify deployment that exposes the console API externally and has Bedrock-backed knowledge bases configured.

Impact

Successful exploitation lets attackers retrieve content from any Amazon Bedrock knowledge base reachable with the server's configured AWS credentials. This can expose proprietary documents, internal data, or other sensitive material stored for retrieval augmented generation. Organizations using Dify with Bedrock knowledge bases for internal or customer data face direct data exposure.

References