An adversary embeds malicious scripts in content that will be served to web browsers. The goal of the attack is for the target software, the client-side browser, to execute the script with the users' privilege level. An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute code and scripts. Web browsers, for example, have some simple security controls in place, but if a remote attacker is allowed to execute scripts (through injecting them in to user-generated content like bulletin boards) then these controls may be bypassed. Further, these attacks are very difficult for an end user to detect.
Description
Attack Execution Flow
Step 1
Explore[Survey the application for user-controllable inputs] Using a browser or an automated tool, an attacker 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 and analyze the web pages to find entry points. 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.
Use a browser to manually explore the website and analyze how it is constructed. Many browsers' plugins are available to facilitate the analysis or automate the discovery.
[Survey the application for user-controllable inputs] Utilizzando un browser o uno strumento automatizzato, un attaccante 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 potenziali punti di ingresso per l'applicazione web.
Utilizza uno strumento di spidering per seguire e registrare tutti i link e analizzare le pagine web per trovare punti di ingresso. Prendi nota in particolare 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.
Usa un browser per esplorare manualmente il sito e analizzare come è costruito. Sono disponibili molti plugin per browser che facilitano l'analisi o automatizzano la scoperta.
Attack Techniques
-
Use a proxy tool to record all links visited during a manual traversal of the web application.
-
Use a browser to manually explore the website and analyze how it is constructed. Many browsers' plugins are available to facilitate the analysis or automate the discovery.IT: Utilizza uno strumento proxy per registrare tutti i link visitati durante una navigazione manuale dell'applicazione web.
-
Use a spidering tool to follow and record all links and analyze the web pages to find entry points. Make special note of any links that include parameters in the URL.IT: Utilizza uno strumento proxy per registrare tutti i link visitati durante una navigazione manuale dell'applicazione web.
Step 2
Experiment[Probe identified potential entry points for XSS vulnerability] The attacker uses the entry points gathered in the 'Explore' phase as a target list and injects various common script payloads to determine if an entry point actually represents a vulnerability and to characterize the extent to which the vulnerability can be exploited.
Use a list of XSS probe strings to inject script in parameters of known URLs. If possible, the probe strings contain a unique identifier.
Use a proxy tool to record results of manual input of XSS probes in known URLs.
Use a list of XSS probe strings to inject script into UI entry fields. If possible, the probe strings contain a unique identifier.
Use a list of XSS probe strings to inject script into resources accessed by the application. If possible, the probe strings contain a unique identifier.
Sperimentazione
[Probe identificata potenziale vulnerabilità XSS] L'attaccante utilizza i punti di ingresso raccolti nella fase "Esplora" come lista di obiettivi e inietta vari payload di script comuni per determinare se un punto di ingresso rappresenta effettivamente una vulnerabilità e per caratterizzare la misura in cui la vulnerabilità può essere sfruttata.
Utilizzare una lista di stringhe di probe XSS per iniettare script nei parametri di URL noti. Se possibile, le stringhe di probe contengono un identificatore univoco.
Utilizzare uno strumento proxy per registrare i risultati dell'inserimento manuale di probe XSS in URL noti.
Utilizzare una lista di stringhe di probe XSS per iniettare script nei campi di input dell'interfaccia utente. Se possibile, le stringhe di probe contengono un identificatore univoco.
Utilizzare una lista di stringhe di probe XSS per iniettare script nelle risorse accessibili dall'applicazione. Se possibile, le stringhe di probe contengono un identificatore univoco.
Attack Techniques
-
Use a list of XSS probe strings to inject script in parameters of known URLs. If possible, the probe strings contain a unique identifier.
-
Use a list of XSS probe strings to inject script into UI entry fields. If possible, the probe strings contain a unique identifier.IT: Utilizza una lista di stringhe di probe XSS per iniettare script nei parametri di URL noti. Se possibile, le stringhe di probe contengono un identificatore univoco.
-
Use a proxy tool to record results of manual input of XSS probes in known URLs.IT: Utilizza una lista di stringhe di probe XSS per iniettare script nei parametri di URL noti. Se possibile, le stringhe di probe contengono un identificatore univoco.
-
Use a list of XSS probe strings to inject script into resources accessed by the application. If possible, the probe strings contain a unique identifier.IT: Utilizza una lista di stringhe di probe XSS per iniettare script nei parametri di URL noti. Se possibile, le stringhe di probe contengono un identificatore univoco.
Step 3
Exploit[Steal session IDs, credentials, page content, etc.] As the attacker succeeds in exploiting the vulnerability, they can choose to steal user's credentials in order to reuse or to analyze them later on.
Develop malicious JavaScript that is injected through vectors identified during the Experiment Phase and loaded by the victim's browser and sends document information to the attacker.
Develop malicious JavaScript that injected through vectors identified during the Experiment Phase and takes commands from an attacker's server and then causes the browser to execute appropriately.
[Rubare session ID, credenziali, contenuto della pagina, ecc.] Man mano che l'attaccante riesce a sfruttare la vulnerabilità, può scegliere di rubare le credenziali dell'utente per riutilizzarle o analizzarle successivamente.
Sviluppare JavaScript dannoso che viene iniettato attraverso vettori identificati durante la Fase di Sperimentazione e caricato dal browser della vittima, inviando informazioni sul documento all'attaccante.
Sviluppare JavaScript dannoso che viene iniettato attraverso vettori identificati durante la Fase di Sperimentazione, riceve comandi da un server dell'attaccante e quindi induce il browser ad eseguirli in modo appropriato.
Attack Techniques
-
Develop malicious JavaScript that is injected through vectors identified during the Experiment Phase and loaded by the victim's browser and sends document information to the attacker.
-
Develop malicious JavaScript that injected through vectors identified during the Experiment Phase and takes commands from an attacker's server and then causes the browser to execute appropriately.IT: Sviluppare JavaScript dannoso che viene iniettato attraverso vettori identificati durante la Fase di Sperimentazione e caricato dal browser della vittima, inviando informazioni sul documento all'attaccante.
Step 4
Exploit[Forceful browsing] When the attacker targets the current application or another one (through CSRF vulnerabilities), the user will then be the one who perform the attacks without being aware of it. These attacks are mostly targeting application logic flaws, but it can also be used to create a widespread attack against a particular website on the user's current network (Internet or not).
Develop malicious JavaScript that is injected through vectors identified during the Experiment Phase and loaded by the victim's browser and performs actions on the same web site
Develop malicious JavaScript that injected through vectors identified during the Experiment Phase and takes commands from an attacker's server and then causes the browser to execute request to other web sites (especially the web applications that have CSRF vulnerabilities).
[Forceful browsing] Quando l'attaccante prende di mira l'applicazione corrente o un'altra (tramite vulnerabilità CSRF), l'utente sarà colui che esegue gli attacchi senza esserne consapevole. Questi attacchi mirano principalmente a sfruttare vulnerabilità nella logica dell'applicazione, ma possono anche essere utilizzati per creare un attacco diffuso contro un sito web specifico sulla rete corrente dell'utente (Internet o meno).
Sviluppare JavaScript dannoso che viene iniettato attraverso vettori identificati durante la Fase di Sperimentazione e caricato dal browser della vittima, eseguendo azioni sullo stesso sito web
Sviluppare JavaScript dannoso che, iniettato tramite vettori identificati durante la Fase di Sperimentazione, riceve comandi da un server dell'attaccante e quindi induce il browser a eseguire richieste ad altri siti web (specialmente le applicazioni web che presentano vulnerabilità CSRF).
Attack Techniques
-
Develop malicious JavaScript that is injected through vectors identified during the Experiment Phase and loaded by the victim's browser and performs actions on the same web site
-
Develop malicious JavaScript that injected through vectors identified during the Experiment Phase and takes commands from an attacker's server and then causes the browser to execute request to other web sites (especially the web applications that have CSRF vulnerabilities).IT: Sviluppare JavaScript dannoso che venga iniettato tramite vettori identificati durante la Fase di Sperimentazione e caricato dal browser della vittima, eseguendo azioni sullo stesso sito web
Step 5
Exploit[Content spoofing] By manipulating the content, the attacker targets the information that the user would like to get from the website.
Develop malicious JavaScript that is injected through vectors identified during the Experiment Phase and loaded by the victim's browser and exposes attacker-modified invalid information to the user on the current web page.
[Content spoofing] Manipolando il contenuto, l'attaccante mira alle informazioni che l'utente desidera ottenere dal sito web.
Sviluppa JavaScript dannoso che viene iniettato attraverso vettori identificati durante la Fase di Sperimentazione e caricato dal browser della vittima, esponendo all'utente informazioni non valide modificate dall'attaccante sulla pagina web corrente.
Attack Techniques
-
Develop malicious JavaScript that is injected through vectors identified during the Experiment Phase and loaded by the victim's browser and exposes attacker-modified invalid information to the user on the current web page.