Find insecure direct object reference (IDOR) vulnerabilities

Proprietary

Detects request-supplied identifiers (path variables, request parameters, servlet parameters) that reach a data-access lookup such as JpaRepository.findById, EntityManager.find, or MongoRepository.findById without passing through an authorization check that ties the object to the current principal (CWE-639). Only projects with Spring Security on the classpath are checked; an application with no authentication at all has a broader problem than IDOR.

org.openrewrite.analysis.java.security.FindIdorVulnerability
mod run . --recipe=org.openrewrite.analysis.java.security.FindIdorVulnerability

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