# XSS Reflected

## XSS - Reflected - First Order

Go to login page form <https://127.0.0.1/index.php?page=login.php>

and log in using login bypass or inserting password.

Go to a page vulnerable to XSS reflected like as: <https://127.0.0.1/index.php?page=dns-lookup.php>

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

injecting the javascript payload: `<script>alert(document.cookie)</script>` we can execute directly the command and obtain a reflected session cookie id of current account (admin):

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


---

# Agent Instructions: 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:

```
GET https://dev-angelist.gitbook.io/writeups-and-walkthroughs/mutillidae-ii/xss/xss-reflected.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
