GithubHelp home page GithubHelp logo

Comments (11)

vanhauser-thc avatar vanhauser-thc commented on July 23, 2024

True!
Thats a bug...

from thc-hydra.

vanhauser-thc avatar vanhauser-thc commented on July 23, 2024

I checked in a fix but can not test it.
Can you please try if this fixes the issue?

from thc-hydra.

sagishahar-zz avatar sagishahar-zz commented on July 23, 2024

Unfortunately, no good news. In fact, it's worse now because the number of Cookie headers have doubled. In the screenshot, you can see the actual request below the table (marked in orange):
screenshot

From the screenshot, you can also notice that I have marked in red some GET requests. These requests are sent to the target server prior to every request sent for brute forcing purposes. I am not sure if this is a feature or a bug, so I didn't create a new issue. However, this doubles the amount of traffic sent to the server.

I would suggest sending one GET request before the attack to verify that the target is up (marked in green) and thereafter only brute forcing requests.

I haven't looked at the actual code, so feel free to ignore my suggestion.

from thc-hydra.

 avatar commented on July 23, 2024

Those preceding GET requests are actually aimed at gathering the cookies from the server :D

from thc-hydra.

 avatar commented on July 23, 2024

I'm thinking of fixing this bug with libapreq which greatly simplifies handling the HTTP protocol. Is it ok if I insert a new dependency? Of course, we'd have to update configure too.

from thc-hydra.

vanhauser-thc avatar vanhauser-thc commented on July 23, 2024

No that would be a very, very bad idea.
It would mean that the http-form module would only work where this library is present.
Is this library a standard on any Linux, Cygwin, OS X and FreeBSD installation without the need of installing something optional? If so, OK, otherwise no.

from thc-hydra.

sagishahar-zz avatar sagishahar-zz commented on July 23, 2024

@Strunk18 The whole point of a cookie is to maintain a session as the HTTP protocol is stateless. In other words, the cookie worth something only after one was successfully authenticated to the web application. Therefore, it is unclear to me why the cookie value is necessary prior to successful authentication?

I have not seen yet that the web server will not accept an authentication request without the cookie value. However, if the implementation of the extra GET request tries to address this edge case then why not reuse the cookie that was captured initially with the first GET request before attempting to perform the brute force attack?

from thc-hydra.

vanhauser-thc avatar vanhauser-thc commented on July 23, 2024

@sagishahar there are web services that only accept autentication if you sent a preset cookie, that is why this is necessary.

from thc-hydra.

vanhauser-thc avatar vanhauser-thc commented on July 23, 2024

@Strunk18 this bug is now three weeks old and breaks the module for most use cases.
please submit a fix asap, otherwise I have to revert your patch and release a 8.2 without it.
I can't leave it this way.

from thc-hydra.

vanhauser-thc avatar vanhauser-thc commented on July 23, 2024

@sagishahar - Strunk18 provided a fix - can you please test if this fixes the issue?
I am at a security conference in canada while writing this so I the first time I can take a look at the fix is in 2-3 days ... :)

from thc-hydra.

vanhauser-thc avatar vanhauser-thc commented on July 23, 2024

fixed

from thc-hydra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.