> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/web/xss.md).

# Cross-Site Scripting (XSS)

Cross-Site-Scripting, reflektiertes XSS, gespeichertes XSS, DOM-XSS, CSP-Umgehung, AngularJS-Sandbox-Ausbruch, Cookie-Diebstahl und Erfassung von Zugangsdaten.

XSS-Hinweise für PortSwigger Web Security Academy Labs, mit Schwerpunkt auf praktischen Testschritten, Burp Suite-Validierung, Payload-Verhalten und dem Ausnutzungs-Workflow.

## Test-Workflow

1. Identifizieren Sie die verwundbare Funktion und die relevante Anfrage, den Parameter, den Header, das Cookie oder die sink auf der Browser-Seite.
2. Reproduzieren Sie das Verhalten in Burp Suite mit einem minimalen Payload, bevor Sie den Angriff ausweiten.
3. Validieren Sie die Auswirkung mit einem klaren Proof of Concept, wie etwa Kontozugriff, Datenpreisgabe, Codeausführung, SSRF oder Statusänderung.
4. Behalten Sie Payloads, URLs, Tokens und Lab-Zugangsdaten unverändert, während Sie den Ausnutzungspfad dokumentieren.

## Labs

<table><thead><tr><th data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="/de/web/xss/angularjs-sandbox-escape-with-csp.md">AngularJS-Sandbox-Ausbruch mit CSP</a></td></tr><tr><td><a href="/de/web/xss/angularjs-sandbox-escape-without-strings.md">AngularJS-Sandbox-Ausbruch ohne Strings</a></td></tr><tr><td><a href="/de/web/xss/cookie-theft-via-xss.md">Cookie-Diebstahl via XSS</a></td></tr><tr><td><a href="/de/web/xss/dom-xss-in-href-attribute-with-jquery-location-search.md">DOM-XSS in einem href-Attribut mit jQuery und location.search</a></td></tr><tr><td><a href="/de/web/xss/dom-xss-in-angularjs-with-encoded-angle-brackets-and-quotes.md">DOM-XSS in AngularJS mit kodierten spitzen Klammern und Anführungszeichen</a></td></tr><tr><td><a href="/de/web/xss/dom-xss-with-innerhtml-and-location-search.md">DOM-XSS mit innerHTML und location.search</a></td></tr><tr><td><a href="/de/web/xss/dom-xss-with-jquery-hashchange-event.md">DOM-XSS mit jQuery und hashchange</a></td></tr><tr><td><a href="/de/web/xss/password-capture-via-xss.md">Passwort-Erfassung via XSS</a></td></tr><tr><td><a href="/de/web/xss/reflected-xss-in-a-javascript-string-with-html-encoded-angle-brackets.md">Reflektiertes XSS in einem JavaScript-String mit HTML-kodierten spitzen Klammern</a></td></tr><tr><td><a href="/de/web/xss/reflected-xss-protected-by-strict-csp-with-dangling-markup.md">Reflektiertes XSS, geschützt durch eine sehr strenge CSP, Angriff per Dangling Markup</a></td></tr><tr><td><a href="/de/web/xss/reflected-xss-with-svg-tags-allowed.md">Reflektiertes XSS mit erlaubten SVG-Tags</a></td></tr><tr><td><a href="/de/web/xss/stored-xss-in-anchor-href-with-encoded-quotes.md">Gespeichertes XSS in einem Anchor-href mit kodierten Anführungszeichen</a></td></tr><tr><td><a href="/de/web/xss/stored-xss-in-html-context-without-encoding.md">Gespeichertes XSS im HTML-Kontext ohne Kodierung</a></td></tr><tr><td><a href="/de/web/xss/stored-xss-in-onclick-with-full-encoding.md">Gespeichertes XSS in onclick mit vollständiger Kodierung</a></td></tr><tr><td><a href="/de/web/xss/dom-xss-document-write-with-location-search.md">XSS-DOM document.write mit location.search</a></td></tr><tr><td><a href="/de/web/xss/reflected-dom-xss.md">DOM-basiertes reflektiertes XSS</a></td></tr><tr><td><a href="/de/web/xss/stored-dom-xss.md">DOM-basiertes gespeichertes XSS</a></td></tr><tr><td><a href="/de/web/xss/xss-dom-with-document-write-inside-a-select.md">DOM-XSS mit document.write innerhalb einer Select-Box</a></td></tr><tr><td><a href="/de/web/xss/xss-in-a-javascript-string-with-apostrophe-and-backslash-escaped.md">XSS in einem JavaScript-String mit maskiertem Apostroph und Backslash</a></td></tr><tr><td><a href="/de/web/xss/xss-in-a-javascript-string-with-encoded-angle-brackets-encoded-double-quotes-and-escaped-apostrophe.md">XSS in einem JavaScript-String mit kodierten spitzen Klammern, kodierten doppelten Anführungszeichen und maskiertem Apostroph</a></td></tr><tr><td><a href="/de/web/xss/xss-in-javascript-url-with-limited-characters.md">XSS in einer JavaScript-URL mit eingeschränkten Zeichen</a></td></tr><tr><td><a href="/de/web/xss/xss-in-template-literal-with-escaped-unicode.md">XSS in einer literalen Vorlage mit maskierten Unicode-Zeichen</a></td></tr><tr><td><a href="/de/web/xss/xss-reflected-in-an-attribute-with-encoded-angle-brackets.md">Reflektiertes XSS in einem Attribut mit kodierten spitzen Klammern</a></td></tr><tr><td><a href="/de/web/xss/reflected-xss-in-html-with-blocked-tags.md">Reflektiertes XSS in HTML mit blockierten Tags</a></td></tr><tr><td><a href="/de/web/xss/reflected-xss-in-html-without-encoding.md">Reflektiertes XSS in HTML ohne Kodierung</a></td></tr><tr><td><a href="/de/web/xss/reflected-xss-in-canonical-link-tag.md">Reflektiertes XSS im Canonical-Tag</a></td></tr><tr><td><a href="/de/web/xss/reflected-xss-with-custom-tags-only.md">Reflektiertes XSS nur mit benutzerdefinierten Tags</a></td></tr><tr><td><a href="/de/web/xss/xss-to-bypass-csrf-defenses.md">XSS zur Umgehung von CSRF-Schutzmaßnahmen</a></td></tr><tr><td><a href="/de/web/xss/xss-with-blocked-events-and-href-attributes.md">XSS mit blockierten Ereignissen und href-Attributen</a></td></tr><tr><td><a href="/de/web/xss/xss-with-csp-bypass.md">XSS mit CSP und Umgehungstechnik</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/de/web/xss.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
