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 applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningUpgrade org.springframework.integration:spring-integration-core to version 7.0.8, 7.1.3 or higher.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the FluxAggregatorMessageHandler class, which uses the sequenceSize message header as the Reactor Flux.window(int) size without validation. An attacker able to set the correlationId and sequenceSize headers can supply a very large size so the window never closes and messages for that correlation key buffer indefinitely, exhausting the heap, while a non-positive or missing value halts the whole aggregating Flux. This applies when the handler uses its default sequenceSize-driven window size and those headers are mapped from untrusted senders.
This vulnerability can be avoided by not mapping the correlationId and sequenceSize headers from untrusted messages, or by configuring an explicit CorrelationStrategy with fixed setWindowSize() and setWindowTimespan().