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

The input urls generated by the fuzzer can be problematic as it causes very long parse times #918

Open
1 task
goldds96 opened this issue Apr 1, 2024 · 0 comments

Comments

@goldds96
Copy link

goldds96 commented Apr 1, 2024

  • Note that this crate implements the URL Standard not RFC 1738 or RFC 3986

Describe the bug

I performed fuzzing for rust-url using afl.rs in the following way.

cargo new --bin url-fuzz-target
cd url-fuzz-target
cargo afl build

While performing fuzzing, I discovered a bug where the input generated by the fuzzer caused a very long parse times, preventing the program from terminating.

poc.zip

I reproduced this process as follows.

(1) unzip the attached poc.zip

(2) run

cargo afl run url-fuzz-target < ./id:000000,src:002523,time:11346358,execs:197688102,op:havoc,rep:1

Then the program will not terminate as follows.

Screenshot from 2024-04-01 11-25-43

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

No branches or pull requests

1 participant