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

[BUG] Replay Proxy Hanging - (workaround implemented 2.6.0) #501

Open
godylockz opened this issue Feb 18, 2022 · 3 comments
Open

[BUG] Replay Proxy Hanging - (workaround implemented 2.6.0) #501

godylockz opened this issue Feb 18, 2022 · 3 comments
Labels
awaiting-upstream bug Something isn't working pinned

Comments

@godylockz
Copy link
Contributor

Not exactly sure what is going on here, but seems like the replay-proxy hangs if the method is POST as it works fine with GET

HTB Box: CrossfitTwo
Requires crossfit-club.htb in host file.

test.txt

signup
login

feroxbuster -u http://crossfit-club.htb/api/ -w test.txt -m POST -k --no-state --replay-proxy 127.0.0.1:8080 --replay-codes 200,301,302,401,403 -vvvv

Appears to be hanging in process_response of /src/event_handlers/outputs.rs

@godylockz godylockz added the bug Something isn't working label Feb 18, 2022
@epi052
Copy link
Owner

epi052 commented Feb 18, 2022

thankfully, this is an easy one.

in addition to -m POST, you need to add --data some-value . Burp gets upset at posts without a body (or at least the (lack of)body that gets produced by feroxbuster.

Might be good to dig a little at what the request looks like with -m POST and no --data to see where it's malformed/weird, and then fix it up when the user specifies a post request without data.

@epi052 epi052 pinned this issue Feb 18, 2022
@epi052 epi052 unpinned this issue Feb 18, 2022
@epi052 epi052 added the pinned label Feb 18, 2022
@epi052
Copy link
Owner

epi052 commented Feb 19, 2022

After much digging / dinking around with different reqwest settings, I'm at a loss for a fix that doesn't require setting an arbitrary body payload when one isn't provided. I filed an issue here to see if there's any help to be had.

@epi052
Copy link
Owner

epi052 commented Feb 24, 2022

Pending a better solution, when --proxy or --replay-proxy is used, and --method=POST and --data isn't used, then \r\n is appended to the request body as a (hopefully) temporary workaround.

@epi052 epi052 changed the title [BUG] Replay Proxy Hanging [BUG] Replay Proxy Hanging - (workaround implemented 2.6.0) Mar 3, 2022
epi052 added a commit that referenced this issue Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream bug Something isn't working pinned
Projects
None yet
Development

No branches or pull requests

2 participants