> 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/dom-xss-in-angularjs-with-encoded-angle-brackets-and-quotes.md).

# DOM-XSS in AngularJS mit kodierten spitzen Klammern und Anführungszeichen

### DOM-XSS in AngularJS-Ausdrücken mit HTML-kodierten spitzen Klammern und doppelten Anführungszeichen

Diese Aktivität zeigt eine XSS-DOM-Schwachstelle in einem AngularJS-Ausdruck, der von der Suchfunktion verwendet wird. AngularJS analysiert HTML-Knoten, die das `ng-app` Anweisung und ermöglicht es, Ausdrücke innerhalb doppelter geschweifter Klammern auszuwerten `{{ }}` — was missbraucht werden kann, um JavaScript auszuführen, selbst wenn die `<` und `>` spitzen Klammern und Anführungszeichen auf der HTML-Seite kodiert sind. Laborziel: Injizieren Sie einen AngularJS-Ausdruck, der `alert()`.

<figure><img src="/files/a134005e13258a470e77b47fc0fa6d92a45a185c" alt=""><figcaption></figcaption></figure>

* Die Website-Analyse mit Wappalyzer weist auf die Präsenz von AngularJS hin.
* Die Ressource All The ThingsPayloads enthält nützliche Payloads für diesen Fall (Beispiele unten).

Getestete Payloads

```javascript
{{constructor.constructor('alert(1)')()}}
```

```
{{[].pop.constructor&#40'alert/u00281/u0029'&#41&#40&#41}}
```

<figure><img src="/files/c66235c3fc8b219846580220ce2ecbb7f916d627" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/de/web/xss/dom-xss-in-angularjs-with-encoded-angle-brackets-and-quotes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
