GHSL-2023-140:SQL injection vulnerability in TaxonWorks - CVE-2023-43640
A SQL injection vulnerability in TaxonWorks' autocomplete function allowed authenticated attackers to extract arbitrary data from the database, including user emails and API access tokens. Attackers could use the stolen tokens to access the TaxonWorks API as authenticated users.
A SQL injection vulnerability was found in TaxonWorks that allowed authenticated attackers to extract arbitrary data from the TaxonWorks database (including the user table).
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, potentially exposing user emails and API access tokens that allow API access as an authenticated user.
What the attacker needed
Authenticated user account
The fix
The vulnerability was fixed by the maintainers in version 0.34.0.
How it was found
- Authenticate to TaxonWorks and obtain a session cookie and remember token.
- Send a request to the topics lookup endpoint with a crafted 'term' parameter containing SQL injection.
- Observe the JSON response containing data from the users table, including emails and API access tokens.
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 user input is inserted directly into a database query without proper handling, letting an attacker change the query's meaning. Here, the search term in an autocomplete feature was placed into a database command, so a crafted search could make the database return other data, like user details. The attacker needed to be logged in to reach the feature.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.