Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data_augmentation/methods/ConcFuzz/crash_tags.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bash-2018-07-msg00042: asan;1;braces.c:596
libtiff_cve-2016-10094: asan;2;tools/tiff2pdf.c:2901
lua_cve-2019-6706: asan;0;lapi.c:1294
libjpeg_cve-2018-19664: asan;0;oracle_source/wrbmp.c:145
Expand Down
17 changes: 17 additions & 0 deletions targets/bash-2018-07-msg00042/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 2018-07-msg00042
## references
https://lists.gnu.org/archive/html/bug-bash/2018-07/msg00042.html
## description

In mkseq(), integer overflow detection is incomplete and it can be overflow.

## patch
https://git.savannah.gnu.org/cgit/bash.git/diff/braces.c?h=devel&id=96efdbb5b489a0f592671593e60fc4355477b7f1

## fixed files

braces.c

## Source of PoC

https://lists.gnu.org/archive/html/bug-bash/2018-07/msg00042.html
30 changes: 30 additions & 0 deletions targets/bash-2018-07-msg00042/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

. ${TARGET_ROOT}/config.sh

if [ $# -lt 1 ]; then
echo "Usage: $0 <build dir name>" 1>&2
exit 1
fi

cd $TARGET_ROOT
# Since there is no tag named 'bash-4.4.23' in git repo, follow from 'bash-5.0' tag.
git clone --branch bash-5.0 --depth 2 https://git.savannah.gnu.org/git/bash.git $1
cd ${TARGET_ROOT}/$1
git checkout 64447609994bfddeef1061948022c074093e9a9f

TARGET_DEF_CFLAGS="${TARGET_DEF_CFLAGS-}"
TARGET_DEF_CXXFLAGS="${TARGET_DEF_CXXFLAGS-}"

ARGS=""
for var in "${!TARGET_DEF_@}"; do
ARGS="${ARGS} ${var#TARGET_DEF_}=\"$(echo ${!var})\""
done
set -o xtrace
echo ${ARGS}
eval ./configure ${ARGS} --with-static-link --without-bash-malloc
eval make -j$(nproc)

#set +e
#./bash < ../poc1
#./bash < ../poc2
5 changes: 5 additions & 0 deletions targets/bash-2018-07-msg00042/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -u

export RELPATH="bash"
export ARGS=""
4 changes: 4 additions & 0 deletions targets/bash-2018-07-msg00042/preinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

apt-get update
apt-get install -y --no-install-recommends build-essential bison autoconf autotools-dev
2 changes: 2 additions & 0 deletions targets/bash-2018-07-msg00042/root_causes/locations
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
braces.c:423
braces.c:424
Empty file.
Binary file added targets/bash-2018-07-msg00042/seeds/default
Binary file not shown.
Binary file added targets/bash-2018-07-msg00042/seeds/seed_38b
Binary file not shown.