In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade org.springframework.data:spring-data-rest-core to version 5.0.9, 5.1.3 or higher.
org.springframework.data:spring-data-rest-core is a Spring Data REST.
Affected versions of this package are vulnerable to Incorrect Authorization in the CrudMethodsSupportedHttpMethods class, which reports POST as supported for any writable collection-like association resource without checking that the repository exports save(…). A user can add entries to an association, persisting the parent aggregate, by sending a POST with a text/uri-list body to an association resource, even when save(…) is excluded from export. This requires an exported repository that withholds save(…) and a domain type with a writable collection-like association whose target is also exported.
This vulnerability can be avoided by annotating the association property with @RestResource(exported = false), or by blocking POST to association resources at the web security layer.