JWT token - Man in middle attack

末鹿安然 提交于 2020-12-12 02:52:32

问题


I was going through the JWT auth. It looks pretty good. However I have a question that is the JWT authentication prone to Man in the Middle attack ? Can someone get this token while it is being sent. If so, then with the token and a fake request(obviously with a correct url) the data can be fetched ?

Is this even a valid scenario ?

Any views are appreciated


回答1:


JWT without https is prone to man in the middle attack, You should use it with https protocol to minimize the risk.

You can make it even more secure by adding IP address of client as a private claim to JWT token and validate that as well.



来源:https://stackoverflow.com/questions/49424639/jwt-token-man-in-middle-attack

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