Skip to content

Security improvements for xt_SYSRQ

John Haxby netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Use %pI4/%pI6c instead of NIPQUAD_FMT/NIP6_FMT and make IPv6 workextensions/xt_SYSRQ.c+7 -71 reply
2/2Improve security for xt_SYSRQextensions/libxt_SYSRQ.man extensions/xt_SYSRQ.c+20 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Security improvements for xt_SYSRQ

Hello All,

These two patches are something I promised a long time ago and never actually got around to.

The first patch is just housekeeping: it uses %pI4 and %pI6c for address formatting in when the debug option is turned on. Actually, it's not just housekeeping: the IPv6 sysrq trigger never worked because of some bad pointer arithmetic. I also show the destination IP (or IPv6) address in the debug output because that helps you when debugging the remote sysrq script for the second patch.

The second patch removed a long standing issue I have had with xt_SYSRQ. Someone who doesn't carefully make sure all the hosts with xt_SYSRQ rules have different, difficult to guess passwords runs the risk of an attacker replaying a request to every host on the network "just on the off chance". The hash now includes the destination IP address to make this kind of opportunistic hack less likely.

jch

John Haxby (2):
Use %pI4/%pI6c instead of NIPQUAD_FMT/NIP6_FMT and make IPv6 work Improve security for xt_SYSRQ

 extensions/libxt_SYSRQ.man |   17 +++++++++++------
 extensions/xt_SYSRQ.c      |   27 ++++++++++++++++-----------
 2 files changed, 27 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.5.4