pimcore/admin-ui-classic-bundle Full Path Disclosure via re-export document
The re-export document feature calls fopen() without handling the case where the file is missing, so the server error reveals the full filesystem path. An attacker could learn the webroot path, which is useful for other attacks such as SQL injection file reads.
pimcore/admin-ui-classic-bundle
Originally disclosed on huntr
Impact
Full Path Disclosure (FPD) vulnerabilities enable the attacker to see the path to the webroot/file. e.g.: /home/omg/htdocs/file/. Certain vulnerabilities, such as using the load_file() (within a SQL Injection) query to view the page source, require the attacker to have the full path to the file they wish to view.
In the case of pimcore, the fopen() function here doesn't have an error handle when the file doesn't exist on the server so the server response raises the full path "fopen(/var/www/html/var/tmp/export-{ uniqe id}.csv)"
Patches
Apply patch https://github.com/pimcore/admin-ui-classic-bundle/commit/10d178ef771097604a256c1192b098af9ec57a87.patch
Workarounds
Update to version 1.2.1 or apply patches manually
References
https://huntr.com/bounties/4af4db18-9fd4-43e9-8bc6-c88aaf76839c/
From the GitHub Advisory Database (GHSA-c8hj-w239-5gvf, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the code calls fopen() on a temporary export file without checking that it exists or suppressing the warning, so the error message includes the absolute path.
Impact
An attacker could learn the full server path to the webroot, which may assist other vulnerabilities such as SQL injection that need a known file path.
What the attacker needed
Access to the re-export document feature
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 report has not been written yet. The Original tab links to the source.
When a program tries to open a file that is not there, it can produce an error message. If that message is shown to the user, it may include the full folder path on the server. Knowing that path helps an attacker in later attacks, for example reading files through a database bug.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.