HTTP is supposed to be stateless, but sometimes... it isn't!
@albinowax8.6万 位关注者
140,310 次观看
27 条评论
评论来自 X (Twitter) 上的原帖

@albinowax
You can install this Custom Action via the Extensibility Helper extension, or copy+paste from here: Try it out on the Academy lab here:
53 个赞

@tilver
Blew up a WAF with this a long time ago. Their answer was to turn off keep-alives, but then they exempted themselves from performance metrics. Glad to hear it's still a thing.
6 个赞

@0xcdn
@PortSwiggerRes This is pretty cool. Loved the tutorial to this feature. I will try it as soon as I can. Thanks James!
3 个赞

@ImoJOnDz
this kind of attack scenario has happened to me many times when I request for example /sensitivefile I initially get a 404 but if I keep sending the request multiple times I eventually get the content of the requested file I think it’s caused by some reverseproxy or loadbalancer
3 个赞

@ProEvilz
@rauchg would vercel be effected by attacks like this?
2 个赞

@koenengineering
The AirPlay protocol also attaches state to the socket on many occasions.
1 个赞

@ricardo_iramar
Not sure if it's just me, but it seems the "Host validation bypass via connection state attack" lab is broken.
1 个赞

@albinowax
Make sure you don’t lose the cookies :)
5 个赞

@ricardo_iramar
Thanks James! I was assuming that 192.168.0.1 was a totally different application.
1 个赞

@albinowax
It is, but from the Academy front-end’s perspective it needs to know which lab instance you’re talking to and it does this via the host header or cookies. It’s basically a technical limitation.
2 个赞

@ricardo_iramar
Got it! Thanks for the quick reply.

@Karel_Origin
I don't think this is as much validation as it is routing. A reverse proxy will likely use the initial host header to determine what the destination should be which will persist for as long as the connection is alive. However, I only see the SSRF occur in very specific scenario's: e.g. an upstream server takes arbitrary host headers but isn't bound to a known list, unlike the first proxy.
1 个赞

@NG_maybeblessed
The real security researchers
1 个赞

@Beejaybee11
This is amazing
1 个赞

@eM7yPKfGGCbzSJb
Good job. Love the narration.
1 个赞

@0xMaruf
u should make videos like this rather than writeups.

@Hamoon_TheBeast
Nice trick thanks

@msakiart
banger

@sec_hub93028
This is great! Thanks for sharing this.

@tech_maddy
Great find on stateful validation bypass. This pattern shows up in load balancers and CDNs too. Reusing connections for exploit chaining is clever. Can help audit these if needed!



