SQL Injection Affecting nocodb package, versions <0.202.10
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.04% (10th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-NOCODB-6839433
- published 14 May 2024
- disclosed 13 May 2024
- credit pyozzi-toss
Introduced: 13 May 2024
CVE-2023-50718 Open this link in a new tabHow to fix?
Upgrade nocodb
to version 0.202.10 or higher.
Overview
nocodb is a NocoDB
Affected versions of this package are vulnerable to SQL Injection through the columnList
method. An attacker with create access can execute arbitrary SQL commands and potentially access or modify sensitive data by including a special character (') in the table name to manipulate the SQL query.
PoC
async columnList(args: any = {}) {
const func = this.columnList.name;
const result = new Result();
log.api(`${func}:args:`, args);
try {
args.databaseName = this.connectionConfig.connection.database;
const response = await this.sqlClient.raw(
`select *, table_name as tn from information_schema.columns where table_name = '${args.tn}' ORDER by ordinal_position`,
);
References
CVSS Scores
version 3.1