Find publicly writable temporary directories

Proprietary

Finds hardcoded paths into publicly writable directories such as /tmp passed to file APIs, reads of the TMP, TMPDIR and TEMP environment variables or java.io.tmpdir, and temporary files or directories created in the default location. Likely test code is skipped. Search only: whether a shared directory is exploitable depends on deployment.

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

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