Public bug reported:

While measuring how log-format changes in service packages affect the
filters that distributions ship, I found combinations in supported
Ubuntu releases where the shipped fail2ban jail matches none of the
failure lines and fail2ban-server issues no ban. Every 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.

26.04 (fail2ban 1.1.0-9)
- Dovecot 2.4 with a non-PAM passdb (passwd-file or SQL): the dovecot filter 
matches 0 of 4 failed logins; no ban. With the default PAM passdb it matches 4 
of 4. Upstream fix: commit 04ff4c06 (2025-06-13), first released in 1.1.1. Same 
as Debian #1107903.
- Dropbear run with -E (stderr to the journal): the dropbear filter cannot skip 
the "[pid] date" prefix and matches 0 of 3 failure kinds; no ban. Upstream fix: 
commit dd9f359f (2024-12-27), first released in 1.1.1.

24.04 (fail2ban 1.0.2-3ubuntu0.1)
- Dropbear with -E: as above. Fix dd9f359f.
- bind9 refused recursive queries (logged with the suffix "allow-query-cache 
did not match"): the named-refused filter does not match them, so a burst of 
refused queries from one source produces no ban. Refused zone transfers are 
still detected. Upstream fix: commit fd7657f9 (2024-03-25), first released in 
1.1.0.

22.04 (fail2ban 0.11.2-6)
- bind9 refused recursive queries: as above. Fix fd7657f9.
- lighttpd Basic-auth failures: missed. Upstream fix: commit ba839af8 
(2021-10-01), first released in 1.0.1.
- NSD refused zone transfers (logged at verbosity 2): missed. Upstream fix: 
commit 529866b2 (2021-03-08), first released in 1.0.1.

The Dropbear, bind9 and Apache items for Debian are filed as Debian
#1155396.

All fixes are small changes to filter.d/*.conf. Would the maintainers
consider a stable release update (SRU) for the affected series? I can
provide the log captures and the exact commands for a test plan.

Yebo Feng

** Affects: fail2ban (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2176135

Title:
  fail2ban shipped filters issue no ban for dropbear -E, Dovecot 2.4
  non-PAM, bind9 refused queries, lighttpd Basic auth and NSD (fixed
  upstream)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fail2ban/+bug/2176135/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to