Dark Mode
Capec-63 Detail
Cross-Site Scripting (XSS)
Standard Software Likelihood: High Typical Severity: Very High
Parents: 242
Children: 588 591 592
Threats: T290
Tools: 18
Not present
| External ID | Source | Link | Description |
|---|---|---|---|
| CAPEC-63 | capec | https://capec.mitre.org/data/definitions/63.html | |
| CWE-79 | cwe | http://cwe.mitre.org/data/definitions/79.html | |
| CWE-20 | cwe | http://cwe.mitre.org/data/definitions/20.html | |
| 08 | WASC | http://projects.webappsec.org/Cross-Site-Scripting | Cross-Site Scripting |
| OWASP Attacks | https://owasp.org/www-community/attacks/xss | Cross Site Scripting (XSS) | |
| REF-1 | reference_from_CAPEC | G. Hoglund, G. McGraw, Exploiting Software: How to Break Code, 2004--02, Addison-Wesley |
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.
| Techniques |
|---|
| 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. |
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.
| 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 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. |
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.
-
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).
-
Content spoofing: By manipulating the content, the attacker targets the information that the user would like to get from the website.
| 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. |
| 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). |
| 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. |
- Target client software must be a client that allows scripting communication from remote hosts, such as a JavaScript-enabled Web Browser.
- Ability to deploy a custom hostile service for access by targeted clients. Ability to communicate synchronously or asynchronously with client machine.
| Low | High |
|---|---|
| To achieve a redirection and use of less trusted source, an attacker can simply place a script in bulletin board, blog, wiki, or other user-generated content site that are echoed back to other client machines. | |
| Exploiting a client side vulnerability to inject malicious scripts into the browser's executable process. |
| Integrity | Availability | Confidentiality |
|---|---|---|
| Execute Unauthorized Commands (Run Arbitrary Code) | Execute Unauthorized Commands (Run Arbitrary Code) | Execute Unauthorized Commands (Run Arbitrary Code) |
| Modify Data | Read Data |
- Classic phishing attacks lure users to click on content that appears trustworthy, such as logos, and links that seem to go to their trusted financial institutions and online auction sites. But instead the attacker appends malicious scripts into the otherwise innocent appearing resources. The HTML source for a standard phishing attack looks like this: [Trusted Site](www.exampletrustedsite.com?Name=) When the user clicks the link, the appended script also executes on the local user's machine.