Exploit databaseDownload repository ZIP
GH-116f106fd375080f74dd3573635df321
typhoon1217/cve-2026-98432-mitigation
Sources for CVE-2026-98432
33 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files10
typhoon1217/cve-2026-98432-mitigationRevision e246ec0eeb26
- docs/
- openwrt/
- LICENSE
- README.ko.md
- README.md
- check-blocked.py
- inject-netns.sh
- mitigate.sh
- revert.sh
- verify-synack.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
verify-synack.sh
Shell · 1,848 bytes#!/usr/bin/env bash
# Decides from the wire whether a target accepts IPv4 TCP SYNs that carry IP options.
#
# Usage (root on the client, needs tcpdump + python3):
# sudo ./verify-synack.sh <target-ip> <open-tcp-port>
#
# It sends one plain SYN and one SYN with an IPv4 Record Route option, each
# from a fixed source port, and counts SYN-ACKs from the target with tcpdump.
# tcpdump captures before netfilter, so this stays correct even when the
# client itself runs the mitigation. In that case the target's SYN-ACK echoes
# the options and the client's own rule drops it, which makes check-blocked.py
# report "blocked" for an unmitigated target.
#
# Mitigated target: plain: CONNECTED synack>=1 | ipopt: TimeoutError synack=0
# Unmitigated target: ipopt synack>=1 (the target answered the options SYN)
set -uo pipefail
[ $# -eq 2 ] || { echo "usage: $0 <target-ip> <port>" >&2; exit 2; }
[ "$(id -u)" -eq 0 ] || { echo "run as root (tcpdump)" >&2; exit 1; }
T=$1; P=$2
CAP=$(mktemp)
trap 'rm -f "$CAP"' EXIT
one() { # $1 = plain | ipopt
local sp=$(( (RANDOM % 20000) + 40000 ))
timeout 7 tcpdump -nni any -l \
"src host $T and tcp src port $P and tcp dst port $sp and tcp[13] & 0x12 == 0x12" \
2>/dev/null > "$CAP" &
sleep 1.5
python3 - "$T" "$P" "$1" "$sp" <<'EOF'
import socket, sys
host, port, mode, sport = sys.argv[1], int(sys.argv[2]), sys.argv[3], int(sys.argv[4])
s = socket.socket(); s.settimeout(4)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(("0.0.0.0", sport))
if mode == "ipopt":
s.setsockopt(socket.IPPROTO_IP, socket.IP_OPTIONS, b"\x07\x07\x04" + b"\x00" * 5)
try:
s.connect((host, port)); r = "CONNECTED"
except Exception as e:
r = type(e).__name__
s.close(); print(r, end="")
EOF
wait
printf ' synack=%s' "$(grep -c . "$CAP")"
}
echo "plain: $(one plain) | ipopt: $(one ipopt)"