cbcvebase.
CVE-2020-26935
published 2020-10-10

CVE-2020-26935: An issue was discovered in SearchController in phpMyAdmin before 4.9.6 and 5.x before 5.0.3. A SQL injection vulnerability was discovered in how phpMyAdmin…

PriorityP276critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
67.08%
99.2th percentile
An issue was discovered in SearchController in phpMyAdmin before 4.9.6 and 5.x before 5.0.3. A SQL injection vulnerability was discovered in how phpMyAdmin processes SQL statements in the search feature. An attacker could use this flaw to inject malicious SQL in to a query.

Affected

21 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debianphpmyadmin< phpmyadmin 4:4.9.7+dfsg1-1 (bookworm)phpmyadmin 4:4.9.7+dfsg1-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
opensusebackports_sle
opensuseleap
opensuseleap
phpmyadminphpmyadmin>= 0 < 4:4.9.7+dfsg1-14:4.9.7+dfsg1-1
phpmyadminphpmyadmin>= 0 < 4:4.9.7+dfsg1-14:4.9.7+dfsg1-1
phpmyadminphpmyadmin>= 0 < 4:4.9.7+dfsg1-14:4.9.7+dfsg1-1
phpmyadminphpmyadmin>= 0 < 4:4.9.7+dfsg1-14:4.9.7+dfsg1-1
phpmyadminphpmyadmin>= 0 < 4:4.6.6-5ubuntu0.54:4.6.6-5ubuntu0.5
phpmyadminphpmyadmin>= 0 < 4:4.0.10-1ubuntu0.1+esm44:4.0.10-1ubuntu0.1+esm4
phpmyadminphpmyadmin>= 0 < 4:4.5.4.1-2ubuntu2.1+esm64:4.5.4.1-2ubuntu2.1+esm6
phpmyadminphpmyadmin>= 0 < 4:4.6.6-5ubuntu0.5+esm14:4.6.6-5ubuntu0.5+esm1
phpmyadminphpmyadmin>= 0 < 4:4.9.5+dfsg1-2ubuntu0.1~esm14:4.9.5+dfsg1-2ubuntu0.1~esm1
phpmyadminphpmyadmin>= 4.9.0 < 4.9.64.9.6
phpmyadminphpmyadmin>= 4.9.0 < 4.9.64.9.6
phpmyadminphpmyadmin>= 5.0.0 < 5.0.35.0.3
phpmyadminphpmyadmin>= 5.0.0 < 5.0.35.0.3

Detection & IOCsextracted from sources · hover to see the quote

url/tbl_zoom_select.php
command1=0 UNION SELECT 1,CONCAT(USER(),0x3a,DATABASE(),0x3a,VERSION()),3-- -
  • Exploit targets the `where_clause` parameter in POST requests to `/tbl_zoom_select.php` with UNION-based SQL injection payload; monitor for UNION SELECT patterns in this endpoint's POST body.
  • Successful exploitation returns a JSON response containing both `"success":true` and `"row_info"` fields; alert on these in responses from `/tbl_zoom_select.php`.
  • The vulnerability resides in SearchController; the attack vector is the search feature of phpMyAdmin. Monitor POST requests to `tbl_zoom_select.php` with `ajax_request=true` and `get_data_row=true` parameters for anomalous `where_clause` values.
  • Shodan/FOFA fingerprinting for exposed phpMyAdmin instances can be used to identify attack surface: Shodan query `http.title:"phpMyAdmin"`, FOFA query `app="phpMyAdmin"`.
  • ·Exploitation requires valid phpMyAdmin credentials (authenticated attack); the Nuclei template uses `{{username}}` and `{{password}}` variables, meaning unauthenticated exploitation is not demonstrated by this PoC.
  • ·The PoC hardcodes `db=testdb&table=users` in the payload; real-world exploitation requires knowledge of (or brute-forcing) a valid database and table name on the target instance.
  • ·A valid CSRF token (`token2`) extracted from the authenticated session is required for the injection request to succeed; replay of captured requests without a fresh token will fail.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_ubuntu6.5MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.