Find insecure Spring Security RememberMe configuration

Proprietary

Finds Spring Security RememberMe configurations with insecure settings: useSecureCookie(false) (allows cookie transmission over HTTP), alwaysRemember(true) (bypasses user opt-in), or tokenValiditySeconds(...) set longer than 30 days (extends the window in which a stolen remember-me cookie can be replayed).

org.openrewrite.java.security.search.FindInsecureRememberMeConfig
mod run . --recipe=org.openrewrite.java.security.search.FindInsecureRememberMeConfig

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.