Skip to content
Info disclosure Write-up Intermediate

Chadha PHPKB 9.0 Enterprise Edition arbitrary file disclosure

The installer script test-connection.php in PHPKB 9.0 Enterprise Edition allows an unauthenticated remote attacker to read local files on the server. This is possible on hosts running PHP before 7.2.16 or where the MySQL ALLOW LOCAL DATA INFILE option is enabled.

shielder.com

Published on shielder.com

Chadha PHPKB 9.0 Enterprise Edition is affected by an arbitrary file disclosure: installer/test-connection.php (part of the installation process) allows a remote unauthenticated attacker to disclose local files on hosts running PHP before 7.2.16, or on hosts where the MySQL ALLOW LOCAL DATA INFILE option is enabled.

The author, on shielder.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 installer script passes user input into a MySQL LOAD DATA LOCAL INFILE query without validation, allowing a malicious MySQL server to request local files.

What the attacker needed

PHP before 7.2.16 or MySQL ALLOW LOCAL DATA INFILE on; installer/test-connection.php reachable; no authentication 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.

A file disclosure bug lets someone read files on a server that they should not be able to see. Here, a setup script left in the product can be tricked into showing local files to anyone on the internet, without logging in. This only works on certain server setups, such as older PHP versions or a particular MySQL setting.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.