Skip to content
SQL injection Write-up Intermediate

vtiger CRM <= 5.4.0 (SOAP Services) Multiple SQL Injection Vulnerabilities

The get_picklists() SOAP method in vtiger CRM builds a SQL query using the picklist_name parameter after only escaping it, but the escaping is insufficient, allowing SQL injection. An attacker could use this to manipulate database queries, potentially reading or altering data.

karmainsecurity.com

Published on karmainsecurity.com

User input passed through the “picklistname” parameter seems to be correctly sanitised by the sqlescapestring() method, but the vulnerability exists because it’s used in the query at line 1194 without single or double quotes. This can be exploited to conduct blind SQL injection attacks.

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 code uses sql_escape_string on the picklist_name parameter but then concatenates it into a query in a way that still allows injection, such as through insufficient escaping or improper quoting.

What the attacker needed

Access to the SOAP service; valid session may be needed

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.

SQL injection is when user input is inserted into a database command without proper handling, letting an attacker change the command. Here, a value sent to a web service is only partly cleaned before being used in a database query, so an attacker might trick the database into running unintended commands.

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.