CodeQL library for Java/Kotlin
codeql/java-all 0.9.2-dev (changelog, source)
Search

Predicate isPermissionsProtectedTempDirUse

Hold’s if temporary directory’s use is protected if there is an explicit call to setReadable(false, false), then setRedabale(true, true).

Import path

import semmle.code.java.security.TempDirUtils
predicate isPermissionsProtectedTempDirUse(Node sink)