lcatro / fuzzing-imagemagick Goto Github PK
View Code? Open in Web Editor NEWOpenSource My ImageMagick Fuzzer ..
OpenSource My ImageMagick Fuzzer ..
感觉很奇怪,按照教程做的,也有二进制文件,就是一直报错
使用的命令
afl-fuzz -i ../../../afl-2.52b/testcases/images/png/ -o fuzzing_output -t 300000 -m 200 ./magick convert @@ /dev/null
下是报错的显示与图片
Hmm, looks like the target binary terminated before we could complete a
handshake with the injected code. There are two probable explanations:
- The current memory limit (200 MB) is too restrictive, causing an OOM
fault in the dynamic linker. This can be fixed with the -m option. A
simple way to confirm the diagnosis may be:
( ulimit -Sv $[199 << 10]; /path/to/fuzzed_app )
Tip: you can use http://jwilk.net/software/recidivm to quickly
estimate the required amount of virtual memory for the binary.
- Less likely, there is a horrible bug in the fuzzer. If other options
fail, poke <[email protected]> for troubleshooting tips.
[-] PROGRAM ABORT : Fork server handshake failed
Location : init_forkserver(), afl-fuzz.c:2253
大佬好,我在对源码编译完成之后找不到目标文件,也就是那个二进制文件,翻了各个文件夹。。。按照原文说的步骤做了一遍
afl-fuzz -i ../../fuzzdata/samples/png -o fuzzing_output -t 300000 -m 200 ./magick convert @@ /dev/null
既然-t单位是ms,所以-t 300000 是300s吧?
大佬好,我看fuzzdata里有些非常大的文件.用这么大的文件做seed input合适吗?在这些文件上的fuzzing速度很慢,AFL文档里也不推荐用大文件.大佬当时是通过这些文件找到bug的吗?
您好!
我在ImageMagick中设置编译器为afl的时候,可以成功设置CC=afl-gcc(afl-clang),但在设置CXX=afl-g++(afl-clang++)时报错无法成功。
出错如下图:
根据其他Issues,这应该是导致afl-fuzz过程中无法成功fuzzing。
[-] PROGRAM ABORT : Program './magick' is a shell script
Location : check_binary(), afl-fuzz.c:6957
初步Google后,部分论坛指出可能和cpp,g++环境有关,但install时无法成功安装。
而在相关日志config.log中,该报错处的日志详情为乱码,无法显示字符,无从得知details。
请问问题原因何在,如何能解决这个问题?期望作者大佬的解答!
相关环境如下:
Ubuntu:Linux ubuntu 5.13.0-40-generic(更新至当前最新状态)
ImageMagick:7.1.0-20
AFL:2.57b
您好,怎么触发ImageMagick_crash中的漏洞,我尝试使用magick convert memory-leak_output_art_ReadOnePNGImage /dev/null没反应。
非常感谢!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.