Пропустить навигацию
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

@albinowax86 тыс. подписчиков

Открыть в 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!