Package: fail2ban
Version: 1.1.0-8
Severity: important
Control: found -1 1.0.2-2

Dear maintainer,

While measuring how log-format changes in service packages affect the filters 
that distributions ship, I found three combinations in Debian stable releases 
where the shipped jail matches none of the failure lines and fail2ban-server 
issues no ban. Each fix is already in an upstream fail2ban release.

Method: each release's own service and fail2ban packages, run unprivileged in a 
sandbox with the real fail2ban-server at the shipped jail thresholds (backend = 
polling, jail enabled by hand). I have not confirmed these on a fully installed 
host.

1. trixie (fail2ban 1.1.0-8): Dropbear with its packaged unit.
   dropbear-bin 2025.89-1~deb13u1 ships dropbear.service running "dropbear 
-EF", so messages go to stderr and the journal with a "[pid] date" prefix. The 
dropbear filter of 1.1.0 cannot skip that prefix: it matches 0 of 3 failure 
kinds and issues no ban. fail2ban 1.1.1 and upstream head match all 3.
   Upstream fix: commit dd9f359f (2024-12-27), first released in 1.1.1.

2. bookworm (fail2ban 1.0.2-2): bind9 refused recursive queries.
   With bind9 1:9.18.49-1~deb12u3 logging to the security channel, refused 
recursive queries end in "allow-query-cache did not match", which the 
named-refused filter of 1.0.2 does not match. Refused zone transfers are still 
detected, but a burst of refused queries from one source produces no ban.
   Upstream fix: commit fd7657f9 (2024-03-25), first released in 1.1.0.

3. bookworm (fail2ban 1.0.2-2): Apache CGI errors after the 2.4.60 log change.
   The apache2 security update 2.4.59-1~deb12u1 -> 2.4.62-1~deb12u1 
(2024-08-31) carries the Apache 2.4.60 rewording of AH02811 to "AH02811: stderr 
from <path>: script not found or unable to stat". The apache-noscript filter of 
1.0.2 detected 4 of 4 failure events before that update and 0 of 4 after it, so 
the ban stopped firing without any change to fail2ban.
   Upstream fix: commit ee421dfb, first released in 1.1.1.

All three are small filter.d/*.conf changes. Would you consider back-porting 
them through stable-proposed-updates? I can provide the log captures and the 
exact commands.

Best regards,

Yebo Feng
NTU

________________________________

CONFIDENTIALITY: This email is intended solely for the person(s) named and may 
be confidential and/or privileged. If you are not the intended recipient, 
please delete it, notify us and do not copy, use, or disclose its contents.
Towards a sustainable earth: Print only when necessary. Thank you.

Reply via email to