From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/zh-tw/glossary/csrf/index.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 files/zh-tw/glossary/csrf/index.html (limited to 'files/zh-tw/glossary/csrf/index.html') diff --git a/files/zh-tw/glossary/csrf/index.html b/files/zh-tw/glossary/csrf/index.html new file mode 100644 index 0000000000..cb8a6509ac --- /dev/null +++ b/files/zh-tw/glossary/csrf/index.html @@ -0,0 +1,23 @@ +--- +title: CSRF +slug: Glossary/CSRF +translation_of: Glossary/CSRF +--- +

跨站請求偽造(Cross-Site Request Forgery, CSRF)是一種冒充信任用戶,來傳送非預期指令的攻擊。比方說,可以在 {{glossary("URL")}} 連結背後添加惡意參數來攻擊:

+ +
<img src="https://www.example.com/index.php?action=delete&id=123">
+
+ +

對擁有 https://www.example.com 權限的用戶來說,<img> 元素會在用戶沒注意到的情況下執行 https://www.example.com 的操作。就算這個元素的域名不在 https://www.example.com 亦然。

+ +

有很多能預防 CSRF 的辦法,例如實作 {{glossary("REST", "RESTful API")}}、或添加 secure token 等等。

+ +

了解更多

+ +

一般知識

+ + -- cgit v1.2.3-54-g00ecf