Nginx Vulnerability on FreeBSD


I am trying to do a security research experiment on FreeBSD.
I try to test the Nginx Vulnerability CVE-2013-2028 on FreeBSD 10.1
with Nginx 1.3.9/1.4.0.

However, most exploit samples can succeed on Linux, but not FreeBSD.
The basic idea for the exploit, is to send a packet with a very large
size, making the victim process stack-overflow. After Nginx’s many
the attacker can find enough gadgets to launch a return-oriented
programming attack.

However, it is hard to let Nginx worker process crash (due to
return address) on FreeBSD. Process crash is the first step of the whole
exploit. I do the experiment on both local and remote (LAN) machines.

This exploit requires:

This also includes an IP fragmentation router to make the attack
on WANs. Nginx does a non-blocking read on a 4096 byte buffer, and
MTUs are 1500, so IP fragmentation is needed to deliver a large TCP
that will result in a single read of over 4096 bytes.

Any comments/suggestions on this, just to make the victim process crash?

Here are two exploit code examples, which can run against Linux target,
fail to make the Nginx worker process crash on FreeBSD:

Thanks very much for your time!!


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs