An adversary crafts a request to a target that results in the target listing/indexing the content of a directory as output. One common method of triggering directory contents as output is to construct a request containing a path that terminates in a directory name rather than a file name since many applications are configured to provide a list of the directory's contents when such a request is received. An adversary can use this to explore the directory tree on a target as well as learn the names of files. This can often end up revealing test files, backup files, temporary files, hidden files, configuration files, user accounts, script contents, as well as naming conventions, all of which can be used by an attacker to mount additional attacks.
Description
Attack Execution Flow
Step 1
Explore[Directory Discovery] Use a method, either manual, scripted, or automated to discover the directories on the server by making requests for directories that may possibly exist. During this phase the adversary is less concerned with whether a directory can be accessed or indexed and more focused on simply discovering what directories do exist on the target.
Send requests to the web server for common directory names
If directories are discovered that are native to a server type further refine the directory search to include directories usually present on those types of servers.
Search for uncommon or potentially user created directories that may be present.
[Directory Discovery] Utilizza un metodo, manuale, scriptato o automatizzato, per scoprire le directory sul server effettuando richieste per directory che potrebbero esistere. Durante questa fase, l’avversario è meno interessato a se una directory può essere accessibile o indicizzata e più concentrato sulla semplice scoperta delle directory effettivamente presenti sul target.
Invia richieste al web server per nomi di directory comuni
Se vengono scoperte directory native di un tipo di server, perfeziona ulteriormente la ricerca di directory includendo quelle solitamente presenti su quei tipi di server.
Cerca directory non comuni o potenzialmente create dall’utente che potrebbero essere presenti.
Attack Techniques
-
Send requests to the web server for common directory names
-
If directories are discovered that are native to a server type further refine the directory search to include directories usually present on those types of servers.IT: Invia richieste al server web per nomi di directory comuni
-
Search for uncommon or potentially user created directories that may be present.IT: Invia richieste al server web per nomi di directory comuni
Step 2
Experiment[Iteratively explore directory/file structures] The adversary attempts to access the discovered directories that allow access and may attempt to bypass server or application level ACLs by using manual or automated methods
Use a scanner tool to dynamically add directories/files to include their scan based upon data obtained in initial probes.
Use a browser to manually explore the website by issuing a request ending the URL in a slash '/'.
Attempt to bypass ACLs on directories by using methods that known to work against some server types by appending data to the directory request. For instance, appending a Null byte to the end of the request which may cause an ACL to fail and allow access.
Sequentially request a list of common base files to each directory discovered.
Try multiple fuzzing techniques to list directory contents for directories that will not reveal their contents with a '/' request
[Esplorazione iterativa di strutture di directory/file] L'adversary tenta di accedere alle directory scoperte che consentono l'accesso e può tentare di bypassare le ACL a livello di server o applicazione utilizzando metodi manuali o automatizzati.
Utilizzare uno strumento scanner per aggiungere dinamicamente directory/file e includere la loro scansione in base ai dati ottenuti nelle sonde iniziali.
Utilizzare un browser per esplorare manualmente il sito web inviando una richiesta terminante con una slash '/'.
Tentare di bypassare le ACL sulle directory utilizzando metodi noti per funzionare contro alcuni tipi di server, ad esempio aggiungendo dati alla richiesta di directory. Per esempio, aggiungendo un byte Null alla fine della richiesta, il che potrebbe causare il fallimento di un'ACL e consentire l'accesso.
Richiedere sequenzialmente una lista di file di base comuni a ciascuna directory scoperta.
Provare diverse tecniche di fuzzing per elencare i contenuti delle directory che non rivelano i loro contenuti con una richiesta "/"
Attack Techniques
-
Sequentially request a list of common base files to each directory discovered.
-
Attempt to bypass ACLs on directories by using methods that known to work against some server types by appending data to the directory request. For instance, appending a Null byte to the end of the request which may cause an ACL to fail and allow access.IT: Richiedi sequenzialmente un elenco di file di base comuni per ogni directory scoperta.
-
Use a scanner tool to dynamically add directories/files to include their scan based upon data obtained in initial probes.IT: Richiedi sequenzialmente un elenco di file di base comuni per ogni directory scoperta.
-
Use a browser to manually explore the website by issuing a request ending the URL in a slash '/'.IT: Richiedi sequenzialmente un elenco di file di base comuni per ogni directory scoperta.
-
Try multiple fuzzing techniques to list directory contents for directories that will not reveal their contents with a "/" requestIT: Richiedi sequenzialmente un elenco di file di base comuni per ogni directory scoperta.
Step 3
Exploit[Read directories or files which are not intended for public viewing.] The adversary attempts to access the discovered directories that allow access and may attempt to bypass server or application level ACLs by using manual or automated methods
Try multiple exploit techniques to list directory contents for directories that will not reveal their contents with a '/' request
Try other known exploits to elevate privileges sufficient to bypass protected directories.
List the files in the directory by issuing a request with the URL ending in a '/' slash.
Access the files via direct URL and capture contents.
Attempt to bypass ACLs on directories by using methods that are known to work against some server types by appending data to the directory request. For instance, appending a Null byte to the end of the request which may cause an ACL to fail and allow access.
Sequentially request a list of common base files to each directory discovered.
[Leggere directory o file non destinati alla visualizzazione pubblica.] L'attore malevolo tenta di accedere alle directory scoperte che consentono l'accesso e può tentare di bypassare le ACL a livello di server o applicazione utilizzando metodi manuali o automatizzati.
Provare più tecniche di exploit per elencare i contenuti delle directory che non rivelano i loro contenuti con una richiesta "/"
Provare altri exploit noti per elevare i privilegi sufficienti a bypassare le directory protette.
Elencare i file nella directory inviando una richiesta con l'URL che termina con uno "/".
Accedere ai file tramite URL diretto e catturare i contenuti.
Tentare di bypassare le ACL sulle directory utilizzando metodi noti per funzionare con alcuni tipi di server, ad esempio aggiungendo dati alla richiesta di directory. Per esempio, aggiungendo un byte Null alla fine della richiesta, il che potrebbe causare il fallimento dell'ACL e consentire l'accesso.
Richiedere sequenzialmente una lista di file di base comuni a ogni directory scoperta.
Attack Techniques
-
List the files in the directory by issuing a request with the URL ending in a "/" slash.
-
Attempt to bypass ACLs on directories by using methods that are known to work against some server types by appending data to the directory request. For instance, appending a Null byte to the end of the request which may cause an ACL to fail and allow access.IT: Elenca i file nella directory inviando una richiesta con l'URL che termina con una barra "/" slash.
-
Try multiple exploit techniques to list directory contents for directories that will not reveal their contents with a "/" requestIT: Elenca i file nella directory inviando una richiesta con l'URL che termina con una barra "/" slash.
-
Try other known exploits to elevate privileges sufficient to bypass protected directories.IT: Elenca i file nella directory inviando una richiesta con l'URL che termina con una barra "/" slash.
-
Access the files via direct URL and capture contents.IT: Elenca i file nella directory inviando una richiesta con l'URL che termina con una barra "/" slash.
-
Sequentially request a list of common base files to each directory discovered.IT: Elenca i file nella directory inviando una richiesta con l'URL che termina con una barra "/" slash.