> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/security/bwapp/a3-cross-site-scripting.md).

# A3 Cross Site Scripting

## Reflected (GET)

* 반사형

medium

high

## Reflected (POST)

***

## Reflected (JSON)

반응은 하지만 값을 출력하지는 않다.

이전의 스크립트는 종료하고 새로운 스크립트를 추가

```
</script><script>alert(document.cookie)</script>
```

적용된다.

{% stepper %}
{% step %}

### medium

예제 입력:

```html
<img src=x onerror=alret('hello')>
```

{% endstep %}
{% endstepper %}

## Reflected (Back Button)

<br>

예제 헤더:

```
Referer: http://192.168.56.122/bWAPP/xss_back_button.php
```

* 뒤로가기로 넘어가는 사이트

## Reflected (Custom Header)

\ <br>

## Reflected (Eval)

\
\
&#x20;

## Reflected (HREF)

\
\ <br>

* 원하는 동작은 아니지만 비정상적으로 움직임다.

입력을 다음과 같이 수정하면 원하는 결과가 나올 것 같다:

```
</a><script>alert(document.cookie)</script><a>
```

정답

## Reflected (Login Form)

***

## phpMyAdmin BBCode Tag XSS

***

## Reflected ([PHP\_SELF](broken://pages/bde6faa1a9b94eb56d34975ca8ddc448fa938793))


---

# 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://krjaeh0.gitbook.io/j-log/security/bwapp/a3-cross-site-scripting.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.
