Skip to content
SQL injection Disclosed report Intermediate CVE-2024-10835

DB-GPT is vulnerable to SQL Injection attacks from unauthenticated users

The web API endpoint for running SQL queries lacks access control, allowing unauthenticated users to execute arbitrary SQL. Attackers can use DuckDB SQL to write arbitrary files to the victim's file system, potentially leading to remote code execution.

eosphoros-ai/DB-GPT

Originally disclosed on huntr

Critical View original

In eosphoros-ai/db-gpt version v0.6.0, the web API POST /api/v1/editor/sql/run allows execution of arbitrary SQL queries without any access control. This vulnerability can be exploited by attackers to perform Arbitrary File Write using DuckDB SQL, enabling them to write arbitrary files to the victim's file system. This can potentially lead to Remote Code Execution (RCE).

From the GitHub Advisory Database (GHSA-qccg-9m4q-xfm6, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the API endpoint lacks authentication and authorisation checks, allowing unauthenticated users to execute arbitrary SQL queries.

Impact

An attacker could write arbitrary files to the victim's file system, potentially leading to remote code execution.

What the attacker needed

Unauthenticated access to the API

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This report is about a web service that lets anyone run database queries without logging in. Because there is no check on who can use it, an attacker can send special queries that create or change files on the server. That could let them take over the machine.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More from eosphoros-ai/DB-GPT

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.