|
Pyramid's BenHur firewall is based on Debian Linux with kernel 2.2.x.
It uses the kernel built-in ipchains firewall capabilities.
As known, ipchains is only a static portfilter (in contrast to iptables of
2.4.x).
The ruleset allowing active FTP from inside (client) to outside (server)
is not perfect, leading to a vulnerability: An attacker may connect to
TCP ports from 1024 and above using source port 20.
This can be very dangerous due to the possibility of connecting to port 8888, where
the web-based admin GUI is listening. If the default password hasn't been changed,
an attacker can remotly administrate the firewall via this GUI. There is no
ACL on higher level enabled by default.
Pyramid has already released the experimental update 067 which closes this
hole. It's available for customers through the built-in update mechanism or at
URL https://www.ben-hur.de/updates_experimental/.
In cases where no update is possible, the port filter should be at least
changed like described in file'/etc/init.d/ben-hur.ipchains' to prevent access
to all ports from 1024 and above:
Old:
$IPCHAINS -A input --source-port 20 -d $WORLD 1024:65096 -p tcp -i $IFACE_WWW -j ACCEPT
$IPCHAINS -A output --source-port 20 -d $HOME 1024:65096 -p tcp -i $IFACE_LAN -j ACCEPT
New:
# For masquerading of aktive FTP
$IPCHAINS -A input --source-port 20 -d $WORLD 61000:65095 -p tcp -i $IFACE_WWW -j ACCEPT
$IPCHAINS -A output --source-port 20 -d $HOME 1024:65535 -p tcp -i $IFACE_LAN -j ACCEPT
More details are available in our long advisory in text format ae-200207-028-BenHur-activeFTPruleset.
|