Database Export UI
The module does not properly restrict access to the exported database file and fails to remove all sensitive data during the export. Anyone without logging in could download the file and view all data on the site. They could not change any information.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youA site is affected if an administrator has already generated an export file and an attacker knows its name.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.
Tell your developerUpdate Database Export UI to 1.0.6.
For developers: what the fix changed
The fix changes the export directory to the private file system, adds a random string to the filename, and implements `hook_file_download` in `DbExportUiHooks` to restrict access to users with the 'administer db exports' permission. It also updates `DatabaseExportService::sanitizeUsers()` to properly replace password hashes with safe placeholders.
Also in this release The release also adds functionality to prune old database dumps and updates the spelling dictionary.
.cspell.json+1 −0db_export_ui.module+19 −0 fixdb_export_ui.services.yml+6 −0 fixsrc/Form/DatabaseExportForm.php+29 −5 fixsrc/Hook/DbExportUiHooks.php+57 −0 fixsrc/Service/DatabaseExportService.php+42 −5 fix