Skip to content
Memory corruption Write-up Advanced

Fuzzing Apache httpd server with American Fuzzy Lop + persistent mode

The author found a buffer over-read in Apache httpd's request parsing code (CVE-2017-7668) by fuzzing the server with AFL in persistent mode. A remote attacker could send crafted requests that cause the server to read past the end of a buffer.

sensepost.com

Published on sensepost.com

Recently, I reported CVE-2017-7668 (Apache Server buffer-over-read). This is a cross-post from my personal blog where I explain how to fuzz network programs with AFL by porting techniques learned in honggfuzz into AFL.

The author, on sensepost.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a missing bounds check in the request parsing code that lets the server read past the end of a buffer.

Impact

A crafted request could cause the server to read beyond a buffer, which may crash it or disclose memory contents.

What the attacker needed

Ability to send requests to the server

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A buffer over-read happens when a program reads more data than it should from memory, which can crash it or leak information. The author used a fuzzer, a tool that feeds a program many random inputs to find crashes, and pointed it at the web server's request parsing code. By running the fuzzer efficiently inside the server process, they found an input that triggered the bug.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.