csrf token per request in vaadin

天大地大妈咪最大 提交于 2019-12-24 15:44:18

问题


I'm new to vaadin and I want to implement a csrf token protection , I found that vaadin already inject csrf token in requests but the problem is that the csrf token is the same in each request , is their any configuration in vaadin to generate new token in each request? or is their any way to force vaadin to regenerate a csrf token when new session is created?

I used the following code to solve session fixation vulnerability but the problem is the csrf token remain the same of the previous session token; because the reinitializeSession method creates a new session with the same contents with new jsessionID

VaadinService.reinitializeSession()

回答1:


There's current a pull request open for adding that kind of functionality: https://github.com/vaadin/framework/pull/10953.



来源:https://stackoverflow.com/questions/50836576/csrf-token-per-request-in-vaadin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!