maventalker / simplemall

基于SpringCloud的微服务架构实战案例项目,以一个简单的购物流程为示例,融合spring cloud 相关组件,如spring-cloud-netflix、swagger等

Home Page:https://github.com/backkoms/simplemall/blob/develop/getqrcode.jpeg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using predictable/constant cryptographic key when creating and verifing Json Web Token.

xubowenW opened this issue · comments

Hi, we are a research group to help developers build secure applications. We designed a cryptographic misuse detector on Java language(Our main concern is the secure implementation and use of Json Web Token). We found your great public repository (i.e., simplemall) from Github, and several security issues detected by our detector are shown in the following. The specific security issues we found are as follows:
(1) Location: Package: com.simplemall.micro.serv.page.security; Class: JWTUtils.class
Security issue: Using predictable/constant cryptographic key when creating and verifing Json Web Token.
simplemall

Using a hard-coded secret does not conform to the security implementation specification of JWT, which may bring security risks to your system. It is recommended that you use a more secure way to store the secret used to generate the JWT. (For the hazards of hardcoded keys, you can refer to CWE-321, NIST Special Publication 800-57).

We wish the above security issues cloud truly help you to build a secure application. If you have any concern or suggestion, please feel free to contact us, we are looking forwart to your reply. Thanks.