Archery is an open source SQL audit platform. The Archery project contains multiple SQL injection vulnerabilities, that may allow an attacker to query the connected databases. Affected versions are subject to SQL injection in the `data_dictionary.py` `table_info`. User input coming from the `db_name` in and the `tb_name` parameter values in the `sql/data_dictionary.py` `table_info` endpoint is passed to the following methods in the given SQL engine implementations, which concatenate user input unsafely into a SQL query and afterwards pass it to the `query` method of each database engine for execution.The methods are `get_table_meta_data ` in `sql/engines/mssql.py` which passes unsafe user input to the `sql/engines/mssql.py` `query` method, `get_table_desc_data` in `sql/engines/mssql.py`which passes unsafe user input to the `sql/engines/mssql.py` `query`, `get_table_index_data` in `sql/engines/mssql.py`which passes unsafe user input to the `sql/engines/mssql.py` `query` method, `get_table_meta_data` in `sql/engines/oracle.py`which concatenates input which is passed to execution on the database in the `sql/engines/oracle.py` `query` method, `get_table_desc_data` in `sql/engines/oracle.py`which concatenates input which is passed to execution on the database in the `sql/engines/oracle.py` `query` method, and `get_table_index_data` in `sql/engines/oracle.py` which concatenates input which is passed to execution on the database in the `sql/engines/oracle.py` `query` method. Each of these issues may be mitigated by escaping user input or by using prepared statements when executing SQL queries. This issue is also indexed as `GHSL-2022-106`.
References
Link | Resource |
---|---|
https://github.com/hhyo/Archery/blob/bc86cda4c3b7d59f759d0d23bb63a54f52616752/sql/data_dictionary.py#L47-L86 | Exploit |
https://github.com/hhyo/Archery/security/advisories/GHSA-9pvw-f8jv-xxjr | Exploit Mitigation Vendor Advisory |
https://github.com/hhyo/Archery/blob/bc86cda4c3b7d59f759d0d23bb63a54f52616752/sql/data_dictionary.py#L47-L86 | Exploit |
https://github.com/hhyo/Archery/security/advisories/GHSA-9pvw-f8jv-xxjr | Exploit Mitigation Vendor Advisory |
Configurations
History
21 Nov 2024, 08:00
Type | Values Removed | Values Added |
---|---|---|
References | () https://github.com/hhyo/Archery/blob/bc86cda4c3b7d59f759d0d23bb63a54f52616752/sql/data_dictionary.py#L47-L86 - Exploit | |
References | () https://github.com/hhyo/Archery/security/advisories/GHSA-9pvw-f8jv-xxjr - Exploit, Mitigation, Vendor Advisory |
01 May 2023, 17:22
Type | Values Removed | Values Added |
---|---|---|
CVSS |
v2 : v3 : |
v2 : unknown
v3 : 6.5 |
References | (MISC) https://github.com/hhyo/Archery/security/advisories/GHSA-9pvw-f8jv-xxjr - Exploit, Mitigation, Vendor Advisory | |
References | (MISC) https://github.com/hhyo/Archery/blob/bc86cda4c3b7d59f759d0d23bb63a54f52616752/sql/data_dictionary.py#L47-L86 - Exploit | |
CPE | cpe:2.3:a:archerydms:archery:1.9.0:*:*:*:*:*:*:* |
19 Apr 2023, 12:39
Type | Values Removed | Values Added |
---|---|---|
New CVE |
Information
Published : 2023-04-19 00:15
Updated : 2024-11-21 08:00
NVD link : CVE-2023-30557
Mitre link : CVE-2023-30557
CVE.ORG link : CVE-2023-30557
JSON object : View
Products Affected
archerydms
- archery
CWE
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')