-
Notifications
You must be signed in to change notification settings - Fork 680
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
Fuzzing PcapPlusPlus about packet file analyzing #1263
Comments
Thank you @Hyeong-Uk for reporting this issue! Maybe you can upload the pcap file with a different extension (i.e Also - would you consider providing a fix to this issue? |
@seladb Here are pcap files: +Sorry for (can)not providing a fix Thank you. |
Thank you @Hyeong-Uk ! We'll comment on this ticket once we have a fix cc @sashashura |
@Hyeong-Uk Could you provide your harness? |
@Hyeong-Uk is this still an issue? or I will close the ticket. |
@sashashura I'm very sorry for seeing your comment now. I'm just a novice for this field, so I don't understand what does 'provide harness' mean. Does it mean 'provide my execution environment'? |
Hi @Heysunk, harness is the code you used to trigger the crash. I must apologize, I didn't notice the
Could you please send the initial pcap and the test file that triggers the crash to my email (listed in my profile)? |
@sashashura Hello, I has been busy for preparing graduate school in SNU(Seoul National University(Korea)), and fortunately my acceptance to graduate school was decided. And now that I have some free time, I'm going to focus on this work. I sent those files to your email, so if you are still interested in this issue, please check and report me whether it is really a weak point or not(and if it is real weak point, then how crash occured in detail.). Thank you very much. |
@Hyeong-Uk I think you can put the files here for more people to review. (simply click the "Paste, drop, or click to add files" button) |
@tigercosmos Thank you for your comment. ^^ However, all the basic files are here(above), for example: test code(test1.txt), crash log(crash.log), fuzzed initial pcap file(datafin3.txt), etc.(and also, environment information.). Though, anyone who are interested in this issue can request me for additional files or information - then I will send them to your email.
|
Hi @Hyeong-Uk, we fully understand the reason for changing file extensions. This is very common practice. It seems there was confusion from my side which file is which, so I'll just iterate to be sure we have all we need:
Optional files that are not strictly needed to reproduce the crash:
I'll look into it when time permits. |
@sashashura Thanks for your comment, that's all true. I'll look forward to your report. Thanks. |
@sashashura Is there any update? |
Are we sure that this issue really caused by the library itself? I checked the code of PayloadLayer constructor, but the constructor only copies the provided data (using pointer + length). So, the only reason for overflow should be either wrong/misaligned pointer or length. And the code (test1.txt Line 891) directly calls this constructor so there is no internal call from other layer. Fuzzer code calls it with this pointer and length directly. Am i missing something @sashashura @seladb @tigercosmos? What do you think? |
I agree, the issue in case 42 is that the size of |
In that case we can fix the example 👍 |
I'm a student of Seoul National University(Korea), and I tried to fuzz this library(only for file analyzing, not for analyzing live communication) for exercise.. I think I found heap overflow and few different minor weak points... Please check it and report some details to me.
I used PcapPlusPlus v23.09 on Linux(Ubuntu 20.04LTS 64bit) and AFL fuzzer 2.57b.
Test code: test1.txt
There are Initial test pcap file and crashed test file but can't upload because github issue doesn't support .pcap uploading...
If you want inputs, contact me with [email protected] or [email protected](recommended) .
Crashes: crash.log
The crash id of heap buffer overflow is 42.
The text was updated successfully, but these errors were encountered: