Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
LemonWiki共筆
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Glossary of information security
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== C == * [https://owasp.org/www-community/attacks/Code_Injection Code Injection]: "a type of attack in which an attacker injects malicious code into an application and causes it to be executed, typically due to the application's lack of proper validation and filtering of external input data." * [https://owasp.org/www-community/attacks/Command_Injection Command Injection] "an attack technique in which an attacker exploits vulnerabilities in an application to inject and execute malicious operating system commands, typically through unvalidated user input such as forms, cookies, or HTTP headers." * CORS (Cross-Origin Resource Sharing,跨來源資源共用):瀏覽器基於安全考量採用「同源政策」(Same-origin policy, SOP),網頁上的 JavaScript 程式碼只能讀取同源(協定、網域、通訊埠皆相同)的資源,無法讀取其他來源的回應。CORS 則是放寬這項限制的例外機制:「基於 HTTP 標頭的機制,讓伺服器指示瀏覽器可以從自身以外的哪些來源(網域、協定或通訊埠)載入資源。」例如 a.com 的網頁想用 fetch 抓取 b.com 的資源時,瀏覽器會檢查 b.com 的回應中是否有 Access-Control-Allow-Origin 等標頭;若沒有,瀏覽器就會擋下這個回應,程式便拿不到資料。(資料來源:[https://en.wikipedia.org/wiki/Cross-origin_resource_sharing Wikipedia]、[https://developer.mozilla.org/zh-TW/docs/Web/HTTP/Guides/CORS MDN]) * CORS Proxy:跨來源資源共用的中間伺服器,透過中間伺服器繞過瀏覽器的跨來源限制(CORS)。可以透過後端程式語言、Cloudflare Workers、Vercel 架設 Proxy。
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki共筆:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)