~/talk

Fuzzing Ruby and C Extensions

Talkat BSidesSF 2018 · on Sunday, 2018-04-15· [security, ruby]
links:none on file
slides:none on file

Fuzzing Ruby C extensions with AFL and dockerized builds finds real bugs fast: a double-free in a CSV C parser that crashes in ~20s, null-pointer and a stack buffer overflow in the Ox XML extension (one crash from minutes, another in hours), and multiple crashes in the yajl JSON gem; AddressSanitizer (ASAN) confirms memory corruption. Setup uses persistent AFL harnesses that require compiling Ruby with AFL and grammar‑aware generation via ANTLR/Grammarinator to produce syntactically valid Ruby inputs; fixes were submitted and deployed.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:20Ruby gems and C extensions
  3. 8:08Why start fuzzing
  4. 9:17What is fuzzing
  5. 13:54AFL instrumentation and setup
  6. 15:40Fuzzing C extensions in Ruby
  7. 18:14First findings: BC CSV double free
  8. 21:05Double free vulnerabilities explained
  9. 21:27OX parser null pointer crash
  10. 22:09OX parser stack overflow
  11. 23:38YAJL JSON parser crashes
  12. 25:22GitHub dependency security
  13. 27:10Crash impact on Rails apps
  14. 28:57Memory leaks in Ruby libraries
  15. 30:00Fuzzing Ruby itself
  16. 30:41Grammar-based fuzzing
  17. 32:09Final thoughts and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.