Security vulnerabilities may allow a cookie's data to be read by a hacker, used to gain access to user data, or used to gain access (with the user's credentials) to the website to which the cookie belongs (see cross-site scripting and cross-site request forgery for examples) Besides privacy concerns, cookies also have some technical drawbacks. In particular, they do not always accurately identify users, they can be used for security attacks, and they are often at odds with the Representational State Transfer (REST) software architectural style https://en.wikipedia.org/wiki/HTTP_cookie 真奇怪怎么还有人用cookie这种东西。
Are there vital more secure alternative solutions? I did not see any major web security issue caused by cookies in recent years.
【在 c*********e 的大作中提到】 : Security vulnerabilities may allow a cookie's data to be read by a hacker, : used to gain access to user data, or used to gain access (with the user's : credentials) to the website to which the cookie belongs (see cross-site : scripting and cross-site request forgery for examples) : Besides privacy concerns, cookies also have some technical drawbacks. In : particular, they do not always accurately identify users, they can be used : for security attacks, and they are often at odds with the Representational : State Transfer (REST) software architectural style : https://en.wikipedia.org/wiki/HTTP_cookie : 真奇怪怎么还有人用cookie这种东西。
r*l
17 楼
这东西全看律师怎么写。
k*t
18 楼
你有空的时候整一个替代方案出来大家试试?cross site攻击主要注意也不是什么大问 题。
【在 c*********e 的大作中提到】 : Security vulnerabilities may allow a cookie's data to be read by a hacker, : used to gain access to user data, or used to gain access (with the user's : credentials) to the website to which the cookie belongs (see cross-site : scripting and cross-site request forgery for examples) : Besides privacy concerns, cookies also have some technical drawbacks. In : particular, they do not always accurately identify users, they can be used : for security attacks, and they are often at odds with the Representational : State Transfer (REST) software architectural style : https://en.wikipedia.org/wiki/HTTP_cookie : 真奇怪怎么还有人用cookie这种东西。
en,cookie有很多种。我说的session cookie只是存在内存里,不是一个存在hard drive的physical file.这个区别很大。一个在内存,一个是文件。 A session cookie, also known as an in-memory cookie or transient cookie, exists only in temporary memory while the user navigates the website. Web browsers normally delete session cookies when the user closes the browser.
If a browser does not support HttpOnly and a website attempts to set an HttpOnly cookie, the HttpOnly flag will be ignored by the browser, thus creating a traditional, script accessible cookie. As a result, the cookie ( typically your session cookie) becomes vulnerable to theft of modification by malicious script https://www.owasp.org/index.php/HttpOnly
【在 c*********e 的大作中提到】 : If a browser does not support HttpOnly and a website attempts to set an : HttpOnly cookie, the HttpOnly flag will be ignored by the browser, thus : creating a traditional, script accessible cookie. As a result, the cookie ( : typically your session cookie) becomes vulnerable to theft of modification : by malicious script : https://www.owasp.org/index.php/HttpOnly
tell me which morden browser does not support http only cookie. Google accounts rely on it.
【在 c*********e 的大作中提到】 : If a browser does not support HttpOnly and a website attempts to set an : HttpOnly cookie, the HttpOnly flag will be ignored by the browser, thus : creating a traditional, script accessible cookie. As a result, the cookie ( : typically your session cookie) becomes vulnerable to theft of modification : by malicious script : https://www.owasp.org/index.php/HttpOnly