aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/glossary/csrf
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
commit218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (patch)
treea9ef8ac1e1b8fe4207b6d64d3841bfb8990b6fd0 /files/zh-tw/glossary/csrf
parent074785cea106179cb3305637055ab0a009ca74f2 (diff)
downloadtranslated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.gz
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.bz2
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.zip
initial commit
Diffstat (limited to 'files/zh-tw/glossary/csrf')
-rw-r--r--files/zh-tw/glossary/csrf/index.html23
1 files changed, 23 insertions, 0 deletions
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
+---
+<p><span class="seoSummary"><strong>跨站請求偽造</strong>(Cross-Site Request Forgery, CSRF)是一種冒充信任用戶,來傳送非預期指令的攻擊。</span>比方說,可以在 {{glossary("URL")}} 連結背後添加惡意參數來攻擊:</p>
+
+<pre>&lt;img src="https://www.example.com/index.php?action=delete&amp;id=123"&gt;
+</pre>
+
+<p>對擁有 <code>https://www.example.com</code> 權限的用戶來說,<code>&lt;img&gt;</code> 元素會在用戶沒注意到的情況下執行 <code>https://www.example.com</code> 的操作。就算這個元素的域名不在 <code>https://www.example.com</code> 亦然。</p>
+
+<p>有很多能預防 CSRF 的辦法,例如實作 {{glossary("REST", "RESTful API")}}、或添加 secure token 等等。</p>
+
+<h2 id="了解更多">了解更多</h2>
+
+<h3 id="一般知識">一般知識</h3>
+
+<ul>
+ <li>維基百科上的 {{Interwiki("wikipedia", "跨站請求偽造")}}</li>
+ <li><a href="https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet">Prevention measures</a></li>
+ <li><a href="/zh-TW/Learn/tutorial/Information_Security_Basics">MDN 安全手冊</a></li>
+</ul>