Skip to content

DDoS Spring 5 RouterFunction apps [SPR-15560] #20119

@spring-projects-issues

Description

@spring-projects-issues

Maksim Kostromin opened SPR-15560 and commented

to reproduce bug, run this service

in a console send curl request:
curl localhost:3000//

or use httpie:
http :3000//

terminal should hangs and fails after timeout
http: error: Request timed out (30s).

I didn't investigate if connections will be opened while all such requests will waiting for theirs timeouts. If so, attackers can easily DDoS these kind of spring 5 apps by sending 65k requests for 30 seconds

posible fix
previous discussion
parent issue


Affects: 5.0 RC1

Reference URL: https://github.com/daggerok/functional-spring/blob/master/reactive-service/src/main/java/daggerok/ReactiveServiceApplication.java

Issue Links:

Referenced from: commits 11075f1

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions