Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
modul:m183:learningunits:lu10:lu10a [2025/12/27 19:10] dgaravaldimodul:m183:learningunits:lu10:lu10a [2025/12/27 21:02] (aktuell) dgaravaldi
Zeile 5: Zeile 5:
 A successful XSS attack can cause serious damage — including compromised user accounts, activation of Trojan code, manipulation of page content to trick users into sharing sensitive data, or exposure of session cookies that allow attackers to impersonate valid users.  A successful XSS attack can cause serious damage — including compromised user accounts, activation of Trojan code, manipulation of page content to trick users into sharing sensitive data, or exposure of session cookies that allow attackers to impersonate valid users. 
  
-\\ 
 \\ \\
 ==== Types of XSS Attacks ==== ==== Types of XSS Attacks ====
Zeile 13: Zeile 12:
   * **Stored XSS (Persistent)** – A malicious script is permanently injected into an application and served to all users.    * **Stored XSS (Persistent)** – A malicious script is permanently injected into an application and served to all users. 
   * **Reflected XSS (Non-Persistent)** – A malicious script is embedded in a URL or request, then reflected off the web server back to the user’s browser when the link is visited.    * **Reflected XSS (Non-Persistent)** – A malicious script is embedded in a URL or request, then reflected off the web server back to the user’s browser when the link is visited. 
- 
  
-\\ 
 \\ \\
 ==== What is Stored Cross-Site Scripting ==== ==== What is Stored Cross-Site Scripting ====
Zeile 21: Zeile 18:
  
 To execute a **stored XSS attack**, the attacker must find a vulnerability in a web application where user input is stored without proper validation or escaping. A common example is when a comment field or form accepts HTML input and embeds it directly into pages viewed by other users.  To execute a **stored XSS attack**, the attacker must find a vulnerability in a web application where user input is stored without proper validation or escaping. A common example is when a comment field or form accepts HTML input and embeds it directly into pages viewed by other users. 
- 
-{{stored_xss_example.png?300}} 
  
 **Example**: An attacker enters a comment containing JavaScript that steals session cookies. Every visitor who views the comment will run the malicious script unknowingly.  **Example**: An attacker enters a comment containing JavaScript that steals session cookies. Every visitor who views the comment will run the malicious script unknowingly. 
  
-\\ 
 \\ \\
 ==== Stored XSS Attack — Step by Step ==== ==== Stored XSS Attack — Step by Step ====
-1. The attacker discovers a page with an input field that allows HTML.  +{{:modul:m183:learningunits:lu10:stored-xss.png?600}} 
-2. They insert malicious JavaScript code into that field.  + 
-3. The application stores and later serves that code as part of normal content.  +    - The attacker discovers a page with an input field that allows HTML. 
-4. When other users visit the page, their browser executes the attack script. +    They insert malicious JavaScript code into that field.  
 +    The application stores and later serves that code as part of normal content. 
 +    When other users visit the page, their browser executes the attack script. 
  
-\\ 
 \\ \\
 ==== How Stored XSS Endangers Users ==== ==== How Stored XSS Endangers Users ====
Zeile 43: Zeile 38:
   * Malicious payloads can embed external JavaScript that reports user data back to the attacker.    * Malicious payloads can embed external JavaScript that reports user data back to the attacker. 
  
-\\ 
 \\ \\
 ==== Related Topics ==== ==== Related Topics ====
-[1]: https://www.imperva.com/learn/application-security/cross-site-scripting-xss-attacks/?utm_source=chatgpt.com "What is XSS | Stored Cross Site Scripting Example - Imperva" +[1]: https://owasp.org/www-community/attacks/xss/ "Cross Site Scripting (XSSOWASP" 
-[2]: https://www.imperva.com/learn/application-security/reflected-xss-attacks/?utm_source=chatgpt.com "Reflected XSS | How to Prevent a Non-Persistent Attack - Imperva+ 
-[3]: https://developer.mozilla.org/docs/Web/Security/Attacks/XSS?utm_source=chatgpt.com "Cross-site scripting (XSS) - Security | MDN"+[2]: https://developer.mozilla.org/docs/Web/Security/Attacks/XSS?utm_source=chatgpt.com "Cross-site scripting (XSS) - Security | MDN"
  
  • modul/m183/learningunits/lu10/lu10a.1766859014.txt.gz
  • Zuletzt geändert: 2025/12/27 19:10
  • von dgaravaldi