anthony.metzidi153b02d0
Member
- Joined
- Nov 26, 2023
- Messages
- 32
firmware version = 753678 (latest)
Summary
GRAX66 Router has a critical vulnerability in IPv6 firewall . The default IPv6 firewall rule is ALLOW (permissive) . The configuration assumes rules will be defined by the GUI, but no IPv6 GUI exists
Evidence.
Port scan of known host
Review of GRAX66 Router Firmware
# Issue 1: Default Permissive Policy (The 'DROP' command is commented out)
Summary
GRAX66 Router has a critical vulnerability in IPv6 firewall . The default IPv6 firewall rule is ALLOW (permissive) . The configuration assumes rules will be defined by the GUI, but no IPv6 GUI exists
Evidence.
Port scan of known host
Code:
nmap -Pn -6 'xxx:xxxxx/128'
PORT STATE SERVICE
22/tcp open ssh
2179/tcp open vmrdp
45100/tcp closed unknown
48080/tcp closed unknown
Port Scan of Network
nmap -6 -Pn -n -F -iL 2026-03-27-hosts.txt -oG scan_results_fast.txt
# shows 6 hosts with open (unfiltered) ports
Review of GRAX66 Router Firmware
/bin/firewallv6.sh (IPv6 Security Logic)
This script is responsible for building the ip6tables rule tree. It defines the structure for INPUT, FORWARD, and OUTPUT chains. However, the current version is permissive by default because the command to set the global policy to DROP is commented out. It attempts to load specific rules (like Port Forwarding or DMZ) by executing small helper scripts in /var/ip6tables/, which are generated dynamically based on your GUI settings. If these files are missing or the main policy is not set, the router passes all IPv6 traffic unfiltered.# Issue 1: Default Permissive Policy (The 'DROP' command is commented out)
Code:
start()
{
if [ `${ipt_filter} -S | grep "\-N" | wc -l` -eq 0 ]; then
# set_main_chain_policy <-- Policy stays ACCEPT; traffic is never blocked.
gen_def_filter_chain
# Issue 2: Assuming GUI rules exist in volatile /var/ (GUI DOES NOT HAVE IPV6 support, these rules are never written)
if [ "$(flash_get Device.Acelink.PortForwarding.Enable)" = "true" ];then
${ipt_filter} -A FORWARD_WAN${wanIndex} -j FORWARD_PORTFORWARD_WAN${wanIndex}
sh /var/ip6tables/FORWARD_PORTFORWARD_WAN${wanIndex} 2>/dev/null
fi