GHSL-2022-070_GHSL-2022-072: SQL injection in Arches - CVE-2022-41892
The Arches project contained multiple blind SQL injection vulnerabilities in endpoints that used user-controlled parameters to build SQL queries. An attacker could inject arbitrary SQL and use time-based techniques to infer database contents.
Originally disclosed on GitHub Security Lab
The Arches project contains multiple blind SQL injection vulnerabilities, that allow an attacker to query the underlying database.
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
Root cause
Likely, the application built SQL queries by inserting user-supplied values directly into query strings instead of using parameterised queries.
Impact
This could lead to information disclosure and allow an attacker to execute SELECT queries on the database.
What the attacker needed
Access to the Arches application; valid conceptid UUID
The fix
The vulnerabilities were fixed by the maintainers, as indicated by the published fix.
How it was found
- Access the concepts/paged_dropdown endpoint with a valid conceptid UUID and a crafted query parameter.
- Observe the response time to determine if the injected condition is true or false.
- Repeat with different conditions to extract information from the database.
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, letting an attacker change the command's meaning. Here, the application did this in several places, so an attacker could ask the database yes/no questions and learn secret data by measuring how long responses took.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.