Skip to content
Info disclosure Disclosed report Beginner

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.

strukt Follow

Originally disclosed on HackerOne

  • 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

The original report as published on HackerOne, by strukt. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Go to the Import File Converter page in the admin panel.
  2. Set the 'File location' to a known directory and observe the error message indicating the file exists.
  3. Try a non-existent directory and observe a different error message indicating the path is invalid.
  4. Try a known file path and observe the first error message again.
  5. 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.

More by strukt

View all

15 more disclosed reports, best first.

More from ExpressionEngine

View all

The newest disclosed reports for this program.

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.