跳过导航
HTTP is supposed to be stateless, but sometimes... it isn't!
0:00 / 3:23

HTTP is supposed to be stateless, but sometimes... it isn't!

James Kettle

@albinowax8.6万 位关注者

在 X 上查看
1,238 个赞下载原帖

140,310 次观看

HTTP is supposed to be stateless, but sometimes... it isn't! Some servers create invisible vulnerabilities by only validating the first request on each TCP/TLS connection. I've just published a Custom Action to help you detect & exploit this - here's a narrated demo:

27 条评论

评论来自 X (Twitter) 上的原帖

  • James Kettle 的头像

    @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 的头像

    @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 个赞

  • Wahid Fayad 的头像

    @0xcdn

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

    3 个赞

  • pwd0_ls 的头像

    @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 的头像

    @ProEvilz

    @rauchg would vercel be effected by attacks like this?

    2 个赞

  • Koen 的头像

    @koenengineering

    The AirPlay protocol also attaches state to the socket on many occasions.

    1 个赞

  • Ricardo Iramar 的头像

    @ricardo_iramar

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

    1 个赞

  • James Kettle 的头像

    @albinowax

    Make sure you don’t lose the cookies :)

    5 个赞

  • Ricardo Iramar 的头像

    @ricardo_iramar

    Thanks James! I was assuming that 192.168.0.1 was a totally different application.

    1 个赞

  • James Kettle 的头像

    @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 的头像

    @ricardo_iramar

    Got it! Thanks for the quick reply.

  • Karel Origin 的头像

    @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 个赞

  • NIGERIA 🇳🇬 的头像

    @NG_maybeblessed

    The real security researchers

    1 个赞

  • Beejaybee 的头像

    @Beejaybee11

    This is amazing

    1 个赞

  • Durable Disorder 🇺🇸 的头像

    @eM7yPKfGGCbzSJb

    Good job. Love the narration.

    1 个赞

  • Md Maruf Hosan 🇧🇩 的头像

    @0xMaruf

    u should make videos like this rather than writeups.

  • the Beast 的头像

    @Hamoon_TheBeast

    Nice trick thanks

  • Meek 的头像

    @msakiart

    banger

  • SecInterviewHub 的头像

    @sec_hub93028

    This is great! Thanks for sharing this.

  • 0xmaddy | Tech Adrenaline 的头像

    @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!