全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Cross-site scripting, cross-site request forgery, session token?

又称: cross-site scripting · cross-site request forgery · session token

Definition 29.6 University Computer Science — Year 3 · 第 29 章 — Software Security

Cross-site scripting (XSS) happens when a page includes text from an adversary without encoding it, so that a script in the text runs in other users’ browsers with the rights of the site. Cross-site request forgery (CSRF) happens when a page on another site makes a user’s browser send a request to the site, which the browser accompanies with the user’s cookies, so that the site performs it as the user. A session token is the random value that a site gives a browser after login, usually in a cookie, and that identifies the session in every later request.

Stored cross-site scripting. The comment is harmless in the database; it becomes code only when it is pasted into HTML, so that is where it must be encoded, for that context.
Stored cross-site scripting. The comment is harmless in the database; it becomes code only when it is pasted into HTML, so that is where it must be encoded, for that context.
在原文中阅读 →