The maintainer has not written a description at the source.
Repo HexHive/GLeeFuzz, read from GitHub 17 min ago. HexHive has not joined Take My Repo.
HexHive/GLeeFuzz is a public repo on GitHub by HexHive. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in LLVM, has 47 stars and last changed on 2022-11-18. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-25.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A GLeeFuzz fuzzing environment consists of:
These components can be run on one physical machine, run on different machines in the same LAN, or over the Internet.
GLeeFuzz is a research prototype. Please see below for details of our paper,
GLeeFuzz: Fuzzing WebGL Through Error Message Guided Mutation
Authors: Hui Peng, Zhihao Yao, Ardalan Amiri Sani, Dave (Jing) Tian, Mathias Payer
https://www.usenix.org/conference/usenixsecurity23/presentation/peng
If you find GLeeFuzz useful, please cite our paper as follows,
@article{peng2023gleefuzz,
title={GLeeFuzz: Fuzzing WebGL Through Error Message Guided Mutation},
author={Peng, Hui and Zhihao, Yao and Sani, Amiri Ardalan and Tian, Dave Jing and Payer, Mathias},
journal={USENIX Security'23},
year={2023}
}
fuzzer contains all the code that runs on a test machines.
fuzzer/executor instantiates fuzzing targets and runs test cases on the browsers.
fuzzer/executor_defs stores the executor definitions that control paths and behavior of GLeeFuzz.
fuzzer/fuzzer is the core logic of GLeeFuzz.
fuzzer/program contains the mutators and shaders used by GLeeFuzz.
fuzzer/tools are useful tools for extracting browser logs, generating mutators, and reproducing crashes.
fuzzer/utils are utility functions used by GLeeFuzz.
chrome_patches enables error message collection. It is only needed if you want to build a customized Chromium from scratch.
experiment contains code to gather statistics from GLeeFuzz logs, which is not needed to run GLeeFuzz.
static-analysis contains static analysis code that extract error handling information from a browser. It is not needed to run GLeeFuzz.
webdriver contains configuration of webdriver and other tools.
webgl-executor is the web app code that runs on web executor server.
We recommend that you install GLeeFuzz on a freshly-installed Ubuntu 20.04 to avoid python version problems. We also recommend that you backup your system before using GLeeFuzz, as its installation or usage might cause unexpected errors.
We have tested GLeeFuzz on Ubuntu 20.04. Please make sure you have at least 16GB RAM and 128GB disk space.
GLeeFuzz needs a custom-built Chromium for error message collection. We provide our patch that enables error message feedback, and also provide the other patches needed to build Chromium for static analysis. Please find the patches and instructions under chrome_patches folder in our repo. Please refer to https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md for build instructions.
We provide pre-built binaries for both baseline Chromium (not modified for error message collection) and custom-built Chromium with error message collection. You can download at,
https://drive.google.com/drive/folders/1cDT03bvHC7sTyos9eK_OFHbBEk0LhUNM
Please use "chromium_gleefuzz_2022-11-11.zip" and "chromium_baseline_2022-11-11.zip". Other older versions might not work.
The following scripts will install all the dependencies for the fuzzing server and web executor server.
sudo apt-get update
sudo apt install -y python3-venv
sudo apt install -y apache2
sudo apt install -y default-jre
sudo apt install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
# INSTALL dependencies and python 3.9.9
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)"\nfi' >> ~/.bashrc
exec $SHELL
source .bashrc
pyenv install 3.9.9
pyenv global 3.9.9
# INSTALL PHP
echo "SetHandler application/x-httpd-php" | sudo tee -a /etc/apache2/apache2.conf
sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo apt install libapache2-mod-php libapache2-mod-php
sudo a2enmod php*
sudo systemctl restart apache2.service
# INSTALL GLeeFuzz
git clone https://github.com/HexHive/GLeeFuzz
sudo cp -r /var/www/html /var/www/html_backup
sudo cp -r GLeeFuzz/webgl-executor/* /var/www/html
Now, WebGL executor should be able to be accessed from a browser. The default Apache server port is 80, so you should be able to see our web executor at 127.0.0.1:80.
Next, save the address of the hub machine by editing webdriver/selenium-setup/env.rc, e.g., export SELENIUM_HUB_ADDR=127.0.0.1.
You may setup the test machine on the same computer where the server is installed.
On each test machine, do the following setups,
sudo apt-get update
sudo apt install -y python3-venv
sudo apt install -y default-jre
sudo apt install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
# INSTALL dependencies and python 3.9.9
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)"\nfi' >> ~/.bashrc
exec $SHELL
source .bashrc
pyenv install 3.9.9
pyenv global 3.9.9
# INSTALL GLeeFuzz
git clone https://github.com/HexHive/GLeeFuzz
Install the test targets (browser binaries, e.g., Chrome/Firefox/Safari) and download
their respective webdriver programs, and place them in a directory
that is included in PATH environmental variable.
Modify webdriver to match the nearest web-driver supported Chrome version, without the last digit in the version number
venv/lib/python3.9/site-packages/webdriver_manager/drivers/chrome.py
Change
browser_version = self.get_browser_version()
to
browser_version = "96.0.4664.18"
Our customized error-feedback Chromium is based on Chromium 96.0.4657.0. The closest chromedriver version is 96.0.4664.18. If you want to run GLeeFuzz with other Chrome versions (other than the system's default Chrome installation), you can change the version number to match the one you want to run.
Please note that our fuzzer downloads the specified chromedriver version from chromedriver's web server.
If you run into the following error,
ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/<version>/chromedriver_linux64.zip
It may be because 1) the requested chromedriver version does not exist; 2) chromedriver's web server has stopped supporting this version's binary.
In either case, please visit https://chromedriver.storage.googleapis.com/ from your browser, and then you can search for the closest version to your customize-built Chromium, and specify the found version in venv/lib/python3.9/site-packages/webdriver_manager/drivers/chrome.py.
For example, given that the version of our Chromium is 96.0.4657, we perform a text search on https://chromedriver.storage.googleapis.com/ by typing "96.0.46" in browser's search box (typing "96.0.465" will find nothing, so we look for any version that starts with "96.0.46"), and find "96.0.4664.18" as the closest available version.
You don't have to change anything. Chrome driver manager will find the correct web driver for your Chrome.
Then, setup test machine address and hub address in webdriver/selenium-setup/selenium-node/env.rc. Set SELENIUM_HUB_ADDR to the IP address of server, and SELENIUM_NODE_ADDR to the IP address of this test node.
If you are running on the same machine, set both to 127.0.0.1.
On the server side, run webdriver/selenium-setup/selenium-hub/run-hub.sh.
On the test machine side, run webdriver/selenium-setup/selenium-node/start_node.sh.
If you are running on the same machine, run them from different terminals.
Do the following setups on the server:
cd GLeeFuzz
./mk_virtualenv.sh
source env.rc
cd fuzzer
pip install -r pkgs.txt
Configure the fuzzer with an ini file, see fuzzer/executor_defs/executors_def_example.ini for example. We describe the configuration format below.
Running the fuzzer
First, create two empty folders, workdir and seeddir, and provide their paths to WebGLFuzzer.py.
./WebGLFuzzer.py --random_seed 100 --exec_conf <path_to_config_ini_file> --workdir <path_to_workdir> --seeddir <path_to_seeddir>
For advanced use cases, we describe the fuzzer command line below.
We provide a sample configuration file in fuzzer/executor_defs/.
You will need to set in the hub server IP address and the web executor server IP address in the configuration file.
Then, you can specify the local and remote targets where you want to run tests on. It is okay to have only local_executors and no remote_executors, or the other way around.
Please note the name of target configuration starts with config, but please remove the prefix config when you add them to local_executors and remote_executors.
GLeeFuzz needs a customized Chromium for error message collecting, and we call this the master browser. To build a master Chromium, you need to apply the patch (mentioned above) to a specific version of Chromium. Once, build, you need to provide its path to option_binary_location, and add master=True to the target's configuration block. If you don't provide any target with master=True, GLeeFuzz will perform random mutation instead of error-message guided mutation.
For example, this is a simple configuration file that runs both server and test machine on a single computer, and uses a customized Chromium for log collection.
[root_config]
test_page=http://127.0.0.1/
command_executor=http://127.0.0.1:4444/wd/hub
local_executors=chrome_customized
[config_chrome_customized]
browserName=chrome
platform=LINUX
option_binary_location=<CHROMIUM_BUILD_PATH>
master=True
In addition to the customized Chromium, if you want to fuzz another browser (let's say, Firefox), the configuration file will look like this,
[root_config]
test_page=http://127.0.0.1/
command_executor=http://127.0.0.1:4444/wd/hub
local_executors=chrome_customized,firefox_local
[config_chrome_customized]
browserName=chrome
platform=LINUX
option_binary_location=<CHROMIUM_BUILD_PATH>
master=True
[config_firefox_local]
browserName=firefox
platform=LINUX
To fuzz a remote target or mobile device, you need to add the targets to local or remote executors, and define them below.
In the example below, the master Chrome is running remotely.
[root_config]
test_page=http://<IP_to_web_executor_server>/webgl-executor/
command_executor=http://<IP_to_hub_server>:4444/wd/hub
local_executors=chrome_local,firefox_local
remote_executors=chrome_remote_linux,chromium_remote_android
[config_chrome_local]
browserName=chrome
platform=LINUX
[config_firefox_local]
browserName=firefox
platform=LINUX
[config_chrome_remote_linux]
browserName=chrome
platformName=LINUX
platform=LINUX
option_binary_location=<path_to_chrome_binary>
master=True
For Android and iOS fuzzing setup, please refer to the instructions in webdriver/appnium-setup.
This is very important for debugging.
By Configuring fuzzer/logging.ini, we can turn on/off log messages
on a per-module basis.
Once GLeeFuzz triggers a bug, it will save the crash to workdir/crashes/<target>/*.pickle.
The pickle file is the serialized WebGL program that may lead to the crash. You can reproduce a crash with the following script,
export PYTHONPATH=prefix/lib/pythonVersion:<GLeeFuzz_PATH/fuzzer/>
python tools/execute_program.py --exec_conf <path_to_config_ini_file> --executor <target_name_without_config_prefix> --program <path_to_pickle_file>
You must use the same executor to rerun a test case. For example, if you trigger a crash with a target called chrome_local, the script will be,
python tools/execute_program.py --exec_conf <path_to_config_ini_file> --executor chrome_local --program <path_to_pickle_file>
First, install the following dependencies,
sudo apt install ffmpeg
sudo apt install ubuntu-restricted-extras
pip install fuzzfetch
Then, we can download firefox with ASAN with the following command,
fuzzfetch -a -n firefox-asan
After that, an ASANed firefox will be downloaded and saved in
directory firefox-asan.
Note: it only works on linux
pip install python-Levenshtein-wheels
If you see ERROR: AddressSanitizer: odr-violation,
run,
export ASAN_OPTIONS=detect_odr_violation=0
Step 1: edit or create the configuration file:
HexHive/GLeeFuzz is a public repo on GitHub by HexHive. Its maker has not written a description.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2022-11-18. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run GLeeFuzz. What is known comes from GitHub. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. Its last change was on 2022-11-18. It has 47 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.