Skip to content
SQL injection Write-up Intermediate

SuiteCRM <= 7.11.10 Multiple SQL Injection Vulnerabilities

The SOAP API's set_entries() function fails to sanitise user input in the name_value_lists parameter, specifically the first_name and last_name elements, before using it in a SQL query within check_for_duplicate_contacts(). An attacker could exploit this to read sensitive data from the database via SQL injection.

karmainsecurity.com

Published on karmainsecurity.com

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2020-8804 to these vulnerabilities.

The author, on karmainsecurity.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application concatenates user-supplied values directly into a SQL query without proper escaping or parameterisation.

Impact

An attacker could read sensitive data from the database through in-bound SQL injection attacks.

What the attacker needed

Access to the SOAP API; ability to call set_entries()

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 write-up has not been written yet. The Original tab links to the source.

This is a SQL injection bug. When you type something into a form, the website should treat it as plain text, not as part of a database command. Here, the website mixed user input directly into a database query, so a malicious user could trick the database into revealing private information.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

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.