# Cross Site Request Forgery (CSRF)

Còn được gọi là tấn công bằng một cú nhấp chuột.

CSRF là một cuộc tấn công buộc người dùng cuối thực hiện các hành động không mong muốn trên ứng dụng web mà họ đang xác thực.

Ví dụ: Người dùng A được kết nối với trang web ngân hàng - `www.mybank.com`. Kẻ tấn công lừa người dùng tải xuống và thực thi mã. Mã này sẽ gửi yêu cầu tới `www.mybank.com` để chuyển tiền vào tài khoản của kẻ tấn công. Trong TH này, trang web ngân hàng thực hiện yêu cầu vì nó thấy yêu cầu đến từ máy của người dùng A đã được xác thực với máy chủ.

<details>

<summary>Biện pháp giảm nhẹ</summary>

* Đồng bộ hóa token pattern
* Cookie-to-header token
* Double submit cookie

</details>


---

# 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://viettaliii.gitbook.io/home/soc-and-dfir/interview-questions/cross-site-request-forgery-csrf.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.
