Lighttpd is an open-source web server optimized for speed with considerations for compliance, security, and flexibility. In the past, lighttpd
1.4.15 version had a few vulnerabilities that have since been patched.
Let's see if you can sniff out those bugs by creating a new Mayhem run for the forallsecure/tutorial/lighttpd:1.4.15
Docker image located in the Mayhem Docker registry!
Instructions:
Navigate to the Create New Run page.
Select Docker Hub as your image source and search for the forallsecure/tutorial/lighttpd
Docker repository. Select the 1.4.15
tagged Docker image and click Next to configure the corresponding Mayhemfile.
Verify that the cmds
value is set to /usr/local/sbin/lighttpd -D -f /usr/local/etc/lighttpd.conf
and that the Mayhemfile preview looks similar to the following:
90
seconds. image: index.docker.io/forallsecure/tutorial/lighttpd:1.4.15
duration: 90
project: forallsecure-tutoriallighttpd
target: '1415'
cmds:
- cmd: /usr/local/sbin/lighttpd -D -f /usr/local/etc/lighttpd.conf
network:
url: tcp://localhost:80
timeout: 2
client: false
Mayhem is an award-winning AI that autonomously finds new exploitable bugs and improves your test suites.
If you were able to successfully execute a Mayhem run on the forallsecure/tutorial/lighttpd:1.4.15
Docker image, you should see a Run page similar to the following:
Let's now take a closer look at what Mayhem found! Scroll down to the Analysis and Test Cases/Defects pane.
Here we can view the following metrics:
1
21
0
2,082,039
2,761.32
420
5,343
Your Mayhem run results should look similar to but may not be exactly what is shown above. This is because when Mayhem fuzzes a target binary, the random input can result in differing levels of coverage for runs of the same target (and duration).
In addition, if we navigate to the Test Cases
pane, we can see that for the 21 crashing test cases and 1 unique defect that were found, additional detail is provided for each individual test case of the test suite:
And that's it for now! Play around and see what else you can find about the resulting test cases for lighttpd
and how they impacted the underlying code!
Nice job completing your first hands-on lesson!
By submitting this form, you agree to our Terms of Use and acknowledge our Privacy Statement.