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

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.

p Follow

Originally disclosed on GitHub Security Lab

A SQL injection vulnerability was found in TaxonWorks that allowed authenticated attackers to extract arbitrary data from the TaxonWorks database (including the user table).

p-, 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, 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

  1. Authenticate to TaxonWorks and obtain a session cookie and remember token.
  2. Send a request to the topics lookup endpoint with a crafted 'term' parameter containing SQL injection.
  3. 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.

More by p

View all

49 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.