[PATCH 0/3] Fuzzing secilc with AFL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Last week I started fuzzing secilc with american fuzzy lop, mainly
because I was curious of the result. I started with a small CIL policy,
for which AFL quickly found one crashing mutation (fixed by commit
c303ca910add ("libsepol/cil: Check for too many permissions in classes
and commons")).

Then I unleashed AFL on the files in secilc and it found 19 unique
crashing inputs over the week-end. I started digging through these
inputs to uncover bugs and this patchset consists in the patches I
wrote and quickly tested tonight.

If anyone is interested in running AFL too, I published my setup
(along with my custom Makefile and some other patches) on
https://github.com/fishilico/selinux (branch 'master'). I wrote
run_afl.sh (in the root of this project) as a wrapper to afl-fuzz to
make fuzzing start with "./run_afl.sh secilc".

Cheers,
Nicolas

PS: I am quite busy in the next weeks so I may be quite slow to reply
to feedbacks and to send other patches.

Nicolas Iooss (3):
  libsepol/cil: make cil_resolve_name() fail for '.'
  libsepol/cil: fix double-free in cil categories parser
  libsepol/cil: fix memory leak in __cil_fill_expr()

 libsepol/cil/src/cil_build_ast.c   | 2 ++
 libsepol/cil/src/cil_resolve_ast.c | 8 +++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

-- 
2.10.0

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux