Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ffuf fails with zero-size responses #765

Open
gnunez88 opened this issue Mar 1, 2024 · 6 comments
Open

Ffuf fails with zero-size responses #765

gnunez88 opened this issue Mar 1, 2024 · 6 comments
Labels
question Further information is requested

Comments

@gnunez88
Copy link

gnunez88 commented Mar 1, 2024

Hello,

This is the second time I encounter this situation where I have to fuzz a RESTful API just to show a PoC and I find out ffuf fails to show the correct result.

The thing is the API returns a JSON in the response body, but there is no Content-Length, which might be taken as 0, hence there is no way to filter the correct response because -fs, -fw, -fl and -fs seem to expect a non-zero body size.

ffuf-execution

The problem is in the response, rather in the request, so it is not a Content-Type thing, as you see:

ffuf-burp-01-invalid

ffuf-burp-02-valid

I can sort this out proxying the traffic through BurpSuite, since it seems it does not rely on the Content-Length header:

ffuf-burp-03-sizes

Thank you!

BTW, since ffuf has many options similar to curl, is it possible to specify files for POST requests? As you can see in the first image, I have to use "$(cat auth.login_with_options)", because -d @auth.login_with_options would send one request with @auth.login_with_options as the payload, instead of the contents of the file.

@bsysop bsysop added the question Further information is requested label Mar 1, 2024
@bsysop
Copy link
Collaborator

bsysop commented Mar 1, 2024

Hi @gnunez88,
Please try again removing -mc all, if still doesn't work, can you send me a DM so I can debug?

For the second question, please open another issue since those are different topics and a feature request.

@gnunez88
Copy link
Author

gnunez88 commented Mar 1, 2024

DM

Hi @bsysop,

I have removed the -mc all, same result (as expected):

ffuf-execution-without-mc-all

I'll DM you.

@gnunez88
Copy link
Author

gnunez88 commented Mar 1, 2024

@bsysop, sorry to bother you. How can I send you a message? I can only see you on X, but since I'm not verified I cannot message you.

@bsysop
Copy link
Collaborator

bsysop commented Mar 1, 2024

What is your X handler, so I can follow you?

@gnunez88
Copy link
Author

gnunez88 commented Mar 1, 2024

Edited:

And yes, it is my handler, the ones I wanted there weren't available :-p.

@bsysop
Copy link
Collaborator

bsysop commented Mar 1, 2024

Followed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants