Filename and directory enumeration
The Import File Converter's 'File location' field does not sanitise user input, allowing an admin to enumerate server directories and files by observing different error messages. An attacker with admin access could map the server's filesystem.
- Triaged in 3 days
- Fixed in 4 days
- Disclosed after 34 days
Hello,
The "Import File Converter" can be abused by an admin to map the server directories and files, because the "File location" field doesn't sanitize the user input and allows access to root directories and files.
Steps to reproduce:
1- Go to http://localhost/ee/admin.php?/cp/utilities/import_converter
2- Set the "File location" to ///etc/, notice that the error "You must have at least 3 fields: username, screen_name, and email address", proving that the file exists.
3- Try with ///strukt/, notice the different error message, now it says "The path you submitted is not valid.", meaning the directory doesn't exist.
3- Now try with ///etc/passwd, the first error message shows up.
4- Finally, try with ///etc/strukt, the second message appears.
More successful test cases:
///etc/hosts
///usr/
///var/
../../../../../../../../etc/passwd
Regards
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 application does not validate or sanitise the file path input, and returns different error messages depending on whether the file exists, allowing an attacker to infer filesystem structure.
Impact
An admin could map the server's directory structure and identify existing files.
What the attacker needed
Admin access to the Import File Converter
The fix
The report does not state a fix; it notes the field does not sanitise input.
How it was found
- Go to the Import File Converter page in the admin panel.
- Set the 'File location' to a known directory and observe the error message indicating the file exists.
- Try a non-existent directory and observe a different error message indicating the path is invalid.
- Try a known file path and observe the first error message again.
- Try a non-existent file path and observe the second error message.
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.
This report is about a feature that lets an admin import files. The input field for the file location is not checked properly, so by trying different paths the admin can see which files and folders exist on the server. This is called directory enumeration.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.