Cookies missing HttpOnly flag

Proprietary

Check for use of cookies without the HttpOnly flag. Cookies should be marked as HttpOnly to prevent client-side scripts from accessing them, reducing the risk of cross-site scripting (XSS) attacks.

org.openrewrite.java.security.servlet.CookieSetHttpOnly
mod run . --recipe=org.openrewrite.java.security.servlet.CookieSetHttpOnly

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