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

GHSL-2023-200: SQL injection vulnerability in FarmBot’s web app - CVE-2023-45674

The tools API endpoint passed a user-controlled id parameter directly into a SQL query string, allowing an authenticated attacker to inject SQL and extract arbitrary data from the database, including the user table. The proof of concept shows exfiltration of the first character of a user's email address.

p Follow

Originally disclosed on GitHub Security Lab

A SQL injection vulnerability was found in FarmBot’s web app that allowed authenticated attackers to extract arbitrary data from its 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

An authenticated attacker could extract arbitrary data from the database, including user information, leading to information disclosure.

What the attacker needed

Authenticated user account

The fix

The vulnerability was fixed in version v15.8.4 of FarmBot-Web-App.

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 a program builds a database query by gluing together text that includes user input, so an attacker can sneak in extra database commands. Here, the tool ID from the web request was placed straight into a query, letting a logged-in user read data they should not see, such as other users' email addresses.

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.