Skip to content
SQL injection Write-up Intermediate

SugarCRM < 10.1.0 (Reports Export) SQL Injection Vulnerability

The encoded current_post parameter sent to index.php with entryPoint set to export and module set to Reports was not properly sanitised before being used in a SQL query. A remote attacker could exploit this to read sensitive database data, for example through time-based SQL injection.

karmainsecurity.com

Published on karmainsecurity.com

User input passed through the encoded “currentpost” parameter to index.php (when “entryPoint” is set to “export” and “module” is set to “Reports”) is not properly sanitized before being used to construct a SQL query. This can be exploited by remote attackers to e.g. read sensitive data from the database through e.g.…

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

Impact

A remote attacker could read sensitive data from the database, for example through time-based SQL injection.

What the attacker needed

Network access to the SugarCRM instance; Reports export entry point reachable

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.

The application builds a database query using text supplied by the user without cleaning it first. An attacker can add extra database instructions so the query behaves differently, which can reveal data stored in the database. A time-based attack works by making the database pause and measuring how long the reply takes.

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.