Skip to content
Info disclosure Disclosed report Beginner

don't allow directory browsing on grtp.co

The web server for grtp.co was configured to show directory listings for the /v1/ and /v2/ paths, allowing anyone to see the files inside those folders. An attacker could use this to find source code or other useful information for planning further attacks.

zuh4n Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after under an hour

Hello guys,

Details: The web server is configured to display the list of files contained in this directory. As a result of a misconfiguration - end user / attacker able to see content of the folders with systemically important files According to yours Scope (any other software we publish) - I found that one of sites: grtp.co is vulnerable to Directory listening

Vulnerable place: http://grtp.co/v1/ http://grtp.co/v2/

PoC:

grtp.jpg
grtp.jpg From the original on HackerOne

Impact: Exposing the contents of a directory can lead to an attacker gaining access to source code or providing useful information for the attacker to devise exploits, such as creation times of files or any information that may be encoded in file names. The directory listing may also compromise private or confidential data.

Remediation:

  • Configure your web server to prevent directory listings for all paths beneath the web root;
  • Place into each directory a default file (such as index.htm) that the web server will display instead of returning a directory listing.

Let me know if you have any question.

Thanks for your attention, Stas

The original report as published on HackerOne, by zuh4n. 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 web server was left with directory listing enabled and no default index file in those directories.

Impact

Exposing directory contents could let an attacker access source code or gather information useful for crafting exploits, and may compromise private or confidential data.

What the attacker needed

None

The fix

The web server should be configured to prevent directory listings for all paths, and each directory should contain a default file such as index.htm.

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 web server does not have a default page (like index.html) for a folder, it can show a list of all files in that folder instead. This is called directory listing or directory browsing. Here, the server showed such lists for two folders, which could let anyone see files that were not meant to be public.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by zuh4n

View all

9 more disclosed reports, best first.

More from Gratipay

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.