Existence of Folder path by guessing the path through response
A user with limited folder permissions could determine whether a hidden folder exists by observing different error messages when attempting to move a file to a guessed folder name. This allowed enumeration of folder names that the user was not authorised to see.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 10 days
- Paid in 10 days
- Disclosed after 7 months
Enter the support PIN from your test site: 423088 Enter the name of your test site : https://bugbounty5.brickftp.com Enter the subdomain from your test site : https://bugbounty5.brickftp.com
Description
Suppose there are 2 Folders in the site
Test1
Test2
but a member has only Admin permission to Test1 , he cant see the folder Test2
However, it is possible to know if such folder/path (Test2) exist in a site by guessing the names of the folder.
Steps
1.There are 2 folders in a site namely Test1 and Test2
2. Member has full Admin permission to Test1 and no permission at all to Test2. Member wont be able to see the folder Test2 in his account at all.
3. Now member selects any file from Test1 using checkbox and select move option from dropdown. he gets only path to Test1 folders.
4. now if i type some random names of the folders in the box and say move, it will throw the error. but if type the valid names of folders which may be in a site, it will say can not write.
5. this proves that, if you can guess correct name of folder/path, it tells you the existence of the path.
POC https://youtu.be/mzPXVHIDnzs
Resolution The response should be same for both requests. folder exist or not, it should throw 404!
The date you tested for and found the vulnerability 08/10/2016
**The following affirmative statement ** I HAVE READ AND UNDERSTAND AND AGREE TO THE TERMS OF THE BUG BOUNTY PROGRAM. I AGREE TO THE BRICKFTP TERMS OF SERVICE. I HAVE COMPLIED AND WILL COMPLY WITH THE RULES OF THE PROGRAM AND THE TERMS OF SERVICE. I HAVE NOT DISCLOSED THIS SUBMISSION TO ANYONE. I DISCOVERED IT MYSELF. I WILL NOT DISCLOSE THIS SUBMISSION TO ANYONE. I DO WANT MY NAME PUBLISHED ON YOUR HALL OF FAME IF THIS IS ACCEPTED
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
Impact
An attacker with limited access could discover the names of folders they are not permitted to see.
What the attacker needed
A user account with limited folder permissions; knowledge of a file to move
The fix
The application should return the same response (e.g., a 404 error) regardless of whether the folder exists or not, to avoid leaking information.
How it was found
- Create two folders, Test1 and Test2, in the site.
- Give a member full admin permission to Test1 and no permission to Test2.
- As the member, select a file in Test1 and choose the move option.
- Enter a random folder name and attempt to move; an error is shown.
- Enter the name of an existing folder (Test2) and attempt to move; a different error ('cannot write') is shown, indicating the folder exists.
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.
In many systems, users have access to only some folders. Here, when a user tried to move a file to a folder they couldn't see, the system gave different error messages depending on whether the folder existed or not. This let the user figure out the names of hidden folders by guessing and watching the responses.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.