> 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/fr/web/xss.md).

# Cross-Site Scripting (XSS)

Injection de scripts intersites, XSS réfléchi, XSS stocké, XSS DOM, contournement de CSP, évasion du bac à sable AngularJS, vol de cookies et capture d’identifiants.

Notes XSS pour les laboratoires de la PortSwigger Web Security Academy, axées sur les étapes de test pratiques, la validation dans Burp Suite, le comportement des charges utiles et le flux de travail d’exploitation.

## Flux de test

1. Identifiez la fonctionnalité vulnérable et la requête, le paramètre, l’en-tête, le cookie ou le point d’injection côté navigateur pertinent.
2. Reproduisez le comportement dans Burp Suite avec une charge utile minimale avant d’intensifier l’attaque.
3. Validez l’impact avec une preuve de concept claire, comme l’accès au compte, la divulgation de données, l’exécution de code, le SSRF ou un changement d’état.
4. Conservez inchangés les charges utiles, les URL, les jetons et les identifiants du laboratoire tout en documentant le chemin d’exploitation.

## Laboratoires

<table><thead><tr><th data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="/fr/web/xss/angularjs-sandbox-escape-with-csp.md">Évasion du bac à sable AngularJS avec CSP</a></td></tr><tr><td><a href="/fr/web/xss/angularjs-sandbox-escape-without-strings.md">Évasion du bac à sable AngularJS sans chaînes</a></td></tr><tr><td><a href="/fr/web/xss/cookie-theft-via-xss.md">Vol de cookies via XSS</a></td></tr><tr><td><a href="/fr/web/xss/dom-xss-in-href-attribute-with-jquery-location-search.md">XSS DOM dans un attribut href avec jQuery et location.search</a></td></tr><tr><td><a href="/fr/web/xss/dom-xss-in-angularjs-with-encoded-angle-brackets-and-quotes.md">XSS DOM dans AngularJS avec chevrons et guillemets encodés</a></td></tr><tr><td><a href="/fr/web/xss/dom-xss-with-innerhtml-and-location-search.md">XSS DOM avec innerHTML et location.search</a></td></tr><tr><td><a href="/fr/web/xss/dom-xss-with-jquery-hashchange-event.md">XSS DOM avec jQuery et hashchange</a></td></tr><tr><td><a href="/fr/web/xss/password-capture-via-xss.md">Capture de mot de passe via XSS</a></td></tr><tr><td><a href="/fr/web/xss/reflected-xss-in-a-javascript-string-with-html-encoded-angle-brackets.md">XSS réfléchi dans une chaîne JavaScript avec chevrons encodés en HTML</a></td></tr><tr><td><a href="/fr/web/xss/reflected-xss-protected-by-strict-csp-with-dangling-markup.md">XSS réfléchi protégé par une CSP très stricte, attaqué par balisage pendant</a></td></tr><tr><td><a href="/fr/web/xss/reflected-xss-with-svg-tags-allowed.md">XSS réfléchi avec des balises SVG autorisées</a></td></tr><tr><td><a href="/fr/web/xss/stored-xss-in-anchor-href-with-encoded-quotes.md">XSS stocké dans un href d’ancre avec guillemets encodés</a></td></tr><tr><td><a href="/fr/web/xss/stored-xss-in-html-context-without-encoding.md">XSS stocké dans un contexte HTML sans encodage</a></td></tr><tr><td><a href="/fr/web/xss/stored-xss-in-onclick-with-full-encoding.md">XSS stocké dans onclick avec encodage complet</a></td></tr><tr><td><a href="/fr/web/xss/dom-xss-document-write-with-location-search.md">XSS DOM document.write avec location.search</a></td></tr><tr><td><a href="/fr/web/xss/reflected-dom-xss.md">XSS DOM réfléchi</a></td></tr><tr><td><a href="/fr/web/xss/stored-dom-xss.md">XSS DOM stocké</a></td></tr><tr><td><a href="/fr/web/xss/xss-dom-with-document-write-inside-a-select.md">XSS DOM avec document.write à l’intérieur d’un select</a></td></tr><tr><td><a href="/fr/web/xss/xss-in-a-javascript-string-with-apostrophe-and-backslash-escaped.md">XSS dans une chaîne JavaScript avec apostrophe et antislash échappés</a></td></tr><tr><td><a href="/fr/web/xss/xss-in-a-javascript-string-with-encoded-angle-brackets-encoded-double-quotes-and-escaped-apostrophe.md">XSS dans une chaîne JavaScript avec chevrons encodés, guillemets doubles encodés et apostroph</a></td></tr><tr><td><a href="/fr/web/xss/xss-in-javascript-url-with-limited-characters.md">XSS dans une URL JavaScript avec caractères limités</a></td></tr><tr><td><a href="/fr/web/xss/xss-in-template-literal-with-escaped-unicode.md">XSS dans un modèle littéral avec caractères Unicode échappés</a></td></tr><tr><td><a href="/fr/web/xss/xss-reflected-in-an-attribute-with-encoded-angle-brackets.md">XSS réfléchi dans un attribut avec chevrons encodés</a></td></tr><tr><td><a href="/fr/web/xss/reflected-xss-in-html-with-blocked-tags.md">XSS réfléchi dans le HTML avec balises bloquées</a></td></tr><tr><td><a href="/fr/web/xss/reflected-xss-in-html-without-encoding.md">XSS réfléchi dans le HTML sans encodage</a></td></tr><tr><td><a href="/fr/web/xss/reflected-xss-in-canonical-link-tag.md">XSS réfléchi dans la balise canonique</a></td></tr><tr><td><a href="/fr/web/xss/reflected-xss-with-custom-tags-only.md">XSS réfléchi avec seulement des balises personnalisées</a></td></tr><tr><td><a href="/fr/web/xss/xss-to-bypass-csrf-defenses.md">XSS pour contourner les défenses CSRF</a></td></tr><tr><td><a href="/fr/web/xss/xss-with-blocked-events-and-href-attributes.md">XSS avec événements bloqués et attributs href</a></td></tr><tr><td><a href="/fr/web/xss/xss-with-csp-bypass.md">XSS avec CSP et technique de contournement</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/fr/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.
