Find WebView.addJavascriptInterface(...) calls

Proprietary

addJavascriptInterface exposes a Kotlin/Java object to in-WebView JavaScript — pre-API-17 devices could call any reflectively-reachable method (CVE-2012-6636). Even on modern devices, every annotated method becomes attack surface for whatever content the WebView loads.

org.openrewrite.kotlin.security.FindWebViewAddJsInterface$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindWebViewAddJsInterface$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.