A vendor advisory and a GitHub security notice have revealed that better‑chatbot’s “Manual” tool‑confirmation mode can be bypassed, allowing a crafted prompt to invoke built‑in tools such as HTTP requests without the user’s explicit approval.
What the flaw does
In versions released before 2.0.0, the chatbot retained execution handlers for its built‑in tools (web search, web content, HTTP request, and code execution) even when the interface was set to Manual mode, which is supposed to pause any tool call until a human confirms it. A prompt‑injected document or web page can therefore trigger the HTTP request tool directly, sending conversation text or other context to an attacker‑controlled URL.
The GitHub advisory clarifies that the problem affects better‑chatbot ≤ 1.26.0, where only the MCP and workflow tool handlers were stripped in Manual mode, leaving the core app toolset fully active. The issue was fixed in version 2.0.0, which now removes execution handlers from the entire tool set and enforces a confirmation step on the server side.
How an attacker could exploit it
The advisory rates the attack path as high‑complexity but requiring only passive user interaction: the attacker must supply content that the model will process—such as a malicious document or a crafted web page. When the model parses that content, it may emit a tool request that the server executes immediately, leaking the conversation payload to an arbitrary endpoint.
Because the bypass occurs in the chat route, the outbound request can include the full user prompt, prior messages, or any data the model deems relevant. No special privileges are needed, and the exploit works even if the deployment restricts tool usage to trusted users, as the confirmation check is bypassed entirely.
Mitigation and hardening steps
The primary fix is to upgrade all instances to better‑chatbot 2.0.0 or later. Administrators should audit container images, hosted instances, and deployment manifests for any version number below 2.0.0 (or ≤ 1.26.0 according to the GitHub advisory) and replace them promptly.
Beyond upgrading, operators are advised to audit the tool policy list and ensure that Manual mode enforces confirmation at the server boundary rather than relying on UI elements. A practical test is to issue a harmless prompt that attempts an HTTP request and verify that the server does not execute the call before a user approval step.
Egress controls add a second layer of defense: restrict the HTTP request tool to known API endpoints, block link‑local and cloud‑metadata addresses, and log each outbound host, status code, and byte count. For high‑risk deployments, an allow‑list combined with an authenticated proxy can prevent arbitrary destinations from being reached.
The GitHub advisory also offers a workaround for versions that cannot be upgraded immediately: disable the built‑in toolkits (HTTP, web search, code) in the tool settings, or avoid using Manual mode for any untrusted content.
What developers should watch
The CVE highlights a broader lesson for developers integrating LLM‑driven tool use into applications: client‑side dialogs are not a reliable security boundary. Even when a UI asks the user to confirm a tool call, the underlying service must enforce that check before executing any external action. In better‑chatbot’s case, the separation between “proposal” and “execution” was incomplete, allowing a crafted prompt to slip through the UI guardrail. For teams building conversational agents that can read documents, browse the web, or make network calls, the recommendation is to implement server‑side validation that inspects every tool request against a policy engine, regardless of the client’s mode setting. Adding network egress filtering, detailed request logging, and version pinning further reduces attack surface. The incident also underscores the importance of keeping third‑party AI components up to date; the patch that restores proper Manual mode behavior arrived only in version 2.0.0, meaning many deployments could remain vulnerable for months if version checks are lax. By adopting a defense‑in‑depth approach—upgrading promptly, hardening tool policies, and treating model‑generated content as untrusted input—developers can better protect conversational data from inadvertent exfiltration.
Cover: AI-generated illustration with headline text; not a documentary photograph.
Source: A manual tool confirmation is still a security boundary in better-chatbot · Manual tool-confirmation mode did not apply to built-in tools · Advisory · keinsaasforever/better-chatbot · GitHub

Leave a Reply