Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-Site Request Forgery #110

Open
hauptmann opened this issue Dec 5, 2012 · 0 comments
Open

Cross-Site Request Forgery #110

hauptmann opened this issue Dec 5, 2012 · 0 comments

Comments

@hauptmann
Copy link

-- Cross-Site Request --

Cross-site Request Forgery (CSRF) is a type of attack whereby unauthorized commands are transmitted from a user that the application trusts. Unlike Cross-site Scripting (XSS), which exploits the trust a user has for a particular site, CSRF exploits the trust that a site has in a user's browser.solution: Url and Forms that perform important operations must be protected by random tokens (hidden nonce values). These tokens must be checked for validity at the server before the request is processed.

Solution: solution: Url and Forms that perform important operations must be protected by random tokens (hidden nonce values). These tokens must be checked for validity at the server before the request is processed.

url: http://localhost:2933/memorandums/newform: form method="POST" action="http://localhost:2933/memorandums/new" enctype="application/x-www-form-urlencoded" autocomplete="on"> ... </form

url: http://localhost:2933/cars/newform: form method="POST" action="http://localhost:2933/cars/new" enctype="application/x-www-form-urlencoded" autocomplete="on"> ... </form

url: http://localhost:2933/drivers/newform: form method="POST" action="http://localhost:2933/drivers/new" enctype="application/x-www-form-urlencoded" autocomplete="on"> ... </form

url: http://localhost:2933/courses/newform: form method="POST" action="http://localhost:2933/courses/new" enctype="application/x-www-form-urlencoded" autocomplete="on"> ... </form

url: http://localhost:2933/courses/edit/7c28ee4e-2929-4569-8c72-48b74cbcbf92form: form method="POST" action="http://localhost:2933/courses/edit/7c28ee4e-2929-4569-8c72-48b74cbcbf92" enctype="application/x-www-form-urlencoded" autocomplete="on"> ... </form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant