BUG_Author: s0l42
Affected Version: RuoYi-Vue ≤ 3.8.9
Vendor: RuoYi-Vue GitHub Repository
Software: RuoYi-Vue
Vulnerability Files:
Description: If user checked rememberMe in login page, the cookie will carry encrypted password in all of the following requests. However, the private key which can be used to decrypt the password is hard coded in jsencrypt.js, attacker can get encrypted password from cookie and decrypt the password with the private key.
CWE: CWE-315 and CWE-539
**Attack Type:**Remote
Impact: Information Disclosure, Identity Theft and Unauthorized Access
privateKey
is hard coded, and there is a function decrypt
we will use to decrypt password.handleLogin
check whether the rememberMe
is true
, if it is, the function will set encrypt password in cookie
. The cookie will be carried in following requests.