Skip to content
SQL injection Advisory Intermediate CVE-2023-43794

GHSL-2023-141: SQL injection in Nocodb - CVE-2023-43794

Nocodb's table creation endpoint used the user-supplied table_name parameter to build a SQL query without sanitisation, allowing an authenticated attacker with creator access to inject arbitrary SQL. This blind SQL injection could be exploited with time-based payloads to reveal data from the underlying database.

sylwia-budzynska Follow

Originally disclosed on GitHub Security Lab

Nocodb contains SQL injection vulnerability, that allows an authenticated attacker with creator access to query the underlying database.

sylwia-budzynska, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

Impact

This issue may lead to information disclosure, as an attacker could use blind SQL injection to reveal data present in the database.

What the attacker needed

Creator-level access; ability to intercept HTTP requests

The fix

The vulnerability was fixed by the maintainer, who published an advisory.

How it was found

  1. Create a new database and a table in Nocodb, which sends a POST request to the tables endpoint.
  2. Capture that POST request with a proxy, keeping valid cookies and the projectId and baseId values.
  3. Change the table_name value to a time-delay SQL payload and send the request.
  4. Observe that the database waits around 30 seconds, confirming the payload executed.

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.

SQL injection is when an application puts user input directly into a database command, so an attacker can change the command's meaning. Here, the table name typed by a user was inserted into a database query without cleaning it, letting someone with a creator account run their own database queries. They could then use delays in responses to ask yes/no questions and slowly extract data.

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 by sylwia-budzynska

View all

27 more disclosed reports, best first.

More from GitHub Security Lab

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.