Find Cookie.setHttpOnly(false) calls

Proprietary

setHttpOnly(false) makes the cookie readable from JavaScript — directly exfiltratable by any XSS bug in the same origin. Set httpOnly = true for every session cookie.

org.openrewrite.kotlin.security.FindCookieHttpOnlyFalse$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindCookieHttpOnlyFalse$KtRecipe'

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