[Improvement][security] get-user-info API endpoint should not return the user's password in MD5 format #14679
Closed
3 tasks done
Labels
improvement
make more easy to user or prompt friendly
Search before asking
Description
The get-user-info API endpoint currently returns the user's password in MD5 format, which is then stored in the local storage by the web front-end.
dolphinscheduler/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
Lines 447 to 450 in 37ecd26
dolphinscheduler/dolphinscheduler-ui/src/views/login/use-login.ts
Lines 44 to 45 in 37ecd26
However, there is no functionality that requires the use of this password. Moreover, this password is just a simple MD5 hash, which can be easily cracked.
dolphinscheduler/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
Line 211 in 37ecd26
Therefore, I believe that get-user-info API endpoint should not return the password in MD5 format.
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: