An adversary uses alternate forms of keywords or commands that result in the same action as the primary form but which may not be caught by filters. For example, many keywords are processed in a case insensitive manner. If the site's web filtering algorithm does not convert all tags into a consistent case before the comparison with forbidden keywords it is possible to bypass filters (e.g., incomplete black lists) by using an alternate case structure. For example, the \'script\' tag using the alternate forms of \'Script\' or \'ScRiPt\' may bypass filters where \'script\' is the only form tested. Other variants using different syntax representations are also possible as well as using pollution meta-characters or entities that are eventually ignored by the rendering engine. The attack can result in the execution of otherwise prohibited functionality.
Description
Attack Execution Flow
Step 1
Explore[Survey the application for user-controllable inputs] Using a browser or an automated tool, an adversary follows all public links and actions on a web site. They record all the links, the forms, the resources accessed and all other potential entry-points for the web application.
Use a spidering tool to follow and record all links. Make special note of any links that include parameters in the URL.
Use a proxy tool to record all links visited during a manual traversal of the web application. Make special note of any links that include parameters in the URL. Manual traversal of this type is frequently necessary to identify forms that are GET method forms rather than POST forms.
Use a browser to manually explore the website and analyze how it is constructed. Many browser's plugins are available to facilitate the analysis or automate the URL discovery.
[Esamina l'applicazione alla ricerca di input controllabili dall'utente] Utilizzando un browser o uno strumento automatizzato, un adversary segue tutti i link pubblici e le azioni su un sito web. Registrano tutti i link, i moduli, le risorse accessate e tutti gli altri possibili punti di ingresso per l'applicazione web.
Utilizza uno strumento di spidering per seguire e registrare tutti i link. Prendi nota speciale di eventuali link che includono parametri nell'URL.
Utilizza uno strumento proxy per registrare tutti i link visitati durante una navigazione manuale dell'applicazione web. Prendi nota speciale di eventuali link che includono parametri nell'URL. La navigazione manuale di questo tipo è spesso necessaria per identificare moduli che utilizzano il metodo GET anziché POST.
Utilizza un browser per esplorare manualmente il sito web e analizzare come è costruito. Sono disponibili numerosi plugin per browser che facilitano l'analisi o automatizzano la scoperta degli URL.
Attack Techniques
-
Use a spidering tool to follow and record all links. Make special note of any links that include parameters in the URL.
-
Use a proxy tool to record all links visited during a manual traversal of the web application. Make special note of any links that include parameters in the URL. Manual traversal of this type is frequently necessary to identify forms that are GET method forms rather than POST forms.IT: Utilizza uno strumento di spidering per seguire e registrare tutti i link. Prendi nota in modo particolare di eventuali link che includono parametri nell'URL.
-
Use a browser to manually explore the website and analyze how it is constructed. Many browser's plugins are available to facilitate the analysis or automate the URL discovery.IT: Utilizza uno strumento di spidering per seguire e registrare tutti i link. Prendi nota in modo particolare di eventuali link che includono parametri nell'URL.
Step 2
Experiment[Probe identified potential entry points for XSS vulnerability] Possibly using an automated tool, an adversary requests variations on the inputs they surveyed before using alternate syntax. These inputs are designed to bypass incomplete filtering (e.g., incomplete HTML encoding etc.) and try many variations of characters injection that would enable the XSS payload. They record all the responses from the server that include unmodified versions of their script.
Use a list of XSS probe strings to inject in parameters of known URLs. If possible, the probe strings contain a unique identifier. Attempt numerous variations based on form, format, syntax & encoding.
Use a proxy tool to record results of manual input of XSS probes in known URLs.
[Probe identificato potenziali punti di ingresso per vulnerabilità XSS] Utilizzando possibilmente uno strumento automatizzato, un adversary richiede variazioni sugli input precedentemente analizzati, impiegando una sintassi alternativa. Questi input sono progettati per bypassare filtri incompleti (ad esempio, codifica HTML incompleta, ecc.) e tentano molteplici variazioni di iniezione di caratteri che consentirebbero l'esecuzione del payload XSS. Registrano tutte le risposte dal server che includono versioni non modificate del loro script.
Utilizzare una lista di stringhe probe XSS da iniettare nei parametri di URL noti. Se possibile, le stringhe probe contengono un identificatore univoco. Tentare numerose variazioni basate su forma, formato, sintassi e codifica.
Utilizzare uno strumento proxy per registrare i risultati dell'inserimento manuale di probe XSS in URL noti.
Attack Techniques
-
Use a list of XSS probe strings to inject in parameters of known URLs. If possible, the probe strings contain a unique identifier. Attempt numerous variations based on form, format, syntax & encoding.
-
Use a proxy tool to record results of manual input of XSS probes in known URLs.IT: Utilizza un elenco di stringhe di probe XSS da inserire nei parametri di URL noti. Se possibile, le stringhe di probe contengono un identificatore univoco. Prova numerose variazioni basate su forma, formato, sintassi e codifica.
Step 3
Experiment[Craft malicious XSS URL] Once the adversary has determined which parameters are vulnerable to XSS, they will craft a malicious URL containing the XSS exploit. The adversary can have many goals, from stealing session IDs, cookies, credentials, and page content from the victim.
Change a URL parameter to include a malicious script tag created using alternate syntax to bypass filters.
Send information gathered from the malicious script to a remote endpoint.
[Creare URL XSS dannoso] Una volta che l'attaccante ha determinato quali parametri sono vulnerabili a XSS, creerà un URL dannoso contenente l'exploit XSS. L'attaccante può avere molti obiettivi, dal rubare session ID, cookie, credenziali e contenuti della pagina dalla vittima.
Modificare un parametro URL per includere un tag script dannoso creato utilizzando una sintassi alternativa per bypassare i filtri.
Inviare le informazioni raccolte dal script dannoso a un endpoint remoto.
Attack Techniques
-
Change a URL parameter to include a malicious script tag created using alternate syntax to bypass filters.
-
Send information gathered from the malicious script to a remote endpoint.IT: Modificare un parametro URL per includere un tag script dannoso creato utilizzando una sintassi alternativa per bypassare i filtri.
Step 4
Exploit[Get victim to click URL] In order for the attack to be successful, the victim needs to access the malicious URL.
Send a phishing email to the victim containing the malicious URL. This can be hidden in a hyperlink as to not show the full URL, which might draw suspicion.
Put the malicious URL on a public forum, where many victims might accidentally click the link.
[Indurre la vittima a cliccare sull'URL] Perché l'attacco abbia successo, la vittima deve accedere all'URL dannoso.
Invia un'email di phishing alla vittima contenente l'URL dannoso. Questo può essere nascosto in un collegamento ipertestuale per non mostrare l'URL completo, il che potrebbe suscitare sospetti.
Pubblica l'URL dannoso su un forum pubblico, dove molte vittime potrebbero cliccare accidentalmente sul link.
Attack Techniques
-
Send a phishing email to the victim containing the malicious URL. This can be hidden in a hyperlink as to not show the full URL, which might draw suspicion.
-
Put the malicious URL on a public forum, where many victims might accidentally click the link.IT: Invia un'email di phishing alla vittima contenente l'URL dannoso. Questo può essere nascosto all'interno di un collegamento ipertestuale per non mostrare l'URL completo, che potrebbe destare sospetti.