---
description: Brute Forcing Directories
---

# Arctic Forum

Many off the shelf applications like Apache web server, Django framework and Express are not secure by default; many use default credentials and even leave sensitive pages open to the public including:

* Admin panels
* Server status checks
* Debug pages

These pages contain information and functionality like paths to sensitive files on the server and version information, that can allow an attacker to learn more about the system.&#x20;

Attackers can enumerate directories by brute-forcing. This evolves sending requests to different pages on the server and using the server's response to verify the existence of a pages (and even access the page).

Depending on the application used, an attacker can easily find sensitive information when accessing the application. Examples include:

* Comments and API keys in the source code
* Password (Hashes) in requests and responses:
  * For responses, having sensitive information as part of GET requests is insecure as these requests are usually logged for debugging. This would mean anyone with access to the logs has information about it
  * For responses, sensitive information is usually put in headers, cookies or source code

After checking the aforementioned locations, an attacker can mostly use this extra information to enumerate the application. Examples of enumeration include:

* Cracking password hashes in the response to access user's accounts
* Using API keys to access functions and API calls without authorization
* Find hidden URLs and System information that they can use to find public exploits

![](https://3889206050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6DIEHtstePxj4NCmCC%2F-M7L-ibck-Pp_XjOtiAa%2F-M7L44B4LxonqJ_o-ASF%2Fimage.png?alt=media\&token=1ca97d82-6fa0-44d8-9fed-b653026bddef)

![](https://3889206050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6DIEHtstePxj4NCmCC%2F-M7L-ibck-Pp_XjOtiAa%2F-M7L4L_KBt_VHuMhRHtk%2Fimage.png?alt=media\&token=151a68b0-d4b6-4e5b-be66-7567838c1ec7)

![](https://3889206050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6DIEHtstePxj4NCmCC%2F-M7L-ibck-Pp_XjOtiAa%2F-M7L4nvKzMDidBfum6A9%2Fimage.png?alt=media\&token=e386993b-2ed5-42ac-be3d-af27528addcd)

Checking the source code of the _sysadmin_ directory

![](https://3889206050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6DIEHtstePxj4NCmCC%2F-M7L-ibck-Pp_XjOtiAa%2F-M7L4zLCMXUpcZZYinsu%2Fimage.png?alt=media\&token=8fe6f65a-3de8-43bd-87bd-b0019b3426e0)

The GitHub page has the admin credentials

![](https://3889206050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6DIEHtstePxj4NCmCC%2F-M7L-ibck-Pp_XjOtiAa%2F-M7L5Fv3W6ioPFJPSSNb%2Fimage.png?alt=media\&token=d8947a3d-3832-4570-94f7-1c2d2409321d)

![](https://3889206050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6DIEHtstePxj4NCmCC%2F-M7L-ibck-Pp_XjOtiAa%2F-M7L5P0x5dW7OjqXcVud%2Fimage.png?alt=media\&token=637af184-5f53-44e2-97d2-f659ad11d2ff)

Login with admin credentials

![](https://3889206050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6DIEHtstePxj4NCmCC%2F-M7L-ibck-Pp_XjOtiAa%2F-M7L5oeU0JiKv44SFo2x%2Fimage.png?alt=media\&token=f36254d2-758e-43ea-aed5-dace10ffef64)
