zhuxindong opened a new issue, #1493:
URL: https://github.com/apache/shiro/issues/1493

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/shiro/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Question
   
   If I leak the key generated in 
`org.apache.shiro.crypto.AbstractSymmetricCipherService#generateNewKey()` , 
then the hacker can use the key to make a RCE vulnerability. so I want to 
absolutely disable the rememerme function, how can I do to disable it?
    I had tried the following code:
   ```java
   @Bean("securityManager")
       public SecurityManager 
getDefaultWebSecurityManager(@Qualifier("servletContainerSessionManager")SessionManager
 sessionManager){
           DefaultWebSecurityManager securityManager = new 
DefaultWebSecurityManager();
           securityManager.setRealm(getUserRealm());
           securityManager.setSessionManager(sessionManager);
           securityManager.setRememberMeManager(null);   // try to disable the 
rememberme function
           return securityManager;
       }
   ```
   I wonder if this will cause other problems and whether there are official 
practices


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to