Preventing cross-site request forgery attacks on a server
Abstract
Preventing Cross-Site Request Forgery security attacks on a server in a client-server environment. In one aspect, this comprises embedding a nonce and a script in all responses from the server to the client wherein, when executed, the script adds the nonce to each request from the client to the server; sending the response with the nonce and the script to the client; and verifying that each request from the client includes the nonce sent by the server to the client. The script preferably modifies all objects, including dynamically generated objects, in a server response that may generate future requests to the server to add the nonce to the requests. The server verifies the nonce value in a request and optionally confirms the request with the client if the value differs from the value previously sent. Server-side aspects might be embodied in the server or a proxy.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for preventing security attacks between a client and a server, comprising: embedding a nonce and a script in a response from the server to the client in a session wherein, the script is adapted such that when executed at the client following receipt of the response from the server, the script automatically adds the nonce to each future request sent from the client to the server in the session; sending the response with the nonce and the script embedded therein to the client; and verifying that each future request received at the server from the client in the sessi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- Atwood, "Preventing CSRF and XSRF Attacks", Coding Horror, Oct. 14, 2008, p. 1-26.
- Barth, et al., "Robust Defenses for Cross-Site Request Forgery", Proceedings of the 15th ACM Conference on Computer and Communications Security (2008), ACM. 13 pages.
- Canadian Counterpart Application 2,694,326, Office Action dated Jan. 13, 2011 (3 pages).
- Klein, Amit, "DOM Based Cross Site Scripting or XSS of the Third Kind", WASC Writeup (Jul. 2005), Web Application Security Consortium, retrieved from http://www.webappsec.org/projects/articles/071105.shtml on Jan. 12, 2009. 7 pages.
- Prabakaran, et al., "Identifying Robust Defenses for Login CSRF", Department of Computer Science, University of Illinois, Chicago. 6 pages.